Sacred heart of God I think I'm getting somewhere
I have followed the steps in this thread
viewtopic.php?f=4&t=450&p=2732
I got the basic EA's to work, but still my own EA's are still producing a zero divide error. Even though trading in a live environment there is never a problem.
On the most basic piece of the EA, one indicator that I created, I have tested out the line provided and came to notice that (very rarely) one of the figures can "possibly" become zero, but literally 99.9 percent of the time it is not zero. This figure is then divided by another figure, and so on. I have never even seen it at zero on the alerts tab, it may be 0.2434, 0.323 etc, but never full on zero.
I am very unsure as to why this code fails to run even passed even one bar, and for all I know 1 tick when backtesting, but it runs perfectly live. Isn't backtesting the exact same as live if there are ticks in the backtest? Pretty much a perfect replay?
I'm going to try to do something in the code (will have to figure out what that is), but to skip the code if that figure is zero or something like that. I think maybe simply saying only ask the question if the figure is greater or less than zero.
Does this sound like a valid identification of the problem? As mentioned, I can't understand why there's a difference between live and a back test. I think however this will very heavily improve future programming if you could explain something about it.
Thanks