Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Exporting Trade by Trade data by batch
Collapse
X
-
Exporting Trade by Trade data by batch
Hi Guys, On a single instrument back-test it is simple enough to export data, but on a batch test on an Instrument List it is rather tedious to go through one by one. Is there a facility to save all the individual trade by trade files at once? Alternatively, could someone please drop me some sample code to include in my Strategy Scripts to export trade by trade or other performance data to files. Thanks and regards, -
Hello Aspirant,
Thanks for writing in and I am replying for Adam.
You can use the OnTermination event to close the files. Please refer here for more http://www.ninjatrader.com/support/h...ermination.htm
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
Comment
-
Hi Joydeep,
"OnTermination" seems to work when the simulation is closed, but if I am running a batch of simulations across multiple instrument the process is not terminating when it switches from from symbol to another, but I need to be able to close the file pertaining to the previous market, then open and commence writing to a new file.
What command can I do to achieve this?
Comment
-
Hi Adam,
My preference would be to fire off the whole simulation run remotely, but for now I'm open to any solution that allows me to close a file, so let's keep it simple.
Let's say I'm in Strategy Analyzer doing a simulation run on an "instrument list."
You mention the "BarsInProgress" but this cycles every session! I need a way to identify that the simulation has reached the end of the file and wants to move to the next so that I can close the current file.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rtwave, 04-12-2024, 09:30 AM
|
4 responses
29 views
0 likes
|
Last Post
by rtwave
Today, 12:50 AM
|
||
Started by yertle, Yesterday, 08:38 AM
|
7 responses
28 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
||
Started by bmartz, 03-12-2024, 06:12 AM
|
2 responses
21 views
0 likes
|
Last Post
by bmartz
Today, 12:11 AM
|
||
Started by funk10101, Today, 12:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by funk10101
Today, 12:02 AM
|
||
Started by gravdigaz6, Yesterday, 11:40 PM
|
1 response
9 views
0 likes
|
Last Post Yesterday, 11:49 PM |
Comment