What about historical orders for the strategy? Is there a way I can access those without needing to save all of the information in variables?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get execution times from Trade objects
Collapse
X
-
Get execution times from Trade objects
Is there a way to get the historical execution times of the strategy? I noticed that Trades do not contain any DateTime properties.
What about historical orders for the strategy? Is there a way I can access those without needing to save all of the information in variables?Tags: None
-
Hello texasnomad,
A TradeCollection will contain the entry and the exit Order objects. Each Order object has a Time property.
For example:
Code:for (int i = 0; i < SystemPerformance.AllTrades.Count(); i++) { Print(string.Format( "{0} | {1}", SystemPerformance.AllTrades[i].Exit.Time, SystemPerformance.AllTrades[i].ToString() )); }
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
55 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment