CreateOrder(
const Instrument: TInstrument; const Account: TAccount; const Amount: Double; const BuySell: TBuySell; const StopRate: Double;
const LimitRate: Double;
const TraderRange: Integer; const OperationTag: String); |
Create a market order. Parameters:
Instrument: TInstrument– the instrument. Account: TAccount – the account. Amount: Double– the number of lots. BuySell: TBuySell– buy or sell. StopRate: Double – the predefined stop order rate (enter 'NullRate' if you do not want to place a stop order). LimitRate: Double – the predefined limit order rate (enter 'NullRate' if you do not want to place a limit order). TraderRange: Integer – Trader Range. OperationTag: String – the custom order tag. |
CreateEntryOrder(
const Instrument: TInstrument; const Account: TAccount; const Amount: Double; const BuySell: TBuySell; const Rate: Double; const StopRate: Double;
const LimitRate: Double;
const OrderType: TorderType; const OperationTag: String); |
Create an entry order. Parameters:
Instrument: TInstrument – the used instrument. Account: TAccount – the used account. Amount: Double — the number of lots. BuySell: TBuySell — buy or sell. Rate: Double — the entry rate. StopRate: Double – the predefined stop order rate (enter 'NullRate' if you do not want to place a stop order). LimitRate: Double – the predefined limit order rate (enter 'NullRate' if you do not want to place a limit order). OrderType: TOrderType — the order type. Values: otEStop, otELimit. OperationTag: String — custom order tag. |
CreateStopLimitOrder(
const Trade: TTrade;
const Rate: Double; const OrderType: TOrderType; const OperationTag: String); |
Create a stop or a limit order on the open position. Parameters:
Trade: TTrade – the open position (object) on which the order is placed. Rate: Double – the stop or limit rate. OrderType: TOrderType — the order type. Values: otStop, otLimit. OperationTag: String — the custom order tag.
|
CreateStopLimitOnEntry(
const EntryOrder: Torder;
const Rate: Double; const OrderType: TOrderType; const OperationTag: String); |
Create a stop or a limit order on the entry order. Parameters:
EntryOrder: TOrder; – the entry order, on which the conditional order is placed. Rate: Double – the stop or limit rate. OrderType: TOrderType — the order type. Values: otStop, otLimit. OperationTag: String — the custom order tag. |
CloseTrade(
const Trade: TTrade; const Amount: Double; const TraderRange: Integer; const OperationTag: String); |
Close a position. Parameters:
Trade – the open position which should be closed. Amount – the number of lots. TraderRange – Trader Range. OperationTag – the custom order tag. |