Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug: OnExecution at end of day

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

    Bug: OnExecution at end of day

    I have this line in my OnExecution()
    Code:
    Print("OnExecution: MarketPosition " + execution.MarketPosition + ", Name " + execution.Name + ", OrderName " + execution.Order.Name + ", Time " + execution.Time);
    While this works all the time it does not if there is a position near end of day which is then closed automatically.
    It says something like object instance null.
    But all of those should be accessable in OnExecution right?

    This is in market replay. Something more odd is that in fast replay 500x the bar at 22:55 has
    Code:
    ((Bars.FirstBarOfSession == true) && (Bars.SessionBreak == true) && (FirstTickOfBar == true))
    all true...
    Last edited by symphys; 05-26-2010, 10:53 AM.

    #2
    Thanks symphys, we'll check into what's expected here.

    Comment


      #3
      symphys, as I tried here in Market Replay I would see an 'ExitOnClose' named execution as the strategy finishes for the replay day according to the session template. Are you testing on latest Beta 16?

      Comment


        #4
        Yes, Exit on close is displayed in chart but the strategy crashes.

        This is for 6E 06-10 on 11.03.2010.

        Comment


          #5
          symphys, can you please forward your trace and log files via Help > Mail to Support and mention this thread in your note? We'll review then and get back to you.

          Thanks

          Comment


            #6
            Sent with files!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            160 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            308 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            245 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            349 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X