Problem with Hist_StepMA_Stoch_KV1_Ex-02

 

Hi there,

Can anybody help me with the above indicator? The indicator is not showing in the higher time frame if I use NumberOfBarToCalculate larger than 800. I want to use it with 2000.

Any help would be appreciated.

Many thanks - Ben

the indicator is attached

 
ibadah:
Hi there,

Can anybody help me with the above indicator? The indicator is not showing in the higher time frame if I use NumberOfBarToCalculate larger than 800. I want to use it with 2000.

Any help would be appreciated.

Many thanks - Ben

the indicator is attached

You cannot use more bars that u have. You have exactlly Bars bars. . So if NumberOfBarToCalculate is greater then Bars, you have to set it to Bars. Something like this:

if (NumberOfBarToCalculate > Bars) NumberOfBarToCalculate = Bars;

 
elihayun:
You cannot use more bars that u have. You have exactlly Bars bars. . So if NumberOfBarToCalculate is greater then Bars, you have to set it to Bars. Something like this: if (NumberOfBarToCalculate > Bars) NumberOfBarToCalculate = Bars;

Eli,

I think you explain it very well.

Thanks mate, I owe you one. Appreciated.

My best wishes - Ben

 

You welcome