• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom importer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment


      #3
      Thanks Jesse, I installed the Metalib API, and was able to compile an example with it. I'll have a go at working with some examples from the PDF.
      Last edited by Matts; 01-04-2019, 10:09 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by uiwislth, Yesterday, 11:25 PM
      0 responses
      4 views
      0 likes
      Last Post uiwislth  
      Started by Steve L, Yesterday, 10:04 PM
      0 responses
      3 views
      0 likes
      Last Post Steve L
      by Steve L
       
      Started by marianfed, Yesterday, 09:47 PM
      0 responses
      4 views
      0 likes
      Last Post marianfed  
      Started by hir04068, Yesterday, 09:29 PM
      0 responses
      2 views
      0 likes
      Last Post hir04068  
      Started by iq200, 03-11-2018, 07:49 PM
      24 responses
      1,014 views
      0 likes
      Last Post mrlucky1x  
      Working...
      X