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

Good Til Canceled

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

    Good Til Canceled

    I've created a strategy that I would like to run over a number of days. I need orders to stay in force until they are canceled. While backtesting, although I set the TIF to GTC, the orders are still being canceled at the end of day. I would like to process my strategy using daily and/or weekly bars. Why is my TIF setting being ignored during the backtest? Is this a historical data usage problem?

    Thanks for your help.

    #2
    While backtesting there is an option called Exit on Close. Please turn that to false.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      thanks for the quick response and for pointing out something that i should have noticed - as a follow-up, is there a reason why choosing 1-day bars would display no information? I set Exit On Close to False, TIF to GTC, 1 Day Bars, perform the backtest and get no chart.

      Thanks again.

      Comment


        #4
        eugenedw,

        You actually need daily bars to make a daily chart. Please ensure your data provider offers daily information. http://www.ninjatrader-support.com/H...HistoricalData
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          thanks. i'll check (would it be just the same to use 1440 min. bars?)

          Comment


            #6
            eugenedw, yes 1440 min charts are a common workaround if your provider does not support historical daily data.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              thanks so much for the speedy responses. you guys are great!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ETFVoyageur, Today, 02:15 AM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by lorem, 04-25-2024, 09:18 AM
              21 responses
              90 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by mlprice12, 12-21-2021, 04:55 PM
              5 responses
              309 views
              0 likes
              Last Post paypachaysa  
              Started by Human#102, 05-08-2024, 09:54 AM
              4 responses
              18 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by ETFVoyageur, Today, 06:11 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X