Abdeljalil El Kedmiri:
Hello every one,
Can I find a solution to this erreur "Array out of range"? My strategy is based on the intraday support and resistance levels, It's working fine in backtesting and a demo account. But the checker MQL5 detects this error in line 499 (double ret...0...).
You need to validate/error check CopyHigh.
Thanks you Dominik and Alain for the answers.
My problem was that the checker use D1 time frame (for Gold) to backtest my startegy that needs a smaller time frame than daily as it is calculated from the time of day.
so the solution was to use a condition to stop checking other conditions if the time frame is daily.
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
Hello every one,
Can I find a solution to this erreur "Array out of range"? My strategy is based on the intraday support and resistance levels, It's working fine in backtesting and a demo account. But the checker MQL5 detects this error in line 499 (double ret...0...).