Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | TrendMeLeaveMe

Author of the idea — Ahmad Waddah Attar, author of the mq5 code — barabashkakvn.

TrendMeLeaveMe is a MetaTrader 5 EA. The semi-automated Expert Advisor using a trend line (TrendLIne). 

Before launching the EA, simply draw a bullish or a bearish trend. Set the properties, launch the EA and you are free to focus your attention on something else.

This is an automated EA. First, you should draw an upward, downward or horizontal trend:

MetaTrader Experts, Indicators, Scripts and Libraries 

Name it buystop or sellstop and set the BuyStop_StepUpperBuyStop_StepLowerSellStop_StepUpper and SellStop_StepLower parameters 

When the price enters the area between your buystop and BuyStop_StepLower levels, the EA opens a buystop order following the BuyStop_StepUpper price. When the price enters the area between your sellstop and SellStop_StepUpper levels, the EA opens a sellstop order following the SellStop_StepLower price. 

The EA always changes the OpenPrice for both order types when the price follows a trend till it leaves the displayed area.

You can adjust BuyStop_StopLoss , BuyStop_Takeprofit and BuyStop_Lot to open a buystop order. You can also set SellStop_StopLossSellStop_Takeprofit and SellStop_Lot for a sellstop order.

Here is how it looks on the charts:

MetaTrader Experts, Indicators, Scripts and Libraries

Another example:


MetaTrader Experts, Indicators, Scripts and Libraries

16921

Best MetaTrader Indicators + Profitable Expert Advisors