Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Importing Bid and Ask at once

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

    Importing Bid and Ask at once

    Hi
    I have succeeded in coding my own script to import Forex Tick data from the Historical Data Tool, Section “Import”. I used the templates from Custom\ImportTypes for this.
    While the import itself is working now, I find it very annoying that
    1. The import is very slow. It takes ca. 1 hour to import the tick data of 1 year.
    2. Ask and Bid must be imported separately which adds another hour :-(
    And this despite of the fact, that I have the Bid and the Ask values at once in every single loop call.
    While I don’t think that this can be changed easily, I have noticed that in the section ”Download”, Bid and Ask can be checked at the same time. So I assume that it would be possible to load Bid and Ask in one loop call.
    So my question is, if there are also some templates available to code own scripts for the “Download” mechanism in NinjaTrader 8?

    Thx


    #2
    Hi Hanky27, thanks for your post.

    A year of tick data could take a while to import. Tick data for a single day can have tens of thousands of data points. If the other import types take this long, and your CPU is working near or at maximum then this is just a complexity problem.

    There is no way to customize a Download because that comes directly from the data provider's historical data server. We do have the BarsRequest method where historical data can be accessed from the data provider. One could make an addon to customize a historical data request, but this will not be stored into the Documents\NinjaTrader 8\db folder automatically, that would also need to be done manually through the addon. We have a full example of an addon here:



    Please let me know if you have any questions.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,603 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    12 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X