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 helpwanted, Today, 03:06 AM
      1 response
      5 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      7 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      5 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      242 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      384 views
      1 like
      Last Post Gavini
      by Gavini
       
      Working...
      X