Max Enrik:
Hi,
How can I fix this fatal error?
_Price_High = MathRound( ( High[Highest ( NULL, 0, MODE_HIGH, Bars - MODE_HIGH, 2 )] * (1 / Point) ) * 2 );
_Price_Low = MathRound( ( Low [Lowest ( NULL, 0, MODE_LOW, Bars - MODE_LOW, 2 )] * (1 / Point) ) / 2 );
//---
fatal error: 'array out of range in'
_Price_Low = MathRound( ( Low [Lowest ( NULL, 0, MODE_LOW, Bars - MODE_LOW, 2 )] * (1 / Point) ) / 2 );
//---
fatal error: 'array out of range in'
Thanks.
remove the "- MODE_HIGH" and "- MODE_LOW" after the Bars for start, but the error is not (just) in that.
You should post the whole code (not just those two lines), since this way it is not visible where the error comes from
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,
How can I fix this fatal error?
_Price_Low = MathRound( ( Low [Lowest ( NULL, 0, MODE_LOW, Bars - MODE_LOW, 2 )] * (1 / Point) ) / 2 );
//---
fatal error: 'array out of range in'
Thanks.