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!
See more
See less

Partner 728x90

Collapse

how to check a long history of tickdata is complete, when are gaps etc?

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

    how to check a long history of tickdata is complete, when are gaps etc?

    I bought and imported a large amount of tick data from disktrading.com and without going into whose fault it might be (disktrading, the historical data manager import or me myself) I have found gaps in the data, sometimes big gaps of days.

    I just found them by investigating strange trades in my back-testing results.

    I'm thinking of writing a strategy or an indicator that will identify the gaps for me so I can fill them in.

    Before I re-invent the wheel, I wanted to find out if someone's done this already.

    If not, then does anyone have a good idea of how to code the checking algorithm, and just as important, how to present the results?

    Thanks!

    #2
    Hello Adamus,

    You may get some ideas from this reference sample on working with Date / Time objects.

    Maybe create a TimeSpan object and compare that to a change in bars time stamp with Time


    PseudoCode Below:
    if (Time[0] - Time[1] > myTimeSpanValue)
    alertMe;

    You would have to do additional conversions to turn Time[0] into an integer.
    ToDay(Time[0]) will grab the Date.
    ToTime(Time[0]) will grab the Time.
    Last edited by NinjaTrader_RyanM1; 05-16-2010, 10:44 AM.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kujista, Today, 06:23 AM
    0 responses
    1 view
    0 likes
    Last Post kujista
    by kujista
     
    Started by traderqz, Yesterday, 04:32 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by f.saeidi, Today, 05:56 AM
    1 response
    4 views
    0 likes
    Last Post Jltarrau  
    Started by Jltarrau, Today, 05:57 AM
    0 responses
    4 views
    0 likes
    Last Post Jltarrau  
    Started by Stanfillirenfro, Yesterday, 09:19 AM
    7 responses
    52 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X