If I use several different settings for the 3 parameters of the ParabolicSAR indicator, does this create more than a single series?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ParabolicSAR
Collapse
X
-
ParabolicSAR
Hello,
If I use several different settings for the 3 parameters of the ParabolicSAR indicator, does this create more than a single series?Tags: None
-
Hello ronaldgreene828,
Thank you for the post.
This question did not seem to relate to the thread you originally posted in so I created a new thread for your questions.
Are you asking if changing the parameters adds some kind of secondary data when using this indicator?
What series are you referring to here?
I look forward to being of further assistance.
-
I'm using the parabolicSARS indicator using 5 different settings combinations in one strategy for entries and exits. I noticed that the following was created at the start of OnBarUpdate:
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 5)
return;
I searched for information and after reading the other thread, I wondered if this is necessary or incorrect.
Comment
-
Hello ronaldgreene828,
Thank you for your post.
The Strategy Builder correctly adds the checks for BarsInProgress and CurrentBars to prevent the script from calling more than 5 bars ago until there are at least 5 bars of data processed, to prevent an index error.
In a multi-bars script, the OnBarUpdate() method is called for each Bars object of a script. For a single Bars script, this property will always return an index value of 0 representing the primary Bars and instrument the script is running on.
Here is a help guide link with more information about BarsInProgress - https://ninjatrader.com/support/help...inprogress.htm
CurrentBars contains the values representing the number of the current bars in a Bars object. The CurrentBars check is used to make sure that there are enough bars processed before executing the rest of your script. For example, if(CurrentBars[0] < 5) return; checks to see if there are at least 5 bars processed for the primary bars series. If there are less than 5 bars, the script will return (end).
Here is a help guide link with more information about CurrentBars - https://ninjatrader.com/support/help...urrentbars.htm
Please let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
666 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
377 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment