Jump to content

My adapted EA


garthy

Recommended Posts

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 by garthy
I am not allowed to attach
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...