OpenTimeTral
- Experts
- Valeriy Yastremskiy
- Versão: 1.0
- Ativações: 5
Se a aproximação off trailing stop não precisa, escolhemos o valor da Ksl = 0
Se quiser usar Prots - percentagem de fundos disponíveis, defina o valor de Lotes igual a zero.
Introdução as opções de
Lots=0.01; //working lot
Prots=0.01; // Percentage of available funds
slippage =2; //the level of acceptable slippage - requote in points
TakeProfit=500; //take profit in points
StopLoss=200; //stop loss in points
Open_Level_St=100; //distance level from the price for stop orders
Open_Level_Lim=200; //distance level from the price for limit orders
Tral_Stop=200; // Dist. persecutions StopLoss, Tral_Stop
Tral_Profit=100; // Dist. moving away TakeProfit, Tral_Profit
Ksl = 0.2; // StopLoss reduction coefficient, when approaching TakeProfit by the formula for Buy
// linear approximation SL = Bid - (Tral - 0.2(Bid - OrderOpenPrice()))
// dynamic approximation SL = Bid - (SL - Ksl (Bid - OrderOpenPrice()))
Open_Time=D'03.01.2019 13:00:00'; //the time of opening orders must be greater than the current time.
time_op = 600; // The lifetime of pending orders, in minutes, must be more than 11 minutes.
extern int Magic=5345; //the magic number of our orders
coming=linear; // the choice of a linear approximation or a dynamic Trailing stop
Open_Buy=false; //Yes/No working with buy orders
Open_Sell=false; //Yes/No working with sell orders
Open_Buy_Limit=false; //Yes/No working with buy limit orders
Open_Sell_Limit=false; //Yes/No working with sell limit orders
Open_Buy_Stop=True; //Yes/No working with buy stop orders
Open_Sell_Stop=True; //Yes/No working with sell stop orders