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:
Would spit out the following:Code:protected override void OnExecution(IExecution execution) { Print("execution occurred on BIP: " + BarsInProgress); }
You can also do filtering on BIP like you may be using in OnBarUpdate:execution occurred on BIP: 2
Please let me know if that's not what you're looking for.Code:if(BarsInProgress == 2) // do something
MatthewNinjaTrader Product Management
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
71 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
43 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
25 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
28 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
56 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment