Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OnExecution and Multi-Time Frame Strategies
Collapse
X
-
OnExecution and Multi-Time Frame Strategies
For a multi-time frame strategy, when inside the OnExecution function and I reference Open, High, Low, or Close, how do i know which time frame it is getting the data from? Should I be checking BarsInProgress?
Thanks!Tags: None
-
Style, the OnExecution() is not tied to any bars update event, it's strictly monitoring for fill reports, incoming executions - so the BarsInProgress filter would not make sense really here.
For data access you can use Opens, Closes, Lows or Highs, which would let you point to a specific frame to get the last known data from.
Alternatively you can set a tracking variable in OnBarUpdate() that would update on your needed BarsInProgress calls.
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
60 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
145 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
283 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment