Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2015.09.28 10:07

Basic Trailing Stop - expert for MetaTrader 4

| English Español Português Русский Deutsch 日本語

votes: 20

Real author:

Inovance -

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.

Basic Trailing Stop Inputs


  • 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.
Authenticate into an MT4 account from MQL4 (tested in build 880) Authenticate into an MT4 account from MQL4 (tested in build 880)

MQL4 library that allows authenticating into a MetaTrader 4 account programmatically in release 880+.

Custom Bollinger Bands Custom Bollinger Bands

Bollinger Bands with customizable moving average method and applied price.

Close symbol with profit or loss Close symbol with profit or loss

Easy EA for closing positions of the symbol with profit or loss. You can use it for hidden SL too.

Robust EA Template Robust EA Template

A robust EA template to use with your entry conditions.