Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
          Paul H.NinjaTrader Customer Service

          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.
              Paul H.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rtwave, 04-12-2024, 09:30 AM
              5 responses
              37 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by funk10101, Today, 12:02 AM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by GLFX005, Today, 03:23 AM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by nandhumca, Yesterday, 03:41 PM
              1 response
              13 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by The_Sec, Yesterday, 03:37 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Working...
              X