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

Rebuilding Tick Based Indicators on Historical Data

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

    Rebuilding Tick Based Indicators on Historical Data

    There are many indicators which require true tick by tick data for exact calculations (e.g. Delta, Volume Profiles).

    Once you have some charts as range or tick charts open, I presume NT will save the tick information in its database.

    However it seems that when you reload the chart and reconstruct the indicators on historical data, the tick by tick construction of the indicator is not supported natively by NT.

    To workaround this problem gomifromparis has defined the GOMI classes to emulate how the tick by tick data is generated. However, it uses a disk file based system to store historical data. My experience is that it often runs into problems when it comes to data-integrity and persistence. The reliability is not to a level where you can use that as a reliable tick database.

    The NT Replay feature clearly stores all the market data including DOM info so the information is available in the replay database. The question is how to get into the indicators?
    1. Emulation Mode: Is there a way to force the charts or indicators to be loaded in a manner where the OnMarketData function calls are made during the entire historical period, assuming the tick data is available and stored in the NT DBs? This is essentially what GOMI indicators are doing. What this implies is that for historical data, NT runs in the Replay Type mode and then goes live with the real-time data.

    2. Tick DB Structure Does the NT DB store bid-ask data also (or can be configured to do so) apart from trade ticks? The data import wizard suggests that only time/sales info is stored and not bid-ask info. However, replay files seem to have all the info required.

    3. Access NT DB Data in NT Scripts: Is there a way to access NT DB data in the indicator/strategy like GOMI indicators read from a disk file to rebuild the indicators?
    Last edited by aviat72; 12-22-2009, 01:23 AM.

    #2
    1) This is beyond what we provide support for
    2) Yes
    3) This is beyond what we provide support for

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by adeelshahzad, Today, 03:54 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    7 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by merzo, 06-25-2023, 02:19 AM
    10 responses
    823 views
    1 like
    Last Post NinjaTrader_ChristopherJ  
    Started by frankthearm, Today, 09:08 AM
    5 responses
    21 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    43 views
    0 likes
    Last Post jeronymite  
    Working...
    X