Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Vues:
3401
Note:
(18)
Publié:
2017.01.19 16:57
Mise à jour:
2017.02.17 15:56
Exp_GStop.mq5 (26.56 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

This Expert Advisor closes all positions if the total loss/profit exceeds a predefined limit. In fact, this is a global stop loss and take profit for all positions simultaneously. The EA leaves appropriate comments on its actions in the log file.

//+----------------------------------------------+
//| Enumeration for loss calculation options     |
//+----------------------------------------------+
enum StopMode
{
ENUM_PERCENT, //losses in percentage
ENUM_CARRENCY //losses in deposit currency
};
//+----------------------------------------------+
//| Input parameters of the EA indicator         |
//+----------------------------------------------+
input StopMode LMode=ENUM_PERCENT; //loss calculation method
input double StopLoss=20.0; //stop loss
input double TakeProfit=100.0; //take profit

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/16782

MTC Сombo MTC Сombo

The Expert Advisor is based on a standard trend strategy and the two-layer neural network that is trained to enter the market against a trend.

MFI_Histogram_Round_HTF MFI_Histogram_Round_HTF

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

WPR_Histogram_Round_HTF WPR_Histogram_Round_HTF

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

Exp_CenterOfGravityCandle Exp_CenterOfGravityCandle

The Exp_CenterOfGravityCandles Expert Advisor is based on signals of the CenterOfGravityCandles indicator.