Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Historical data vs Real Time data

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

    Historical data vs Real Time data

    Hi all,

    whati s the difference between historical data and live data?, when a strategy is running what we consider live data and historical data (the same to orders, trades collection of a strategy), i think i don't understand well this two concepts, i need some good explanation about this.

    Best,
    Vince.
    Last edited by vibarco; 04-16-2012, 05:31 AM.

    #2
    Vince, in what context do you ask, is there a specific issue you run into?

    In backtesting for example you will always use historical data only, if you're connecting to a real feed though and enable your strategy for live trading, then all bars up to the moment you enabled the strategy would be historical and then it would switch to processing the realtime bars. Easiest for you to check is adding prints to Historical to your OnBarUpdate() code to see the transition taking place -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand,

      Could you give and example of code to see this transition?.

      Best,
      Vince.

      Comment


        #4
        Vince, please just print the Timestamp (Time[x]) and CurrentBar info alongside with the Historical property from your OnBarUpdate(), you can see the bars progressing through the historical data portion of the bars and then finally printing Historical = false as you see realtime data. This would be shown in your output window then, where all Prints would go.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kempotrader, Today, 08:56 AM
        0 responses
        6 views
        0 likes
        Last Post kempotrader  
        Started by kempotrader, Today, 08:54 AM
        0 responses
        4 views
        0 likes
        Last Post kempotrader  
        Started by mmenigma, Today, 08:54 AM
        0 responses
        2 views
        0 likes
        Last Post mmenigma  
        Started by halgo_boulder, Today, 08:44 AM
        0 responses
        1 view
        0 likes
        Last Post halgo_boulder  
        Started by drewski1980, Today, 08:24 AM
        0 responses
        4 views
        0 likes
        Last Post drewski1980  
        Working...
        X