Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Basic Trailing Stop - expert for MetaTrader 4

Views:
36640
Rating:
(32)
Published:
2015.09.28 10:07
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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.

Basic Trailing Stop Inputs

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