Custom Stochastic Indicator to Display V_Line at Crossover
many errors , one is :
tops[i]=ObjectCreate(ChartID(),"Stochastic Cross Over",OBJ_VLINE,0,NULL,NULL);
ObjectCreate(ChartID(),"Stochastic Cross Over",OBJ_VLINE,0,NULL,NULL);
noted. care to elaborate on the rest?
replace
for(int i=Bars-1; i>=0; i--) {
by
int limit = MathMax (rates_total - prev_calculated, 2)-1; for (int i=limit; i>0; i--) {
which doesnt test candle 0 (i>0) and avoid unnecessary loop (limit)
Hi All,
I'm attempting to create a custom indicator that draws a vertical line at the point of a stochastic crossover. The compiler shows no errors, however, the chart does not display anything that was not already there. Any tips on how to fix are appreciated.