Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator period

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

    Indicator period

    Hello. I set 100 periods in indicator parameter. Why it show me the value of it from the first bars? How can I set it to show vakue only when n periods will be reached?

    #2
    Hello alexstox,
    Thanks for writing in and I am happy to assist you.

    You can use the below code in the Initialize section of the indicator
    Code:
    BarsRequuired = 100;
    or you can use the below code just below the OnBarUpdate section of the code
    Code:
    if (CurrentBar < 100) return;
    This will make sure you have the plots only after the 100th bar.

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      So, I can't do this without coding just in ParameterWindow of indicator?
      By default indicator calculate average value of periods before MyPeriods?

      Comment


        #4
        Hello alexstox,
        Unfortunately you cannot do it via the indicator parameters dialog. You have to custom code/modify the indicator. I will however forward your feature request to development for future consideration.

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Hello alexstox,
          Development has assigned tracker id #1715 for your feature request. However please note, in such case NinjaTrader will not calculate an average initializing in the indicator values.

          Please let me know if I can assist you any further.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          164 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          319 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          246 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          350 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          179 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X