• 概述
  • 评论
  • 评论 (19)
  • 新特性

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.
  • Trailing stop from the breakeven level - Stop Loss is moved based on the total breakeven of buy or sell trades.


EA Parameters

  • METHOD Check - select orders to manage (ALL ORDERS, BY MAGIC);
  • Magic - specify if check - BY MAGIC is selected; enter the magic number of trades to monitor, multiple magic numbers can be used, for example 1111111;13;14 , separated by ";" without spaces;
  • 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;
  • BREAKEVEN - use the breakeven method;
  • TrailingStart - the distance from the breakeven level to the first stop loss level;
  • TrailingStop - the distance between stop loss and the price;
  • The display of breakeven - showing breakeven levels on the chart.

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

无评论
版本 2.1 - 2017.02.10
What's new in version 2.1

In the updated version it is possible to set multiple magic numbers. A new trailing stop methjod has been added.

New method:
Trailing stop from breakeven - Stop Loss is moved based on the total breakeven of buy or sell trades.

New EA parameters

Magic - if check - BY MAGIC is selected; enter the magic number of trades to monitor, multiple magic numbers can be used, for example 1111111;13;14 , separated by ";" without spaces;;
BREAKEVEN - use the breakeven method;
TrailingStart - the distance from the breakeven level to the first stop loss level;
TrailingStop - the distance between stop loss and the price;
The display of breakeven - showing breakeven levels on the chart.
版本 2.0 - 2016.12.01
Optimized the EA operation on a real account