Backtest stoping to generate randomly
Hello, this EA works for a few days in the backtest and then data doesn't continue, orders don't open and finally backtest stops, any help? Here as you can see, i asked the backtest until march 18 and it stops at march 4
- MT5 strategy tester suddenly stoped working?
- System that does not generate orders
- MQL4 Learning
I had a quick glance and I see these issues:
1. Do not initiate indicator handles in OnTick. Initiate them once in OnInit
2. Do check the CopyBuffer result before proceeding... It might not read the indicator values for several reasons.