Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

if (Historical) return; not working

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

    if (Historical) return; not working

    Hi,

    suddendly today if (Historical) return; stopped working.

    Yesterday it was fine and today it doesn't jump over historical bars. What is wrong. I even tested it out of my strategy and the result is the same.

    how to solve it. Restatting NT wa unuseful

    This is dangerous.

    #2
    Hello,

    Thank you for your post.

    Can you please clarify what you mean by historical return no working. Are you referring to the "Reload all historical data" being greyed out?

    Also please tell me what data provider you are connected to and what time interval chart you are attempting to view.
    Christopher J.NinjaTrader Customer Service

    Comment


      #3
      Usually, when writing:

      if (Historical)
      return;

      when executing the strategy in an historical bar the execution should stop for this bar. Today this is not the case. Everything inside this condition is obviated. Even, if in an historical bar an EnterLong opens a position, this is executed as if ti was ate real time.

      Comment


        #4
        Hello guillembm,

        We've not heard other reports that Historical is not working , and is working fine in all tests here. Attached is a simple script you could use to check. It should never print that the bar is Historical.

        If it's not working properly in your environment, can you please let us know:
        • NT version. Check with Help > About.
        • Code snippet or file we could use to see an issue.
        • Steps we can follow to see an issue.
        Attached Files
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          I found this post with the same issue: http://www.ninjatrader.com/support/f...ad.php?t=25370

          I'll make a check myself on the code

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          144 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          71 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          125 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          79 views
          0 likes
          Last Post PaulMohn  
          Working...
          X