Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Current bar printing in backtest

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

    Current bar printing in backtest

    When I backtest strategy that simply prints current bar to output, I get two sets of current bars one after another.
    For example 0.....10 and then again 0....10. That means that strategy go through the bars twice. What I'm doing wrong?
    I use only one primary instrument and daily timeframe.

    #2
    Hello blekdzhon, and thank you for your question. To help me further investigate this, would it be possible to let me know what version of NinjaTrader you are running? If you are not already using 8.0.4.0 , please upgrade to this version and test again.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Thanks a lot. I've upgraded and problem has solved.

      Comment


        #4
        I have one more question. I'm backtesting strategy now on the daily timeframe. It places limit orders on the first tick of bar. When I use standart order fill resolution the order fills on the next daily bar, thats unacceptable. When high order fill resolution, it shows that all orders canceled. Why its happening?

        Comment


          #5
          Hello blekdzhon,

          Thanks for your post.

          What is your setting for TimeInForce? Day, Gtc or Gtd

          Comment


            #6
            It's DAY. I tried to set to GTC, but the orders canceled too.

            Comment


              #7
              Hello blekdzhon,

              Thanks for your reply.

              Please post your strategy or an example strategy that shows this condition.

              If you would prefer please feel free to send your strategy or example source code to PlatformSupport[at]NinjaTrader[dot]com, mark the e-mail Atten:Paul and a link to reference this thread.

              Comment

              Latest Posts

              Collapse

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