Quote:
|
Originally Posted by 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;