OK... I figured it out...
I was missing
IndicatorBuffers(6);
In the OnInit().
Hiltos: I'm getting an array out of range on this custom indi. I can't seem to figure out why.
pos = rates_total - prev_calculated ;
:
AMA0=Close[pos+1];
First pass prev_calculated is zero and pos therefor equals the number of bars. Close index is [zero to Bars - 1]. You index out of range.
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
Hey all,
I'm getting an array out of range on this custom indi. I can't seem to figure out why. Any help is greatly appreciated!