Jump to content

Trend Enveloper EA


Rio

Recommended Posts

Here's another EA that I made, per a user request. It is not that profitable, and so don't use it live. It is simply a proof of concept, and perhaps a jumping point for anyone looking to see how the EA works (or how it could be improved)

I welcome all suggestions, as I'm still learning MQL4. As with any EA first released, there could be bugs. It's free after all!

 

http://www.4shared.com/file/154367892/daedaa4e/TrendEnveloper_EA.html

 

It trades when the signal of the trend envelope changes from buy to sell (and vice versa). A little optimization shows me that a TakeProfit of 140 and a stop loss of 30 is about right. The UseLineStopLoss feature will set and update the stop loss of the trade as given by the trendline. If this feature is not used, then a manual stoploss that is set in the inputs will be used.

Also there is a breakeven and trailing stop feature. If the Breakeven is zero, then a breakeven will not be used.

Once the signal changes, any open trades are closed automatically.

 

There is a time filter option as well. If set, it will not trade between a time period you specify.

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...