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
|