Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Rejoignez notre page de fans
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Exp_ReOpenPositions - expert pour MetaTrader 5
- Vues:
- 2573
- Note:
- Publié:
- 2017.01.19 16:59
- Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
The Expert Advisor increases the volume of an open position if profit in points from the last trade increases a threshold fixed in the EA inputs.
The data on addings are stored in a string comment to a position in the following format: number of addings/last trade price/last trade volume.
Trades are made when a new bar appears.
//+----------------------------------------------+
//| Input parameters of the EA indicator |
//+----------------------------------------------+
input double MM=0.1; //Share of a deposit in an added deal
input MarginMode MMMode=LOT; //lot value detection method
input uint OldProfit=300; //profit of a previous trade in points for adding
input uint PosTotal=10; //number of added trades
input uint StopLoss_=1000; //stop loss in points
input uint TakeProfit_=2000; //take profit in points
input int Deviation_=10; //max price deviation in points
//+----------------------------------------------+
//| Input parameters of the EA indicator |
//+----------------------------------------------+
input double MM=0.1; //Share of a deposit in an added deal
input MarginMode MMMode=LOT; //lot value detection method
input uint OldProfit=300; //profit of a previous trade in points for adding
input uint PosTotal=10; //number of added trades
input uint StopLoss_=1000; //stop loss in points
input uint TakeProfit_=2000; //take profit in points
input int Deviation_=10; //max price deviation in points
//+----------------------------------------------+
Fig. 1. Examples of trades on the chart
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/16831
Exp_TralingStop
The Expert Advisor moves a stop loss to a predefined fixed distance from the current price.
Scalpel EAScalpel EA for MetaTrader 5
Waddah_Attar_Trend_Alert
Waddah_Attar_Trend indicator features alerts, emails and push notifications.
EMA CROSSCrossing of the two iMAs.