i want to order a ticket ,then modify it , can u give a demo about it ?
Better tell what you wish to modiy;
bool OrderModify( int ticket, double price, double stoploss, double takeprofit, datetime expiration, color arrow_color=CLR_NONE)
regarding this fifth parameter must be expiration. But you set it to Blue.
You can do;
if (OrderSelect(_orderIDBuy,SELECT_BY_TICKET))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0,Blue);}
this way you dont have to repeat same long lines again, only modify the parameter you require.
fx1.net
_orderIdBuy = OrderSend(Symbol(), OP_BUYSTOP, _number, Bid + _pendingPoint * Point, 0, Bid + _pendingPoint * Point - _lossPoint * Point, Bid + _pendingPoint * Point + _getPoint * Point, "some comment", 16384, 0, Green);
OrderModify(_orderIdBuy, Bid + _pendingPoint * Point, Bid + _pendingPoint * Point - _lossPoint * Point, Bid + _pendingPoint * Point + _getPoint * Point, Blue);
this code is wrong...