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

Historical Time and Sales

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

    Historical Time and Sales

    I have an indicator that uses the OnMarketData event to get Time and Sales information. This part seems to be working fine. I want to back-fill the indicator. What is the best way to do that? Thanks

    #2
    tupchurch, there would unfortunately not be a supported approach to achieve that, since the OnMarketData() is not called on historical data. Our next major platform update will allow the historical triggering of OnMarketData through a process we call TickReplay. This would provide the most consistent outcome.

    There's the GOM Recorder indicator framework around that records the backfill data needed to binary files, this would be an approach you could check into as well in the meantime.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      This data must be in the historical data, yes? What if I made a one tick chart with bid, ask and last prices and compared the last price to the bid and ask prices and couple that with volume. Would this be that same data? I could share the data with other charts via SQL Server or maybe even the registry. I don't know if that would be accurate. Please let me know if I am misunderstanding the data. Thanks

      Comment


        #4
        Hi tupchurch,

        You may try adding a tick series of bid and ask and getting those historically.

        For example:

        Add(Instrument.Fullname, PeriodType.Tick, 1, MarketDataType.Ask)
        Add(string instrumentName, PeriodType periodType, int period, MarketDataType marketDataType)

        http://www.ninjatrader.com/support/h...s/nt7/add3.htm
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        19 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X