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 wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      26 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, 02-22-2024, 01:11 AM
      5 responses
      32 views
      0 likes
      Last Post wzgy0920  
      Started by wzgy0920, Yesterday, 09:53 PM
      2 responses
      49 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      192 views
      0 likes
      Last Post Hasadafa  
      Started by GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,234 views
      0 likes
      Last Post xiinteractive  
      Working...
      X