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.
        BertrandNinjaTrader Customer Service

        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.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            238 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            383 views
            1 like
            Last Post Gavini
            by Gavini
             
            Started by oviejo, Today, 12:28 AM
            0 responses
            1 view
            0 likes
            Last Post oviejo
            by oviejo
             
            Started by pechtri, 06-22-2023, 02:31 AM
            10 responses
            125 views
            0 likes
            Last Post Leeroy_Jenkins  
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Working...
            X