Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitOnClose didnt' triggered onOrderUpdate() on backtest

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

    ExitOnClose didnt' triggered onOrderUpdate() on backtest

    When I manually add a day trade strategy with "ExitOnClose" set to true on a historical chart, it didn't run the triggered the OnOrderUpdate() method when exit on close. This caused wrong calculation of my position that affect the backtest result for next day (due to position still considered open by the strategy).

    Is this expected behavior? Will it happen on live? (It is not such a serious issue for me live because I expect to restart the strategy everyday). However, it is giving wrong performance result in back testing.

    #2
    hongchen2000, is ExitOnClose set to false anywhere in the strategy code?
    AustinNinjaTrader Customer Service

    Comment


      #3
      No. The only place set it is in the strategy UI.

      Comment


        #4
        Can you please post the strategy code here so we can take a look? What session template are you testing the strategy on?
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by funk10101, Today, 09:43 PM
        0 responses
        6 views
        0 likes
        Last Post funk10101  
        Started by pkefal, 04-11-2024, 07:39 AM
        11 responses
        37 views
        0 likes
        Last Post jeronymite  
        Started by bill2023, Yesterday, 08:51 AM
        8 responses
        44 views
        0 likes
        Last Post bill2023  
        Started by yertle, Today, 08:38 AM
        6 responses
        26 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        24 views
        0 likes
        Last Post algospoke  
        Working...
        X