Method OrderModify
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
OrderModify(long, string, double, double, OrderType, double, double, long, double, Expiration?, string?)
Modify a position's SL/TP, or a pending order's price/SL/TP/volume/expiration (MT5 OrderModify).
SL/TP are absolute prices; 0 removes the level.
public void OrderModify(long ticket, string symbol, double lots, double price, OrderType type, double sl, double tp, long expertID = 0, double stoplimit = 0, Expiration? expiration = null, string? comment = null)
Parameters
ticketlongsymbolstringlotsdoublepricedoubletypeOrderTypesldoubletpdoubleexpertIDlongstoplimitdoubleexpirationExpirationcommentstring
Remarks
MT5 equivalent
MT5API.OrderModify(long ticket, string symbol, double lots, double price, OrderType type, double sl, double tp, long expertID = 0, double stoplimit = 0, Expiration expiration = null, string comment = null)— full