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

time in log is way off from time of my machine

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

    time in log is way off from time of my machine

    my strategy has a bool for timefortrade and its executing out of the hours of the bool and i'm not sure why. but, here is a snapshot of the log. and, it has a timestamp that is way earlier than me. is there a place where you set time for the instrument other than in the data series? i changed the 'trading hours' for the instrument to be pacific time. but, i'm thinking there is somewhere else.
    Attached Files

    #2
    Hello SteveReiza,

    The warning that you pictured is letting you know that during the historical backtest the order that was submitted had prices that were outside the range of the bar so it was ignored. The timestamp is the historical timestamp of the bar.

    JesseNinjaTrader Customer Service

    Comment


      #3
      thanks for the reply. for some reason the strategy gets un-enabled. and, i check the log and that's there. is there any way to get that to stop affecting my strategy being enabled.

      Comment


        #4
        Hello SteveReiza,

        That warning is not something which can disable a strategy, that is just letting you know 1 order was ignored. The strategy is likely being disabled if you have an error in your code, you would need to review the log and find where the strategy was disabled to see if there is an error or rejection listed.
        JesseNinjaTrader Customer Service

        Comment


          #5
          thanks for the reply. alright i'll check into doing prints and trace.

          question. why is something that happened hours before affecting an order in the present? an order being ignored isn't good.

          Comment


            #6
            Hello SteveReiza,

            That depends on what you coded. If your logic was expecting an order but it was ignored for the given reason there could be no further trades. This comes down to how your strategy works and if it can accommodate that. Using prints is the best way to identify what happened in your specific script so you can see how it logically worked after the order was ignored.

            JesseNinjaTrader Customer Service

            Comment


              #7
              thanks for the reply. alright, i'll check out using prints.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by DJ888, Today, 10:57 PM
              0 responses
              6 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              158 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Today, 09:29 PM
              0 responses
              7 views
              0 likes
              Last Post Belfortbucks  
              Started by zstheorist, Today, 07:52 PM
              0 responses
              7 views
              0 likes
              Last Post zstheorist  
              Started by pmachiraju, 11-01-2023, 04:46 AM
              8 responses
              151 views
              0 likes
              Last Post rehmans
              by rehmans
               
              Working...
              X