Can someone convert DataExport (export your data in different time frame to csv) for NT8
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
NT7/NT8 Conversion
Collapse
X
-
Hello 123vit,
Thanks for your post and welcome to the NinjaTrader forums.
In looking briefly at the code, it appears to be an enhanced version of the reference indicator we provide as an example of how to write to a file. We have a reference in NT7 that we have converted to NT8 so you may want to have a look at it. Here is a link to the reference example of exporting data: http://ninjatrader.com/support/forum...ead.php?t=3475
Just to be clear, in the support department at NinjaTrader we do not create, debug, or modify code for our clients. This is so that we can maintain a high level of service for all of our clients.
We can certainly leave this thread open for any member that would like to convert for you.
Alternatively, we can provide you with references to 3rd party coders who can convert for you.Paul H.NinjaTrader Customer Service
Comment
-
Hello 123vit,
Thanks for your reply.
path = NinjaTrader.Core.Globals.UserDataDir + "MyTestFile.txt";
You will need to edit this line of code contained within the if(State == State.SetDefaults) check if you want to edit the name of the text file that is created.
You can change the MyTestFile.txt name to the name of your instrument, for example: "ES 09-17.Last.txt"
Please let me know if I may be of any further assistance.Alan S.NinjaTrader Customer Service
Comment
-
Hello 123vit,
Thanks for your reply.
This is an alternate method you may utilize.
Note that when you attempt to import historical data into the platform with a file name of ES 09-17.txt, you will need to ensure you are selecting the correct data type that the price data is based on in the import section.
However to avoid confusion, I would recommend including this in the name of the file. So I suggest to make the following modification if you hypothetically were saving data based on Last prices to a .txt file:
path = NinjaTrader.Core.Globals.UserDataDir + Instrument.FullName+"Last.txt";
Please let me know if I may be of any further assistance.Alan S.NinjaTrader Customer Service
Comment
-
-
Hello! Thank you all for your answers.
I tried the solutions you proposed, but it did not work out.
In the path = @ "d: \ Data" option, the file is not created anywhere.
"Two slashes" I tried in all cases, but the result is negative.
I'm at a loss, as I thought it should be easy.
Comment
-
Hello 123vit,
Thank you for your note.
Could you please confirm if you have used path = "D:\\Data" ? If you are trying to get the instrument.fullname, please try using State.DataLoaded rather than State.Configure. I would suggest trying to create this without the instrument to isolate where the problem is coming from.
I look forward to your reply.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by samish18, Today, 10:13 AM
|
0 responses
2 views
0 likes
|
Last Post
by samish18
Today, 10:13 AM
|
||
Started by kenz987, Yesterday, 10:20 AM
|
2 responses
12 views
0 likes
|
Last Post
by kenz987
Today, 10:13 AM
|
||
Started by nicthe, 08-23-2023, 07:53 AM
|
7 responses
196 views
0 likes
|
Last Post
by nicthe
Today, 09:26 AM
|
||
Started by nicthe, Today, 09:24 AM
|
0 responses
5 views
0 likes
|
Last Post
by nicthe
Today, 09:24 AM
|
||
Started by stalt, 12-28-2015, 01:36 PM
|
6 responses
1,536 views
0 likes
|
Last Post
by giulyko00
Today, 09:16 AM
|
Comment