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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            68 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            38 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            62 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