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
Custom importer
Collapse
X
-
Custom importer
Hi, I'd like to create a custom add on importer using Metastock data. The idea is that will only import symbols in a selected instrument list and ignore all others. The importer should iterate through all subfolders of a selected folder to import the data. Also I'd like to switch off all warnings regarding illegal values for the import, but if the entire file failed to import then keep the warning enabled. I had a look at the custom importer files, but as I'm just using Metastock data which is an existing import type, I thought there might be an easier way than creating an importer from scratch. Also if the data already exists for a date in NT then the importer shouldn't overwrite it, but just import the latest available data that doesn't already exist. Any guidance would be greatly appreciated, thanks.Tags: None
-
Hello Matts,
Thank you for the question.
The easiest path for this concept would be to just duplicate one of the existing importers so you don't have to start from scratch but there is no source code for the metastock importer so this would be something you would have to create yourself from that point. Because you want to do something that is different than the default importers, really the best solution will be to create a custom import type for that purpose however metastock data is not a simple format which would be easy to read. The internal reader uses the metastock metalib api to do this and this also requires the use of 32 bit NinjaTrader.
The way you want to import the data would also be a problem as the import process has no means to check if existing data is already present. You would just overwrite the data where the overlap occurs. If the data is the same this shouldn't matter to overwrite it, but if the data is somehow changed or different you would need to rethink the import process logic.
I don't believe I can provide much guidance here as the target data format is not something which can be read in a simple way for me to make suggestions.
JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by proptradingshop, 03-21-2024, 09:50 AM
|
5 responses
26 views
0 likes
|
Last Post Today, 05:17 AM | ||
Started by MaupinFinche, Today, 05:08 AM
|
0 responses
4 views
0 likes
|
Last Post
by MaupinFinche
Today, 05:08 AM
|
||
Started by Enkidu, Yesterday, 06:40 AM
|
9 responses
35 views
0 likes
|
Last Post
by Enkidu
Yesterday, 01:11 PM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
12 responses
309 views
0 likes
|
Last Post
by z.franck
Today, 04:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
32 responses
268 views
0 likes
|
Last Post
by f.saeidi
Yesterday, 06:49 AM
|
Comment