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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
475 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
315 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
253 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
340 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
305 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment