logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ClaudeBrunet  
#1 Posted : Friday, July 6, 2012 1:13:02 AM(UTC)
ClaudeBrunet

Rank: Member

Groups: Registered, Registered Users
Joined: 5/22/2012(UTC)
Posts: 19

HI, is it possible to show an indicator for a bar if a certain condition is true but hide it for that bar if it isn't? if condition, then display value of indicator,else do not. i like to do this to avoid compression. Thanks by advance
wabbit  
#2 Posted : Saturday, July 7, 2012 12:11:16 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
No.

But, yes, using the ValueWhen(1,0,1) trick. Do a search.


wabbit [:D]
ClaudeBrunet  
#3 Posted : Saturday, July 7, 2012 1:46:35 AM(UTC)
ClaudeBrunet

Rank: Member

Groups: Registered, Registered Users
Joined: 5/22/2012(UTC)
Posts: 19

hi wabbit, thank you for your replay. i used the valuewhen() but it didn't work. xx:=valuewhen (1,High>2300-x andhigh<2300+x,hh); i send to you the picture of my indicator: the line red is the value of hh without condition the line blue is the value of xx(with condition) i found that if condition is true the two lines are merged (it's true) and if condition is false the line blue plotted and it's false. I wait for your suggestions. thanks by advance. Claude
ClaudeBrunet  
#4 Posted : Saturday, July 7, 2012 1:53:40 AM(UTC)
ClaudeBrunet

Rank: Member

Groups: Registered, Registered Users
Joined: 5/22/2012(UTC)
Posts: 19

valuewhen(1,high>2300-x and high<2300+x,hh)
jjstein  
#5 Posted : Saturday, July 7, 2012 11:30:02 AM(UTC)
jjstein

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Claude -- Post your whole indicator using the CODE tags.

ClaudeBrunet  
#6 Posted : Tuesday, July 10, 2012 12:49:40 AM(UTC)
ClaudeBrunet

Rank: Member

Groups: Registered, Registered Users
Joined: 5/22/2012(UTC)
Posts: 19

HI, x:=Input("entrez valeur",0,100,30); phj:=If(DayOfMonth()=Ref(DayOfMonth(),-1),If(HIGH>PREV,HIGH,PREV),HIGH); hh:=If(DayOfMonth()Ref(DayOfMonth(),-1),Ref(phj,-1),PREV); ValueWhen(1,HIGH>2300-x AND HIGH<2300+x,hh); hh; This is the code i hope that you can help me.
ClaudeBrunet  
#7 Posted : Tuesday, July 10, 2012 12:51:23 AM(UTC)
ClaudeBrunet

Rank: Member

Groups: Registered, Registered Users
Joined: 5/22/2012(UTC)
Posts: 19

x:=Input("entrez valeur",0,100,30); phj:=If(DayOfMonth()=Ref(DayOfMonth(),-1),If(HIGH>PREV,HIGH,PREV),HIGH); hh:=If(DayOfMonth()Ref(DayOfMonth(),-1),Ref(phj,-1),PREV); hh; ValueWhen(1,HIGH>2300-x AND HIGH<2300+x,hh);
jjstein  
#8 Posted : Tuesday, July 10, 2012 12:01:58 PM(UTC)
jjstein

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
What symbol are you plotting this on?
jjstein  
#9 Posted : Tuesday, July 10, 2012 12:13:20 PM(UTC)
jjstein

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
It's not clear what you're trying to do, but give this a try:
Code:

{MUST use "dotted" style}
x:=Input("entrez valeur",0,100,30);
phj:=If(DayOfMonth()=Ref(DayOfMonth(),-1),If(HIGH>PREV,HIGH,PREV),HIGH);
hh:=If(DayOfMonth()<>Ref(DayOfMonth(),-1),Ref(phj,-1),PREV);
if(HIGH>2300-x AND HIGH<2300+x,hh,0); 
ValueWhen(1,1=0,0);

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.