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

Notification

Icon
Error

Options
Go to last post Go to first unread
Mike012321  
#1 Posted : Tuesday, December 13, 2005 10:15:02 AM(UTC)
Mike012321

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
Jose  
#2 Posted : Tuesday, December 13, 2005 10:32:41 AM(UTC)
Jose

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 '-)
Mike012321  
#3 Posted : Tuesday, December 13, 2005 2:27:13 PM(UTC)
Mike012321

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.