Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
onExecution, which BarsInProgress (or Instrument)
Collapse
X
-
onExecution, which BarsInProgress (or Instrument)
I am throwing out several buys for multiple instruments out at once. I need to determine how to process the fills for each. Using onExecution, how would I filter which instrument is being reported for this execution? IE:, which BarsInProgress is happening for the fill that just came in?Tags: None
-
You can simply call the BarsInProgress property.
For example the following:
Code:protected override void OnExecution(IExecution execution) { Print("execution occurred on BIP: " + BarsInProgress); }
execution occurred on BIP: 2
Code:if(BarsInProgress == 2) // do something
MatthewNinjaTrader Product Management
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by llanqui, Today, 03:53 AM
|
0 responses
5 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
||
Started by strategist007, Yesterday, 07:51 PM
|
0 responses
14 views
0 likes
|
Last Post Yesterday, 07:51 PM |
Comment