• Overview
  • Reviews
  • Comments (17)
  • What's new

ExpertsTrailing

ExpertsTrailing automatically moves the stop loss of an order following the price based on the most popular methods.

As is known, tracking and closing a position is an important point in trading. Changing the trailing stop system may significantly affect trading results both in the positive and in the negative direction. This Expert Advisor can automatically trail your open position. The EA utilizes the most popular trailing stop algorithms. Depending on the Parameter, an EA can trail all orders of an instrument or based on the preset magic to allow you manage orders placed by other EAs or opened manually. Enter the required parameters and run the EA. It will catch open orders and trails them.


Applies methods

  • Trailing stop based on fractals - Stop Loss is moved to the extreme values of fractals of a set size on the selected period.
  • Trailing stop based on candle shadows - Stop Loss is moved to the lowest low (for buy) or highest high (for sell) over a selected number of candles on the specified period.
  • Trailing stop based on Average True Range - Stop Loss is moved based on the ATR indicator values. It uses two ATRs, set different periods for them, e.g. 7 and 18. The largest of ATRs is always used for Stop Loss calculation - this is to avoid having a too close Stop Loss in case several low-volatile candles come in a sequence (e.g. before a news release).
  • Trailing stop based on Moving Average - Stop Loss is moved based on the MA indicator values on a selected bar.


EA Parameters

  • METHOD Check - select orders to manage (ALL ORDERS, BY MAGIC);
  • Magic - specify if check - BY MAGIC is selected;
  • ON FRACTALS Check - use fractals;
  • Timeframe - choose the timeframe for trailing;
  • Candles fractals - number of candles in a fractal (not less than 3);
  • indent - number of points from the last fractal extreme to place Stop Loss (not less than 0);
  • Trailing loss - whether to trail in a losing area.
  • SHADOW CANDLE Check - use shadows;
  • Timeframe - choose the timeframe for trailing;
  • Candles - number of candles used to define the Stop Loss level (not less than 1);
  • indent - number of points from the last fractal extreme to place Stop Loss (not less than 0);
  • Trailing loss - whether to trail in a losing area.
  • ATR Check - use ATR;
  • Timeframe - ATR period;
  • ATR1 period - first ATR period (greater than 0);
  • ATR1 shift - shift for the first ATR (a non-negative integer);
  • ATR2 period - second ATR period (greater than 0);
  • ATR1 shift - shift for the first ATR (a non-negative integer);
  • Coefficient - Stop Loss is calculated as ATR*Coefficient, (distance from the current price in ATRs to place Stop Los);
  • Trailing loss - whether to trail in a losing area.
  • MA Check - use Moving Average;
  • imeframe - MA period;
  • MAPeriod - period of averaging to calculate MA;
  • iMAShift - indicator shift relative to the price chart;
  • MAMethod - averaging method; allowable entry versions: 0 (MODE_SMA), 1 (MODE_EMA), 2 (MODE_SMMA), 3 (MODE_LWMA);
  • Price - used price; entry options: 0 (PRICE_CLOSE), 1 (PRICE_OPEN), 2 (PRICE_HIGH), 3 (PRICE_LOW), 4 (PRICE_MEDIAN), 5 (PRICE_TYPICAL), 6 (PRICE_WEIGHTED);
  • Shift - back shift from the current candle as the specified number of periods;
  • indent - shift from the MA value to place Stop Loss.

For testing purposes, the EA opens orders and then trails stop loss.

No reviews
Version 2.0 - 2016.12.01
Optimized the EA operation on a real account