Inserted Code
void ModifyOrder(double buyTS, sellTS) { if (Bid - OrderOpenPrice() > buyTS * Point) if (OrderStopLoss() < Bid - buyTS * Point) OrderModify(OrderTicket(), OrderOpenPrice(), Bid - buyTS * Point, OrderTakeProfit(), 0); if (OrderOpenPrice() - Ask > sellTS * Point) if (OrderStopLoss() > Ask + sellTS * Point) OrderModify(OrderTicket(), OrderOpenPrice(), Ask + sellTS * Point, OrderTakeProfit(), 0); }
If the Trailing Stop is 40, the initial stop will be at + zero pips (the orderopenprice)
I would like the initial stop to be at plus 10 pips over orderopenprice
- help please?