This one works perfectly in Chart but does not display the indicator value in Market Analyzer (it displays the close price)
In Initialize()
Plots[0].Min = 1;
In OnBarUpdate()
if((Stochastics(7,13,3).K[0]) < 20)
ABC.Set(10)
This one works perfectly in Market analyzer but plots the 0 value on the chart that I do not want to plot.
In Initialize()
Plots[0].Min = 1;
In OnBarUpdate()
ABC.Set(0);
if((Stochastics(7,13,3).K[0]) < 20)
ABC.Set(10)
I realize that I can create two versions of the indicator as a work around but is there a simple code change that I can make?
Comment