Please use this to post code . . . it makes it easier to read.
take a look here for trailing SL :http://crum.be/trailsl
Please use this to post code . . . it makes it easier to read.
take a look here for trailing SL :http://crum.be/trailsl
fm=OrdModify(OrderTicket(),OrderOpenPrice(),ldTakeProfit,OrderStopLoss(),0,CLR_NONE);
if (!OrderModify(...) Alert("OrderModify failed: ",GetLastError());
I want to make a negative trailing stops.I pasted code which makes takeprofit 0 when it goes for exzample -10 pips.But it gives error...
void TrailingPositions() {