• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Vincere, Yesterday, 11:20 PM
      0 responses
      3 views
      0 likes
      Last Post Vincere
      by Vincere
       
      Started by lMagi, 05-18-2019, 09:34 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by uday12, Yesterday, 10:26 PM
      0 responses
      2 views
      0 likes
      Last Post uday12
      by uday12
       
      Started by uday12, Yesterday, 10:07 PM
      0 responses
      0 views
      0 likes
      Last Post uday12
      by uday12
       
      Started by Nabil, Yesterday, 07:46 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X