Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyser vs. Live

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

    #16
    Hello,

    Yes, it would still be true until the OnBarUpdate() method was called on the next bar.

    For example if you were running the strategy on a 5 minute data series, you can expect this to value to remain true for up to 5 minutes until the next bar is called.

    To prevent situations like this, you can use OnExecution to set this flag to false as soon as it is executed.
    MatthewNinjaTrader Product Management

    Comment


      #17
      Using the print statements helped to find the errors and the OnOrderUpdate() method seems to work fine for changeing the flags values before the script continues to my exit conditions. Normally it should execute on the real account the same way, but I'll monitor with the print statements.

      I'm really thankfull that you helped me with this. The ninja boards are excellent!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      81 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      46 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      29 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      66 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X