SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Paul Beattie who wrote (3041)5/14/1999 2:56:00 PM
From: bdog  Read Replies (1) of 4056
 
Yo Paul, I guess I did not communicate well, the N/A does not work. Let me use this scenario to illustrate and also explain the T/F spot (True/False spotting indicator).

Let us for sake of example consider the following rules...
when Close crosses the 89 TSFMA a support zone of Close * .75 is created and you would like to see on the chart when this happens and also a dot of where the support is.

The binary T/F spot would be in it's own window using bars and would record a 1 when true with a straight line so it is easy to spot, :
Cross(CLOSE,Mov(CLOSE,89,T));

Then in the price window we would add this one to show the support zone, using dots with a larger line width:
If(Cross(CLOSE,Mov(CLOSE,89,T)),CLOSE*.75,PREV);

Or we can use this one that would plot a zero when not condition is not met:
If(Cross(CLOSE,Mov(CLOSE,89,T)),CLOSE*.75,0);

But it would be nice to use a N/A in the last argument of the If statement but nothing is plotted when I try this.
If(Cross(CLOSE,Mov(CLOSE,89,T)),CLOSE*.75,ValueWhen(1, C<0,CLOSE));

Maybe I misunderstood your fix here, I think it is a sweet workaround but I just can't get it to work.

Thanks for all the help. You code guys are awesome.
bN/Adog



Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext