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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    80 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    46 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    66 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X