Join our fan page
- Views:
- 11647
- Rating:
- Published:
- 2015.12.04 11:43
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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.
- 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 Ltd.
Original code: https://www.mql5.com/ru/code/14300
![Background_DotsCandle_HTF](https://c.mql5.com/i/code/indicator.png)
The indicator draws DotsCandle indicator candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.
![DotsCandle](https://c.mql5.com/i/code/indicator.png)
The Dots indicator implemented as a sequence of candlesticks. Candlesticks appear as a result of relevant price timeseries processed by the Dots algorithm.
![LinearMomentum](https://c.mql5.com/i/code/indicator.png)
A variant of the Momentum indicator with volumes and time used in its calculations.
![fractal_dimension_HTF](https://c.mql5.com/i/code/indicator.png)
The fractal_dimension indicator with the timeframe selection option available in the input parameters.