Zero Divide Error
-
When backtesting with the attached EA and data, I discovered a Divide Error which causes the EA to stop. The workaround is to remove the US500.U market, leaving just the _US500. The problem seems to be a gap in the broker's US500.U data.
However, this led me to wonder if there was a more elegant way to handle zero divides. I looked around on the internet, and found some stuff which I didn't really understand. So I wondered if fxdreema had any good ideas?
The data file attached may be imported into MT4. It is an extract of minute data from a reliable source, not the broker.
......
_US500.txt
Zero_Divide_Error.mq4 -
MetaTrader 4 cannot backtest multiple symbols, it can only backtest the Current one.
-
Ah ha!
That explains it! I'm so sorry to have troubled you. Thank you.