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 4 Expert Advisor | Basic Trailing Stop

Real author:

Inovance - https://www.inovancetech.com/

Add a trailing stop to your entry signals. Simply put in your entry conditions so that the LongRule() function returns "1" when long conditions are met and the ShortRule() function returns "-1" when the short conditions are met. You can set the trailing stop distance, in pips, as an external input.

Trailing stop will adjust at each tick.

MetaTrader Experts, Indicators, Scripts and Libraries

Recommendations:

  • Will work on 4 and 5 digit brokers.
  • Always test on demo account first.
  • Does not include exit logic besides Trailing Stop.
  • Example strategy shown in template.
13906

Best MetaTrader Indicators + Profitable Expert Advisors