Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ParabolicSAR

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ParabolicSAR

    Hello,
    If I use several different settings for the 3 parameters of the ParabolicSAR indicator, does this create more than a single series?

    #2

    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.

    Comment


      #3
      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


        #4
        deleted by user
        Last edited by bltdavid; 09-09-2020, 12:25 PM. Reason: useless answer

        Comment


          #5
          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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          70 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          152 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          100 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          288 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X