Executions

View as Markdown

Definition

A collection of Execution objects generated for the specified account. These are the current sessions executions and should match executions reported in the Executions tab of the NinjaTrader Account Data window.

Property Value

An Collection of Execution objects

Syntax

\<account\>.Executions

At this time there is not a supported method to retrieve historical executions from the local database.

Examples

1private Account myAccount;
2
3protected override void OnStateChange()
4{
5 if (State == State.SetDefaults)
6 {
7 // Initialize myAccount
8 }
9}
10
11private void OnExecutionUpdate(object sender, ExecutionEventArgs e)
12{
13 foreach (Execution execution in myAccount.Executions)
14 {
15 Print(String.Format("Execution triggered for Order {0}", execution.Order));
16 }
17}