Array out of range points to column 12 so I guess content of bar = 0 and bar - 1 = -1 but -1 is not a valid index.
Maybe the formula should be "close[bar+1]" depending on the rest of your program logic?
MrGrey:
Maybe the formula should be "close[bar+1]" depending on the rest of your program logic?
Here it is :p
Maybe the formula should be "close[bar+1]" depending on the rest of your program logic?

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 there,
Need help with a simple crossing code in an indicator :
Error (not during compilation, but when attached to chart) :