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


Exp_breakeven_trailing_SL - expert for MetaTrader 5

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

votes: 37
2015.12.04 11:43

The Exp_breakeven_trailing_SL Expert Advisor transfers to break-even and/or trails positions on every currency pairs or only on the current one.


Adjustable parameters:

1. symbol:
  • The EA works only with current currency pair
  • or with every positions.
2. magic:
  • the EA works with all magic numbers (set -1);
  • only with positions opened by user (set magic to 0);
  • or with positions opened by other Experts (set the corresponding magic).

3. Next come the break-even and trail sizes. If the parameters are set to 0, then the function will not enabled.

It is possible to choose break-even only, trail only, or both. If trail only is chosen, then the first Stop Loss transfer will be similar to break-even transfer.

  • Break-even parameters: plus points — how far the price has to go into the green in order to move Stop Loss by a single step from opening price in step breakeven points
  • Trail parameters: plus points — how far the price has to go into the green from opening price for negative Stop Loss, or from Stop Loss price, if it is in the green, in order to move Stop Loss by a single step in trailing step points.

If plus points of the trail are set less than plus points of the break-even, then break-even is triggered first, trail is triggered later.

Comments describe what is enabled — trail and/or break-even or all off, and also the the currency pair the Expert is working with.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Background_DotsCandle_HTF Background_DotsCandle_HTF

The indicator draws DotsCandle indicator candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

DotsCandle DotsCandle

The Dots indicator implemented as a sequence of candlesticks. Candlesticks appear as a result of relevant price timeseries processed by the Dots algorithm.

LinearMomentum LinearMomentum

A variant of the Momentum indicator with volumes and time used in its calculations.

fractal_dimension_HTF fractal_dimension_HTF

The fractal_dimension indicator with the timeframe selection option available in the input parameters.