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

'from' date needs to be smaller than 'to' date

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

    'from' date needs to be smaller than 'to' date

    Hi,

    I am trying to run a strategy, but getting the above error message. This has, in the past, always gone away if I set the date to yesterday or before, but this time setting the date to previous day has no effect, and I still get the message. Where is the 'to' date anyway?

    Thanks

    #2
    Where are you running the strategy from?
    RayNinjaTrader Customer Service

    Comment


      #3
      The Strategies tab. I found restarting Ninja cleared the message, but I would still like to know where the 'to' date is! BTW, thanks to all Ninja staff for providing such timely responses on the forum.

      Comment


        #4
        Do you have in your strategy code "hard coded" To and From data, likely in Initialize() ?
        RayNinjaTrader Customer Service

        Comment


          #5
          No, there's nothing at all related to dates coded. It's an extremely simple, bare-bones strategy, that doesn't even take any parameters. I just wasn't sure what it meant by 'To' date.

          It kind of follows on from my question last week about running a strategy 'from now', instead of having to have a 'from' date, as it seems to me that you'd mostly want to just run a strategy from 'now', until you hit the 'stop' button. I can live with it; I was just curious.

          Comment


            #6
            FYI: http://www.ninjatrader-support.com/v...ead.php?t=4388

            I'm assuming you are on 6.0. When that used to happen to me, I would re-run a backtest and make sure the To date was today. Somehow the date from backtesting would carry over if I remember correctly.

            Comment


              #7
              I suggest retrying on NT6.5. Please let us know if problem persists. Thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mizzouman1, Today, 07:35 AM
              0 responses
              1 view
              0 likes
              Last Post Mizzouman1  
              Started by i019945nj, 12-14-2023, 06:41 AM
              6 responses
              66 views
              0 likes
              Last Post i019945nj  
              Started by aa731, Today, 02:54 AM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by BarzTrading, Today, 07:25 AM
              0 responses
              3 views
              0 likes
              Last Post BarzTrading  
              Started by ruudawakening, Today, 12:58 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X