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 pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          148 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          5 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          5 views
          0 likes
          Last Post tkaboris  
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,282 views
          0 likes
          Last Post Leafcutter  
          Working...
          X