garthy Posted May 18, 2010 Report Share Posted May 18, 2010 (edited) Hi everyone, I am using an EA to trade in a certain way, I have invested over one year forward testing various settings and have found a way to trade profitably, however every few weeks a major move in the market wipes out the account. I need to set an equity stop loss (which I can do with the equity trail ea listed on this board elswere) however I need to stop all instances of EA's trading once that stop loss has been hit, otherwise the EA's continue opening trades in advers market condiditions. I would like to automate the function of pressing the enable/disable EA's button but dont beleive this is possible. Can anyone suggest anything either way. I was thinking maybe the other way would be to set a Global variable in the trailing stop EA i.e. ALLOWTRADES and set it to "1" for yes, then re-set the value of ALLOWTRADES to "0" when the trailing stop is triggered) and that global variable is checked in my EA's prior to trading, IE if Global Variable if set to 0 then dont trade? Can anyone give me an example of how I would code this. Here are some forward test statements from my EA so far. Notice the great performace, then the great loss! I want to minimise the risk on the loss to about 25% of equity. Sorry I do not have permission to attach my statements. Edited May 18, 2010 by garthy I am not allowed to attach Quote Link to comment Share on other sites More sharing options...
fx4a Posted May 20, 2010 Report Share Posted May 20, 2010 Don't know about equity trail, but EquityGuard will stop all EA's working on your account if minimum/maximum equity (or margin) is hit. Does this by deselecting expert advisors button. Maybe you could decompile and figure out the code. http://stashbox.org/901324/EquityGuard1.1.ex4 Quote Link to comment Share on other sites More sharing options...
moshebaruh Posted May 22, 2010 Report Share Posted May 22, 2010 there is also an expert advisor called simple basket close that has a lot of cool features like close by equity if you can't find it in the forum pm me and i will send it to you 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.