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)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.