Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Executions Today

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

    Executions Today

    I'm trying to check if there have been any trades on the current day in my strategy. Is this the best approach?
    Code:
    protected override void OnBarUpdate()
    
     if (SystemPerformance.AllTrades.Count  != 0)
    .
    .
    .
    I'm unclear on how long the SystemPerformance.AllTrades.Count holds the value. Seem like I need to have a date check, or is there a better approach?

    #2
    Hi Kentoes, thanks for your note.

    Once a trade is complete it will be added to the SystemPerformance.AllTrades trade collection. Every Trade object will have an "Exit" Execution object. The Execution object holds a timestamp that can be evaluated:


    Please let me know if I can assist any further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    87 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    151 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    53 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    62 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X