Guest User

Untitled

a guest
Oct 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. input double trail_pips = 200;
  2.  
  3. // トレーリングストップ設定
  4. double profit = MyOrderProfitPips(0) - trail_pips;
  5. double sl = MyOrderStopLoss(0);
  6. if(sl == 0 || profit > MyOrderShiftPips(sl, 0)) MyOrderModify(0, MyOrderShiftPrice(profit, 0), 0);
Add Comment
Please, Sign In to add comment