Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
JesseNinjaTrader Customer Service
-
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.JesseNinjaTrader Customer Service
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 toJesseNinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
60 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
4 responses
3,287 views
1 like
|
Last Post
by jgualdronc
Today, 10:02 AM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
22 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
Comment