Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars Array increases trade entries when back testing

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

    Bars Array increases trade entries when back testing

    Hi,

    I am wanting to use

    Add(PeriodType.Minute, 360);

    In a strategy however when I apply this line of code to my strategy and nothing else my trade entries are now for the period I want plus an extra order on the 360 min chart. How can I use a higher period indicator without adding to the chart.

    Thanks raef

    #2
    I have restarted NT7 and this problem went away.

    It would be good to get clarification if apply bars array would automatically allow for the same entry conditions occour to on a higher time all in one strategy.

    If that makes any sense.

    raef

    Comment


      #3
      raefon,

      I am happy to assist you.

      Please find a reference sample on entering on one time frame and exiting on another. You could use this as a starting point for what you ask.



      Please let me know if I may assist further.
      Adam P.NinjaTrader Customer Service

      Comment


        #4
        Thanks Adam.

        So if I use

        (BarsInProgress == 0)
        {That will confirm that now it is only reading the base time frame of the chart.}

        and

        (BarsInProgress == 1) {now use the first other time frame added}

        Would this be correct??
        Thanks Raef

        Comment


          #5
          That would be correct Raef.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          573 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          576 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X