Execution
<< Click to Display Table of Contents >> Execution |
Represents a read only interface that exposes information regarding an execution (filled order) resulting from an order and is passed as a parameter in the OnExecutionUpdate() method.
Note: Not all executions will have associated Order objects (e.g ExitOnSessionClose executions or AtmStrategyCreate() executions) |
Account |
The Account the execution occurred |
BarsInProgress |
An int value representing the BarsArray in which the execution occurred |
Commission |
A double value representing the commission of an execution |
ExecutionId |
A string value representing the exchange generated execution id |
Instrument |
An Instrument value representing the instrument of an order |
MarketPosition |
The position of the execution.
Possible values are:
•MarketPosition.Long •MarketPosition.Short |
Name |
A string representing the name of an order which can be provided by the entry or exit signal name |
Order |
An Order value representing an order associated to the execution. |
OrderId |
A string representing the unique id of the order which was executed |
Position |
An int value represents the current quantity of account position at the time of execution |
PositionStrategy |
An int value represents the current quantity of strategy position at the time of execution |
Price |
A double value representing the price of an execution |
Quantity |
An int value representing quantity of an execution |
Rate |
A double value representing the exchange rate calculated for non-USD base products (1 if no rate was applied) |
Slippage |
A double value representing the number of ticks calculated between the last trade price and the execution price |
Time |
A DateTime structure representing the time the execution occurred |
ToString() |
A string representation of an execution |
Finding the executions of a particular Order object |
---|
// Example #1 |
Generic execution logic not specific to a particular Order object |
---|
// Example #2 |