Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
RealTimeTrades - Conditions that generate data
Collapse
X
-
RealTimeTrades - Conditions that generate data
What conditions will generate RealTimeTrades in SystemPerformance.RealTimeTrades? Assuming state.RealTime of course. Is it required to be on a live trading account, or can it be on a simulation account? What is the best way to access system performance to pull trades out of it?
Tags: None
-
Hello parkinsonbr,
The realtimes trades collection holds all trades the strategy placed during State.Realtime. A trade is a entry + exit. That is for the selected account and can be a sim account. You can see an example of using the realtime trades collection here: https://ninjatrader.com/support/help...ancevalues.htm
-
Thanks for confirming Jesse. Would these also generate during market replay, or when we use a simulated data feed as connection types?
Comment
-
-
If a trade is in state.historical and then transistions to state.realtime, does it get added to the realtimetrades dictionary upon completion of the trade?
Comment
-
Hello parkinsonbr,
Yes if the order fills in realtime it would be considered a realtime order. If you mean by trade that this hypothetical order is an Exit then there is also a note about this here:
https://ninjatrader.com/support/help...sub=realtimetr ades
The first trade of the "RealTimeTrades" collection will contain a synthetic entry execution if the strategy was NOT flat at the time you start the strategy.
Comment
-
Perfect thanks for confirming. Final question, is there guidance on how to create a trades object/dictionary for an addon when the addon is managing trades?
Comment
-
Hello parkinsonbr,
The trade performance information is only for strategies. You can see the following link for an unsupported workaround for addons.
I would like to augment the functionality of the chart trader buttons to include some database logging and a check of my prior trades before accepting the click event e.g. checking my recent trade history before actually submitting the order via the "Buy Market" or "Sell Market" buttons. Is there a way to
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
139 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|
Comment