Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Logic Bug In BarsRequired vs. MinBarsRequired

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Logic Bug In BarsRequired vs. MinBarsRequired

    Anyone would think that MinBarsRequired...means the Minimum Bars Required.
    Nothing should basically be done until the MinBarsRequired is met!
    There is NO parameter in the Optimize Param box to set the BarsRequired instead of/ or in addition to the MinBars Required.

    If we set a value that says Minimum Bars Required in the param box, it should automatically set any other hidden variable to that value. Either that, or in the NT HIDDEN code (NOT IN EVERY USER'S CODE) should change everybody's generated code to reflect the Min Bars Required.

    We should not have to add special code that seems like it should already exist in the skeleton logic of NT.

    If there is some special reason for 2 ways to seemingly set the same value, please let us know.

    #2
    MinBarsRequired is not a supported property. The only supported property is BarsRequired. The UI parameter item shown as "Min. bars required" is the exposed UI parameter for BarsRequired. You should never be using MinBarsRequired.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Reply

      Duh! No kidding. Please read the screen dump and supporting text.
      Everything is Exactly what you just said.

      I set the MinBarsRequired in the GUI, and the BarsRequired in the code.
      That's why I said that if the MinBarsRequired does nothing, and you need
      the BarsRequired...it should be in the GUI.

      It still did not work! The chart and indicator values are still way off.

      Comment


        #4
        As discussed in my previous post "Min. bars required" is the same thing as BarsRequired in code. It is the exposed UI parameter for BarsRequired.

        Whatever you set in the UI takes precedence. Please review all of my posts in your other threads. This is working as expected and there is no bug.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Anybody every duplicate/acknowledge as a bug?

          Did anyone ever duplicate the reported/documented problem and acknowledge it as a problem?

          Comment


            #6
            Hi ChuckAllen,

            This is not a bug and is working as expected.
            RayNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            599 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            344 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            558 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            557 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X