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
|
|
|
|
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]
|
|
|
|
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
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 5/22/2012(UTC) Posts: 19
|
valuewhen(1,high>2300-x and high<2300+x,hh)
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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);
|
|
|
|
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?
|
|
|
|
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.