トレーリングストップ(スマート)のコードが必要
Results 1 to 3 of 3

Thread: トレーリングストップ(スマート)のコードが必要

  1. #1
    誰かが知っている、大規模なバッチ(開いている、例えば:ロット1.20,2.40,4.80など...)にのみ後続の停止を活性化(および管理)することができます利益目標または損失を停止する。

    誰が私に答えてくれますか

  2. #2
    挿入されたコードvoid TrailingSelected(double trail、double lot_mini){if(trail == 0)return; int k = 0; if(_Digits == 5 || _Digits == 3)k = 10; else k = 1;/---- double stopcal; int trade; int trades = OrdersTotal();ダブルprofitcalc; bool Order_Modif; if(OrderSymbol()== Symbol()){//長い場合(OrderType()==) OP_BUY OrderMagicNumber()== MagicNumber_Buy OrderLots()gt; = lot_mini){stopcal = NormalizeDouble((OrderStopLoss() (trail * k * _Point))、_Digits); profitcalc = OrderTakeProfit(); {Order_Modif = OrderModify(OrderTicket()、OrderOpenPrice()、NormalizeDouble()}を使用すると、 (OrderStopLoss() (trail2 * k * Point)、_Digits)、profitcalc、0、Blue); (OrderStopLoss() - (trail * k * _Point))、_Digits();}}/Long/Short(OrderType()=== OP_SELL OrderMagicNumber()== MagicNumber_Sell OrderLots()gt; = lot_mini) ); profitcalc = OrderTakeProfit(); {OrderModify = OrderModify(OrderTicket()、OrderOpenPrice()、NormalizeDouble()}を使用して、 (OrderStopLoss() - (trail2 * k * Point)、_Digits)、profitcalc、0、Red); }}/}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}/--- bool SL_check = false、TP_check = false;/--- 2つのオーダータイプのみをチェックするswitch(type){//---オペレーションケースを購入するORDER_TYPE_BUY:{//--- StopLossをチェックするSL_check =(Bid-SLgt; stops_level * _Point); if(SL == 0)SL_check = True;/--- TakeProfitをチェックするTP_check =(TP-Bidgt; stops_level * _Point); if(TP == 0)TP_check = True;/--- return(SL_checkTP_check)のチェック結果を返します。 }/---オペレーションケースを売却するORDER_TYPE_SELL:{//--- StopLossを確認するSL_check =(SL-Askgt; stops_level * _Point); if(SL == 0)SL_check = True;/--- TakeProfitをチェックするTP_check =(Ask-TPgt; stops_level * _Point); if(TP == 0)TP_check = True;/--- returnの結果を返します(TP_checkSL_check); }ブレーク; }偽を返します。 }

  3. #3
    多くのおかげで、シンフォニー:私はそれを試してみましょう。敬具

投稿権限

  • Youma新しいスレッドを投稿しない
  • Youmaは返信しない
  • あなたは添付ファイルを投稿しないかもしれない
  • Youma Notedityourposts
  •  
  • スマイリーはオンです
  • スマイリーはオンです
  • [IMG]コードがオンです
  • [VIDEO]コードがオンです
  • HTMLコードがオフです
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.