cnuse Posted February 23, 2011 Report Share Posted February 23, 2011 hi, Junglist. By a quick review, I found a small mistake in your codes. I moved two lines of codes up just before dayfiler. they are "if(TrailingStop>0)TrailOrders(TrailingStop,MagicNumber); Monitor();" I did so because when you already have some open trade, you cannot ignore it by dayfilter. You still need to trail them,right? I uploaded my version at http://www.4shared.com/file/YUqNePzj/CandleBreakout_EAv2-dayfilter.html domonkos 1 Quote Link to comment Share on other sites More sharing options...
junglist00 Posted February 23, 2011 Author Report Share Posted February 23, 2011 hi, Junglist. By a quick review, I found a small mistake in your codes. I moved two lines of codes up just before dayfiler. they are "if(TrailingStop>0)TrailOrders(TrailingStop,MagicNumber); Monitor();" I did so because when you already have some open trade, you cannot ignore it by dayfilter. You still need to trail them,right? I uploaded my version at http://www.4shared.com/file/YUqNePzj/CandleBreakout_EAv2-dayfilter.html Thanks, the day filter was a cut/paste job, i am no coder so was just trying something, appeared to work on backtest. Thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.