protected override void OnBarUpdate() if (SystemPerformance.AllTrades.Count != 0) . . .
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Executions Today
Collapse
X
-
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?
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?Code:
Tags: None
-
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.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
87 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
151 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
62 views
0 likes
|
Last Post
|

Comment