Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 11/16/2005(UTC) Posts: 10
|
Can you show an indicator for a bar if a certain condition is true but hide it for that bar if it isn't?
pseudo-code would be:
if condition, then display value of indicator,otherwise do not.
Thanks for any help
Mike
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
Unfortunately the short answer is no - MetaStock cannot plot any values at all if the formula includes a Null (N/A) value within.
You could instead try blending the indicator with price:
If(true,indicator,Close)
Or in the case of an oscillator, drop it to zero:
If(true,oscillator,0)
jose '-)
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 11/16/2005(UTC) Posts: 10
|
jose,
thanks for that.
If(true,indicator,Close)
and
If(true,oscillator,0)
are good ideas.
Mike
|
|
|
|
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.