I customized Lesson16.pdf
http://www.forex-tsd.com/attachments...f?d=1135725434 to be more modular for the way I want to test different trading strategies. Unfortunately, I am not getting the same results as the unmodified lesson.
Would you please take a look and advise me as to why mine behaves so differently on the same data in the Strategy Tester? The actual performance is not the issue right now; only the disagreement in selected entry/exit trade(s).
It does not close the original open order, except when the tester ends. So I only have 1 round trip trade!
The only differences I suspect would be where I make a second call for: shortEma, longEma, isCrossed (as
cg_l16_Crossed(shortEma,longEma);), and total; since I have the code split into more modular functions. I am also assuming that I process the same price data since I am in testing mode -- and that for live trading my present code may miss a tick if it is slower.
Thoughts?