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 max1ci6, Today, 04:06 AM
      0 responses
      6 views
      0 likes
      Last Post max1ci6
      by max1ci6
       
      Started by StephDeNice, Today, 03:43 AM
      0 responses
      3 views
      0 likes
      Last Post StephDeNice  
      Started by knobi4711, Today, 03:34 AM
      0 responses
      2 views
      0 likes
      Last Post knobi4711  
      Started by CoffeeKiller, Today, 03:23 AM
      0 responses
      7 views
      0 likes
      Last Post CoffeeKiller  
      Started by ntbone, Today, 01:51 AM
      0 responses
      5 views
      0 likes
      Last Post ntbone
      by ntbone
       
      Working...
      X