View Single Post
  #1 (permalink)  
Old 01-18-2007, 02:23 AM
ftsdPadawan ftsdPadawan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
ftsdPadawan is on a distinguished road
Modular version behaves differently

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?
Attached Files
File Type: mq4 ftsdPadawan.mq4 (5.7 KB, 20 views)
Reply With Quote