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
Export Data Grid Programatically?
Collapse
X
-
Originally posted by mktrend View PostHow can one programatically export the Filled Order prices and if not possible then could the same be achieved by exporting a Grid to a say text file?RayNinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Ray View PostAll positions for an account regardless of where the orders were submitted will registered in a Position Update File.
Comment
-
Hello,
Well that's good news at least, presuming the registration is immediate? Thenwe could have other programs extract the data from the txt files since it appears there are no other ways or means to programatically access your fills and correctly calculate the PL since NT sometimes goes way off in that dept by the order of Millions!
>> If they are updated it will be immediate. Please provide steps so we can reproduce the PL calcuation issue you speack of.
In either case I meant programatically? Can it?
>> You can access fill prices. This link shows one way to access the fill price (also click on the IExecution link):
DenNinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Ben View PostHello,
Well that's good news at least, presuming the registration is immediate? Thenwe could have other programs extract the data from the txt files since it appears there are no other ways or means to programatically access your fills and correctly calculate the PL since NT sometimes goes way off in that dept by the order of Millions!
>> If they are updated it will be immediate. Please provide steps so we can reproduce the PL calcuation issue you speack of.
In either case I meant programatically? Can it?
>> You can access fill prices. This link shows one way to access the fill price (also click on the IExecution link):
http://www.ninjatrader-support.com/H...radeClass.html
My problem is that during real time none simulated trading when I scalp heavily the RT PnL shown by the Dome gets confused and shows me as being a couple of thousand contracts short for example!!!!! Very scary!
So I am looking for a way of not relying on the Dome to obtain my true live PnL.
Now, if these do not show the Dome trades then what is my alternative?
The fact that a txt file entry is generated every time a trade is filled, it confirms an event is raised and so how can we subscribe to that event???
Definition
Performance is the parent object that holds all trades and trade performance data generated by a strategy.Last edited by mktrend; 01-05-2009, 02:25 AM.
Comment
-
mktrend,
You cannot programmatically access information on manually placed trades. At least not from the NinjaScript traditional methods. You could try reading from a file? http://www.ninjatrader-support2.com/...ead.php?t=3476Josh P.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Josh View Postmktrend,
You cannot programmatically access information on manually placed trades. At least not from the NinjaScript traditional methods. You could try reading from a file? http://www.ninjatrader-support2.com/...ead.php?t=3476
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by naanku, Today, 07:25 PM
|
0 responses
3 views
0 likes
|
Last Post
by naanku
Today, 07:25 PM
|
||
Started by milfocs, Today, 07:23 PM
|
0 responses
1 view
0 likes
|
Last Post
by milfocs
Today, 07:23 PM
|
||
Started by PaulMohn, Today, 06:59 PM
|
0 responses
6 views
0 likes
|
Last Post
by PaulMohn
Today, 06:59 PM
|
||
Started by bortz, 11-06-2023, 08:04 AM
|
48 responses
1,750 views
0 likes
|
Last Post
by carnitron
Today, 06:57 PM
|
||
Started by Jonker, 04-27-2024, 01:19 PM
|
3 responses
23 views
0 likes
|
Last Post Today, 05:45 PM |
Comment