Guarda come scaricare robot di trading gratuitamente
Ci trovi su Twitter!
Unisciti alla nostra fan page
Unisciti alla nostra fan page
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
- Visualizzazioni:
- 4019
- Valutazioni:
- Pubblicato:
- 2017.01.19 16:56
- Aggiornato:
- 2017.02.17 15:59
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
This Expert Advisor closes all positions if the total loss exceeds a predefined limit. In fact, this is a global stop loss for all positions simultaneously.
//+----------------------------------------------+
//| Enumeration for loss calculation options |
//+----------------------------------------------+
enum LossMode
{
ENUM_PERCENT, //losses in percentage
ENUM_CARRENCY //losses in deposit currency
};
//+----------------------------------------------+
//| Input parameters of the EA indicator |
//+----------------------------------------------+
input LossMode LMode=ENUM_PERCENT; //loss calculation method
input double StopLoss=20.0; //stop loss
//+----------------------------------------------+
//| Enumeration for loss calculation options |
//+----------------------------------------------+
enum LossMode
{
ENUM_PERCENT, //losses in percentage
ENUM_CARRENCY //losses in deposit currency
};
//+----------------------------------------------+
//| Input parameters of the EA indicator |
//+----------------------------------------------+
input LossMode LMode=ENUM_PERCENT; //loss calculation method
input double StopLoss=20.0; //stop loss
//+----------------------------------------------+
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/16759

The indicator shows the price chart of any scaling level.

Analyzing iBullsPower and iBearsPower indicators on the first bar.

This Expert Advisor closes all positions if the total profit exceeds a predefined limit.

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