Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit on close behavior different in backtest & live trading?

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

    Exit on close behavior different in backtest & live trading?

    Hi,

    Today I experienced what I believe may be a bug or at least a very important discrepancy between live trading & backtest.

    Upon initialization, my new strategy adds a secondary instrument that acts as a proxy for the main instrument. This secondary instrument is traded on another venue and therefore has a different session template.

    The strategy is configured to close any open position at the end of the session. The session of the main instrument closes after the one of the secondary instrument.

    In the strategy analyzer, the exit on close handler is only called at the close of the main instrument's session. I can see trades closed at the end of the main session.

    However, it seems that during live trading the exit on close handler is also called at the close of the secondary instrument.

    This lack of consistency is obviously a pretty big problem.

    * Could you confirm this behavior?
    * Is this a bug? If not, where is it documented?
    * How can I fix that so that the exit on close handler is only called at the close of the main instrument's session?

    Thanks!

    #2
    Hello Lector,

    Thank you for your post.

    I will investigate this matter and follow up with you shortly.

    Comment


      #3
      Hello Lector,

      Thank you for your patience.

      This would not be the expected behavior. May I test your strategy on my end?

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      68 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      41 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      24 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      27 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      54 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X