Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NbarsDown backTest vs Replay

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

    NbarsDown backTest vs Replay

    Hi I have the following Condition set

    If (NBarsDown (3, false, false, false) [-5] == 1

    During back test i get some sort of result, During Market Replay i get no results whats so ever, no trades no orders.

    Any Suggestions,
    John

    #2
    John, with the -5 for bars ago, are you trying to check 5 bars back? If so, try with just a 5 and not -5. The arguments you've provided are very flexible, so something should be happening. Are you sure there are actually 3 bars down that meet all the conditions on the Market Replay data you're replaying?
    AustinNinjaTrader Customer Service

    Comment


      #3
      -5 and 5 produce difference results in backtesting. And yes all the conditions are met in market replay mode.

      Comment


        #4
        John, I'm not sure I follow you here - using a negative index would not be supported, please only use positive #'s here.

        Comment


          #5
          stupid Question here, but why cant i use a negative number? Hopefully i can have a better understanding.

          Comment


            #6
            There's simply no concept present for using negative numbers as we don't support accessing any series values in the future, at index 0 you're on the right most / currentbar from here you could only compare to values in the past so positive index values.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            43 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            65 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X