I've opened up ZigZag in the NinjaScript editor and have to admit that it is beyond my programming knowledge to understand exactly how ZigZag works programatically.
As a working example, I have put together the following code. It plots a dot at the close of a day, but only if that day is an inside day.
return;
if( Low[0]>Low[1]
&&
High[0]<High[1] )
Plot.Set(Close[0]);
I suspect the solution has something to do with conditionally cycling through days and testing for the presence of an inside day...but unfortunately this is beyond my skill-level.
Please see the attached .png showing the present plot of the indicator and how it should look.
Does anyone know how to achieve this?
Comment