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
What do you want modify, if you nothing changed?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
_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...