I've studied the docs but the nearest I can find to what I'm looking for is https://ninjatrader.com/support/help...ric_values.htm
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
How to fetch all trades from trade performance window
Collapse
X
-
How to fetch all trades from trade performance window
Hello,
I've studied the docs but the nearest I can find to what I'm looking for is https://ninjatrader.com/support/help...ric_values.htm
Last edited by TradingRocks; 02-17-2020, 05:14 PM.Tags: None
-
Hello TradingRocks, thanks for your post.
To do this in an indicator you will need to set up an account object similar to this example. After that is set up, you can get an Execution collection from the Account object. With the execution collection you can create "Trades", comprising of one entry execution and one exit execution.
Please let me know if you have any questions on this material.
Chris L.NinjaTrader Customer Service
-
Hi Chris,
Many thanks for your response.
I took a look at this and building the trades data myself from the executions on the account. However there is a problem with this method. If I look at my trades within my trade performance, I can see 13 trades (from the last 5 days). However, when I look at the executions (within the executions tab), it only shows two executions (from today, the rest are missing). Are executions only stored in NT for the current day? It seems that way.
Is there another way to access this the trade information?
Comment
-
Actually, I have just found this...
https://ninjatrader.com/support/foru...tions?t=109434
This appears to be the same issue for me.Last edited by TradingRocks; 02-17-2020, 05:14 PM.
Comment
-
Hi TradingRocks, thanks for your reply.
Now that I read that post I do recall this limitation. It looks like that feature request is still open with plenty of votes on it, I'll add a vote for you as well. Currently, it is still not supported, but it is possible to grab this data form the NinjaTrader core if you are willing to dig through IntelliSense to find it.Chris L.NinjaTrader Customer Service
Comment
-
Hi Chris,
That would do. I'm not familiar with Ninja Core but I should be able to figure it out.Last edited by TradingRocks; 02-17-2020, 05:14 PM.
Comment
-
Hi TradingRocks, thanks for your reply.
I'm honestly not sure where that resides in the core. I just gathered from a knowledge base page that it is possible from the core, but there are no details on how to do it. I will ask a colleague if they can provide a code sample to get you started, but if I can not find anything there I would not be able to dig any further since it is unsupported. That will be on Monday since my colleague is out of the office already.
Kind regards.Chris L.NinjaTrader Customer Service
Comment
-
Hi TradingRocks, thanks for your patience.
I asked our NinjaScript team but nobody has made an example of this. I will add a vote to the SFT-586 feature request vote for you. Please track new releases through the release notes upon future updates:
Best regards.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by lorem, Today, 09:18 AM
|
0 responses
2 views
0 likes
|
Last Post
by lorem
Today, 09:18 AM
|
||
Started by hazylizard, Today, 08:38 AM
|
4 responses
11 views
0 likes
|
Last Post
by hazylizard
Today, 09:16 AM
|
||
Started by geddyisodin, Today, 05:20 AM
|
2 responses
20 views
0 likes
|
Last Post
by geddyisodin
Today, 08:44 AM
|
||
Started by Max238, Today, 01:28 AM
|
5 responses
47 views
0 likes
|
Last Post
by Max238
Today, 08:30 AM
|
||
Started by giulyko00, Yesterday, 12:03 PM
|
3 responses
13 views
0 likes
|
Last Post Today, 08:26 AM |
Comment