Have the logic working.. working on the plot.
The indicator is a stop indicator. as the the price changes the stop moves.. the stop always should be plotted as a horizontal line, and when the stop moves up, there should not be a continuous line connected two successive horizontal segments.
In Java Script there is nice way to do this as follows:
setPlotType( PLOTTYPE_FLATLINES, 0 );
Then you plot the line but assigning a value to plot0. When a new value is assigned, a new horizontal line is drawn at the new value.
I can't find a "flatlines" plot type in NinjaScript... How would one do this?
bigtee
Comment