OpenTimeTral
- エキスパート
- Valeriy Yastremskiy
- バージョン: 1.0
- アクティベーション: 5
時に顧問と動的最後の停止と最後の益となりました。
OpenTimeTral2エキスパートアドバイザは、指定された時間に選択された注文タイプを設定し、最初のマーケットオーダーに動的なトレーリングストップとトレーリング
注文タイプの選択に関する制限:
1. できるだけ選択タイプのいずれかを購入または売れない。 選択した成行注文では、保留注文を選択することはできません。
2. 保留中および指値注文は、任意の組み合わせで選択できます。
最初の保留中または指値注文を成行注文に変換した後、残りの保留中および指値注文は削除されます。
動的な最後の停止で使用する。 Stoplossは、買い注文の現在の入札価格と売り注文のAsk価格からトレーリングストップ値を超えない距離で修正され、線形またはフィードバック加速式を使
TakeProfitでは、一定の末尾の値も使用されます。 現在の価格がテイクプロフィットレベルに近づくと、テイクプロフィットはトラリングプロフィット距離によって変更されます。
TrailingStopまたはTrailingprofitが必要ない場合は、対応する値0を選択します。
トレーリングストップを近似する必要がない場合は、値Ksl=0を選択します
Protsを利用可能な資金の割合として使用する場合は、ロット値をゼロに設定します。
入力パラメータ
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