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 rhyminkevin, Today, 04:58 PM
|
3 responses
48 views
0 likes
|
Last Post
by Anfedport
Today, 05:24 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
50 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment