Indicator¶
Summary¶
Base class for Indicators.
Remarks¶
Contains all necessary market information, provides access to built-in indicators and provides framework forconvenient indicators' creation.
Signature
1 |
|
Namespace¶
cAlgo.API
Examples¶
1 2 3 4 5 6 |
|
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 |
|
Methods¶
Calculate¶
Summary
Calculate the value(s) of indicator for the given index.
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
index | int | The index of calculated value. |
Return Value
void
Examples
1 2 3 4 5 6 |
|
ToString¶
Summary
The name of the indicator derived class.
Signature
1 |
|
Return Value
string
Examples
1 2 3 4 |
|
AddToChart¶
Summary
Adds current indicator to chart if not added yet.
Remarks
If Indicator with same parameter values already added then it will return existing indicator instance.
Signature
1 |
|
Return Value
ChartIndicator
PlaceLimitOrder (12)¶
PlaceLimitOrder (1 of 12)
Summary
Place a Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
Return Value
TradeResult
PlaceLimitOrder (2 of 12)
Summary
Place a Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
label | string | Label representing the order |
Return Value
TradeResult
PlaceLimitOrder (3 of 12)
Summary
Place a Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
Return Value
TradeResult
PlaceLimitOrder (4 of 12)
Summary
Place a Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
Return Value
TradeResult
PlaceLimitOrder (5 of 12)
Summary
Place a Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
comment | string | Order comment |
Return Value
TradeResult
Examples
1 2 |
|
1 2 |
|
1 2 |
|
1 2 3 4 |
|
1 2 3 4 |
|
PlaceLimitOrder (6 of 12)
Summary
Place a Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
Return Value
TradeResult
Examples
1 2 |
|
1 2 |
|
1 2 |
|
1 2 3 4 |
|
1 2 3 4 |
|
1 2 3 4 |
|
PlaceLimitOrder (7 of 12)
Summary
Place a Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
Examples
1 2 |
|
1 2 |
|
1 2 |
|
1 2 3 4 |
|
1 2 3 4 |
|
1 2 3 4 |
|
1 2 3 4 |
|
PlaceLimitOrder (8 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? |
Return Value
TradeResult
PlaceLimitOrder (9 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? |
Return Value
TradeResult
PlaceLimitOrder (10 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string |
Return Value
TradeResult
PlaceLimitOrder (11 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | |
hasTrailingStop | bool |
Return Value
TradeResult
PlaceLimitOrder (12 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? |
Return Value
TradeResult
Examples
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
PlaceLimitOrderAsync (12)¶
PlaceLimitOrderAsync (1 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
callback | Action | The action when the position closes |
Return Value
TradeOperation
PlaceLimitOrderAsync (2 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
callback | Action | The action when the position closes |
Return Value
TradeOperation
PlaceLimitOrderAsync (3 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
callback | Action | The action when the position closes |
Return Value
TradeOperation
PlaceLimitOrderAsync (4 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
callback | Action | The action when the position closes |
Return Value
TradeOperation
PlaceLimitOrderAsync (5 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
callback | Action | The action when the position closes |
Return Value
TradeOperation
Examples
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
PlaceLimitOrderAsync (6 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
callback | Action | The action when the position closes |
Return Value
TradeOperation
Examples
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 |
|
PlaceLimitOrderAsync (7 of 12)
Summary
Place limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Target price (or better) at which the order is filled |
label | string | Label that represents the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
callback | Action | The action when the position closes |
Return Value
TradeOperation
Examples
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 |
|
1 2 3 |
|
PlaceLimitOrderAsync (8 of 12)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
callback | Action |
Return Value
TradeOperation
PlaceLimitOrderAsync (9 of 12)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
callback | Action |
Return Value
TradeOperation
PlaceLimitOrderAsync (10 of 12)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
callback | Action |
Return Value
TradeOperation
PlaceLimitOrderAsync (11 of 12)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
callback | Action |
Return Value
TradeOperation
PlaceLimitOrderAsync (12 of 12)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
callback | Action |
Return Value
TradeOperation
PlaceStopOrder (14)¶
PlaceStopOrder (1 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
Return Value
TradeResult
PlaceStopOrder (2 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
label | string | Representing label |
Return Value
TradeResult
PlaceStopOrder (3 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
label | string | Representing label |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
Return Value
TradeResult
PlaceStopOrder (4 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
label | string | Representing label |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
Return Value
TradeResult
PlaceStopOrder (5 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
label | string | Representing label |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
comment | string | Order comment |
Return Value
TradeResult
Examples
1 |
|
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 |
|
PlaceStopOrder (6 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
label | string | Representing label |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
Return Value
TradeResult
Examples
1 |
|
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 |
|
1 2 |
|
PlaceStopOrder (7 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
label | string | Representing label |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
Examples
1 |
|
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 |
|
1 2 |
|
1 2 |
|
PlaceStopOrder (8 of 14)
Summary
Place a stop order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price at which order becomes a market order |
label | string | Representing label |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod | Determines how pending order will be triggered in case it's a StopOrder |
Return Value
TradeResult
Examples
1 |
|
1 2 |
|
1 2 |
|
1 2 3 |
|
1 2 |
|
1 2 |
|
1 2 |
|
PlaceStopOrder (9 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? |
Return Value
TradeResult
PlaceStopOrder (10 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? |
Return Value
TradeResult
PlaceStopOrder (11 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string |
Return Value
TradeResult
PlaceStopOrder (12 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | |
hasTrailingStop | bool |
Return Value
TradeResult
PlaceStopOrder (13 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
PlaceStopOrder (14 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | |
stopOrderTriggerMethod | StopTriggerMethod |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
PlaceStopOrderAsync (14)¶
PlaceStopOrderAsync (1 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopOrderAsync (2 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopOrderAsync (3 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopOrderAsync (4 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopOrderAsync (5 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
callback | Action | Action when order is placed |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
PlaceStopOrderAsync (6 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
callback | Action | Action when order is placed |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
PlaceStopOrderAsync (7 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
callback | Action | Action when order is placed |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
PlaceStopOrderAsync (8 of 14)
Summary
Place stop order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume of trade |
targetPrice | double | Price at which the order becomes market order |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod | Determines how pending order will be triggered in case it's a StopOrder |
callback | Action | Action when order is placed |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
PlaceStopOrderAsync (9 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
callback | Action |
Return Value
TradeOperation
PlaceStopOrderAsync (10 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
callback | Action |
Return Value
TradeOperation
PlaceStopOrderAsync (11 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
callback | Action |
Return Value
TradeOperation
PlaceStopOrderAsync (12 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
callback | Action |
Return Value
TradeOperation
PlaceStopOrderAsync (13 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
callback | Action |
Return Value
TradeOperation
PlaceStopOrderAsync (14 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
stopOrderTriggerMethod | StopTriggerMethod | |
callback | Action |
Return Value
TradeOperation
PlaceStopLimitOrder (14)¶
PlaceStopLimitOrder (1 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
Return Value
TradeResult
PlaceStopLimitOrder (2 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
Return Value
TradeResult
PlaceStopLimitOrder (3 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
Return Value
TradeResult
PlaceStopLimitOrder (4 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
Return Value
TradeResult
PlaceStopLimitOrder (5 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
Return Value
TradeResult
PlaceStopLimitOrder (6 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
Return Value
TradeResult
PlaceStopLimitOrder (7 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
PlaceStopLimitOrder (8 of 14)
Summary
Place a Stop Limit Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod | Determines how pending order will be triggered in case it's a StopLimitOrder |
Return Value
TradeResult
PlaceStopLimitOrder (9 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? |
Return Value
TradeResult
PlaceStopLimitOrder (10 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? |
Return Value
TradeResult
PlaceStopLimitOrder (11 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string |
Return Value
TradeResult
PlaceStopLimitOrder (12 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | |
hasTrailingStop | bool |
Return Value
TradeResult
PlaceStopLimitOrder (13 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? |
Return Value
TradeResult
PlaceStopLimitOrder (14 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | |
stopOrderTriggerMethod | StopTriggerMethod |
Return Value
TradeResult
PlaceStopLimitOrderAsync (14)¶
PlaceStopLimitOrderAsync (1 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (2 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (3 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (4 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (5 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (6 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (7 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (8 of 14)
Summary
Place Stop Limit order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
targetPrice | double | Price (or better) at which order is filled |
stopLimitRangePips | double | Maximum distance for order execution from target price |
label | string | Label representing the order |
stopLoss | double? | Stop loss |
takeProfit | double? | Take profit |
protectionType | ProtectionType? | Protection type |
expiration | DateTime? | Order expiry date and time |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod | Determines how pending order will be triggered in case it's a StopLimitOrder |
callback | Action | Action when order is placed |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (9 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
stopLimitRangePips | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
callback | Action |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (10 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
stopLimitRangePips | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
callback | Action |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (11 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
stopLimitRangePips | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
callback | Action |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (12 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
stopLimitRangePips | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
callback | Action |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (13 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
stopLimitRangePips | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
callback | Action |
Return Value
TradeOperation
PlaceStopLimitOrderAsync (14 of 14)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | |
symbolName | string | |
volume | double | |
targetPrice | double | |
stopLimitRangePips | double | |
label | string | |
stopLossPips | double? | |
takeProfitPips | double? | |
expiration | DateTime? | |
comment | string | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
stopOrderTriggerMethod | StopTriggerMethod | |
callback | Action |
Return Value
TradeOperation
ExecuteMarketOrder (6)¶
ExecuteMarketOrder (1 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
Return Value
TradeResult
ExecuteMarketOrder (2 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Representing label |
Return Value
TradeResult
ExecuteMarketOrder (3 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
Return Value
TradeResult
ExecuteMarketOrder (4 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | order comment |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
ExecuteMarketOrder (5 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
ExecuteMarketOrder (6 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
ExecuteMarketOrderAsync (6)¶
ExecuteMarketOrderAsync (1 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
ExecuteMarketOrderAsync (2 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Label representing the order |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
ExecuteMarketOrderAsync (3 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
ExecuteMarketOrderAsync (4 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | Order comment |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
ExecuteMarketOrderAsync (5 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
1 2 |
|
ExecuteMarketOrderAsync (6 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
1 2 |
|
1 2 |
|
ExecuteMarketRangeOrder (6)¶
ExecuteMarketRangeOrder (1 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
Return Value
TradeResult
ExecuteMarketRangeOrder (2 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Representing label |
Return Value
TradeResult
ExecuteMarketRangeOrder (3 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
Return Value
TradeResult
ExecuteMarketRangeOrder (4 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | order comment |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
ExecuteMarketRangeOrder (5 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
ExecuteMarketRangeOrder (6 of 6)
Summary
Execute a Market Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Representing label |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
ExecuteMarketRangeOrderAsync (6)¶
ExecuteMarketRangeOrderAsync (1 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
ExecuteMarketRangeOrderAsync (2 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Label representing the order |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
ExecuteMarketRangeOrderAsync (3 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
ExecuteMarketRangeOrderAsync (4 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | Order comment |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
ExecuteMarketRangeOrderAsync (5 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
1 2 |
|
ExecuteMarketRangeOrderAsync (6 of 6)
Summary
Execute a market order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
tradeType | TradeType | Direction of trade |
symbolName | string | Symbol name of trade |
volume | double | Volume (in units) of trade |
marketRangePips | double | The market range (slippage) in Pips |
basePrice | double | Base price to calculate relative slippage price |
label | string | Label representing the order |
stopLossPips | double? | Stop loss in pips |
takeProfitPips | double? | Take profit in pips |
comment | string | Order comment |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
callback | Action | Event raised when position is opened |
Return Value
TradeOperation
Examples
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 2 |
|
1 2 |
|
1 2 |
|
ReversePosition (2)¶
ReversePosition (1 of 2)
Summary
Modify the direction of trade at position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position which is affected |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ReversePosition (2 of 2)
Summary
Modify the direction of trade and volume of a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position which is affected |
volume | double | Volume (in units) of Trade |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ModifyPosition (7)¶
ModifyPosition (1 of 7)
Summary
Modify the volume of a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position which is affected |
volume | double | Volume (in units) of Trade |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ModifyPosition (2 of 7)
Summary
Modify the protection of a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position which is affected |
stopLoss | double? | New stop loss |
takeProfit | double? | New take profit |
protectionType | ProtectionType? | Protection type |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
ModifyPosition (3 of 7)
Summary
Modify the protection of a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position which is affected |
stopLoss | double? | New stop loss |
takeProfit | double? | New take profit |
protectionType | ProtectionType? | Protection type |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 9 |
|
ModifyPosition (4 of 7)
Summary
Modify the protection of a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position which is affected |
stopLoss | double? | New stop loss |
takeProfit | double? | New take profit |
protectionType | ProtectionType? | Protection type |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 |
|
ModifyPosition (5 of 7)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
stopLoss | double? | |
takeProfit | double? |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ModifyPosition (6 of 7)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
stopLoss | double? | New stop loss |
takeProfit | double? | New take profit |
hasTrailingStop | bool |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
ModifyPosition (7 of 7)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
stopLoss | double? | New stop loss price |
takeProfit | double? | New take profit price |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 |
|
ClosePosition (3)¶
ClosePosition (1 of 3)
Summary
Close a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to close |
Return Value
TradeResult
ClosePosition (2 of 3)
Summary
Close a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to close |
volume | long | Volume which is closed |
Return Value
TradeResult
Examples
1 |
|
1 2 |
|
ClosePosition (3 of 3)
Summary
Close a position
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to close |
volume | double | Volume which is closed |
Return Value
TradeResult
Examples
1 |
|
1 2 |
|
ClosePositionAsync (3)¶
ClosePositionAsync (1 of 3)
Summary
Close a position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | The position to close |
callback | Action | The action when the position closes |
Return Value
TradeOperation
ClosePositionAsync (2 of 3)
Summary
Close a position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | The position to close |
volume | long | The volume to close |
callback | Action | The action when the position closes |
Return Value
TradeOperation
Examples
1 |
|
1 2 |
|
ClosePositionAsync (3 of 3)
Summary
Close a position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | The position to close |
volume | double | The volume to close |
callback | Action | The action when the position closes |
Return Value
TradeOperation
Examples
1 |
|
1 2 |
|
ReversePositionAsync (2)¶
ReversePositionAsync (1 of 2)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
callback | Action | Method that is called when position is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 |
|
ReversePositionAsync (2 of 2)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
volume | double | New volume |
callback | Action | Method that is called when position is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 |
|
ModifyPositionAsync (7)¶
ModifyPositionAsync (1 of 7)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
volume | double | New volume |
callback | Action | Method that is called when position is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 |
|
ModifyPositionAsync (2 of 7)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
stopLoss | double? | New stop loss |
takeProfit | double? | New take profit |
protectionType | ProtectionType? | New protection type |
callback | Action | Method that is called when position is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
ModifyPositionAsync (3 of 7)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
stopLoss | double? | New stop loss price |
takeProfit | double? | New take profit price |
protectionType | ProtectionType? | Protection type |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
callback | Action | Method that is called when position is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 |
|
ModifyPositionAsync (4 of 7)
Summary
Modify Position in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | Position to modify |
stopLoss | double? | New stop loss |
takeProfit | double? | New take profit |
protectionType | ProtectionType? | Protection type |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
callback | Action | Method that is called when position is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 |
|
ModifyPositionAsync (5 of 7)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | |
stopLoss | double? | |
takeProfit | double? | |
callback | Action |
Return Value
TradeOperation
ModifyPositionAsync (6 of 7)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | |
stopLoss | double? | |
takeProfit | double? | |
hasTrailingStop | bool | |
callback | Action |
Return Value
TradeOperation
ModifyPositionAsync (7 of 7)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
position | Position | |
stopLoss | double? | |
takeProfit | double? | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
callback | Action |
Return Value
TradeOperation
CancelPendingOrder¶
Summary
Cancel a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
Return Value
TradeResult
Examples
1 2 3 4 |
|
ModifyPendingOrder (17)¶
ModifyPendingOrder (1 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ModifyPendingOrder (2 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ModifyPendingOrder (3 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New order expiration time |
Return Value
TradeResult
Examples
1 2 3 4 5 6 |
|
ModifyPendingOrder (4 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New order expiration time |
volume | long | New volume in units for the order |
Return Value
TradeResult
Examples
1 2 3 4 5 6 |
|
ModifyPendingOrder (5 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New order expiration time |
volume | double | New volume in units for the order |
Return Value
TradeResult
Examples
1 2 3 4 5 6 |
|
ModifyPendingOrder (6 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New order expiration time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
Return Value
TradeResult
Examples
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (7 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New order expiration time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (8 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New order expiration time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod? | Determines how pending order will be triggered in case it's a StopOrder |
Return Value
TradeResult
Examples
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (9 of 17)
Summary
Modify a Pending Order
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order which is affected |
targetPrice | double | New target price |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New order expiration time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod? | Determines how pending order will be triggered in case it's a StopOrder |
stopLimitRangePips | double? | Maximum distance for order execution from target price |
Return Value
TradeResult
Examples
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (10 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ModifyPendingOrder (11 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? |
Return Value
TradeResult
Examples
1 2 3 4 5 |
|
ModifyPendingOrder (12 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | New expiry date and time |
volume | long |
Return Value
TradeResult
Examples
1 2 3 4 5 6 |
|
ModifyPendingOrder (13 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (14 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (15 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (16 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod? |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrder (17 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | |
stopOrderTriggerMethod | StopTriggerMethod? | |
stopLimitRangePips | double? |
Return Value
TradeResult
Examples
1 2 3 4 5 6 7 |
|
CancelPendingOrderAsync¶
Summary
Cancel a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to cancel |
callback | Action | Method that is called when pending order is cancelled |
Return Value
TradeOperation
Examples
1 2 3 4 5 |
|
ModifyPendingOrderAsync (17)¶
ModifyPendingOrderAsync (1 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 |
|
ModifyPendingOrderAsync (2 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 |
|
ModifyPendingOrderAsync (3 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New expiry date and time |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 |
|
ModifyPendingOrderAsync (4 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New expiry date and time |
volume | long | New volume in units for the order |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrderAsync (5 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrderAsync (6 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod? | Determines how pending order will be triggered in case it's a StopOrder |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrderAsync (7 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrderAsync (8 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 7 |
|
ModifyPendingOrderAsync (9 of 17)
Summary
Modify a Pending Order in asynchronous execution mode
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | Pending Order to modify |
targetPrice | double | New target price at which the order becomes market order |
stopLoss | double? | New Stop loss |
takeProfit | double? | New Take profit |
protectionType | ProtectionType? | New Protection type |
expirationTime | DateTime? | New expiry date and time |
volume | double | New volume in units for the order |
hasTrailingStop | bool | Enable/disable TrailingStop for position |
stopLossTriggerMethod | StopTriggerMethod? | Trigger method for position's StopLoss |
stopOrderTriggerMethod | StopTriggerMethod? | Determines how pending order will be triggered in case it's a StopOrder |
stopLimitRangePips | double? | Maximum distance for order execution from target price |
callback | Action | Method that is called when order is modified |
Return Value
TradeOperation
Examples
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 |
|
ModifyPendingOrderAsync (10 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
callback | Action |
Return Value
TradeOperation
ModifyPendingOrderAsync (11 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | |
callback | Action |
Return Value
TradeOperation
ModifyPendingOrderAsync (12 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | |
volume | long | |
callback | Action |
Return Value
TradeOperation
ModifyPendingOrderAsync (13 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | |
volume | double | |
callback | Action |
Return Value
TradeOperation
ModifyPendingOrderAsync (14 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | |
volume | double | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
stopOrderTriggerMethod | StopTriggerMethod? | |
callback | Action |
Return Value
TradeOperation
ModifyPendingOrderAsync (15 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | |
volume | double | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
callback | Action |
Return Value
TradeOperation
ModifyPendingOrderAsync (16 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | |
volume | double | |
hasTrailingStop | bool | |
callback | Action |
Return Value
TradeOperation
ModifyPendingOrderAsync (17 of 17)
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
pendingOrder | PendingOrder | |
targetPrice | double | |
stopLossPips | double? | |
takeProfitPips | double? | |
expirationTime | DateTime? | |
volume | double | |
hasTrailingStop | bool | |
stopLossTriggerMethod | StopTriggerMethod? | |
stopOrderTriggerMethod | StopTriggerMethod? | |
stopLimitRangePips | double? | |
callback | Action |
Return Value
TradeOperation
Properties¶
IsRealTime¶
Signature
1 |
|
Return Value
bool
IsLastBar¶
Summary
Returns true, if Calculate is invoked for the last bar
Signature
1 |
|
Return Value
bool
Examples
1 2 3 4 5 6 7 |
|
IndicatorArea¶
Summary
Defines the area where the indicator is placed.
Signature
1 |
|
Return Value
IndicatorArea
Account¶
Summary
Contains information of the current account.
Signature
1 |
|
Return Value
IAccount
Examples
1 2 |
|
Permissions¶
Summary
Contains all Permissions information
Signature
1 |
|
Return Value
Permissions
LastResult¶
Summary
The latest trade result
Signature
1 |
|
Return Value
TradeResult
Examples
1 2 3 |
|