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