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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          67 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          36 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          60 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X