Thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
What does this code do?
Collapse
X
-
What does this code do?
Hi - I'm wondering what does the code in the screenshot do? I have 2 more additonal data series. It's generated by the builder. I'm not sure if they need to be changed or not.
Thank you!
1 PhotoTags: None
-
Hello HiddenPhilosopher,
This code will prevent the code from continuing if the primary series is not processing if there are multiple series added to a script, and will prevent the code from continuing if the first series (the primary series BarsInProgress 0) or the third series (BarsInProgress 2) do not have at least one bar to process in OnBarUpdate().
Chelsea B.NinjaTrader Customer Service
-
My primary series is 1 minute, and I added 30 minute additional data series. My strategy uses 200 EMA on 30 minute bar data. Apparently, to calculate 200 EMA, it needs to have 200 30 minute historical bars when strategy is started. How should I set properly to make it work? Please help me understand it. Thank you!Originally posted by NinjaTrader_ChelseaB View PostHello HiddenPhilosopher,
This code will prevent the code from continuing if the primary series is not processing if there are multiple series added to a script, and will prevent the code from continuing if the first series (the primary series BarsInProgress 0) or the third series (BarsInProgress 2) do not have at least one bar to process in OnBarUpdate().
https://ninjatrader.com/support/help...inprogress.htm
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
52 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
48 views
0 likes
|
Last Post
|

Comment