Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to load 10 days and intraday data and 3 month of daily?

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

    How to load 10 days and intraday data and 3 month of daily?

    I wish I could have 3 month of tick data, but I don't. But I certainly have 3 month of daily.

    I was wondering is there any way of having access to both from the same strategy?

    #2
    TeaLover007, I'm not sure I understand your question. You can add a 1 tick dataseries to your strategy like this:
    Code:
    Initialize()
    {
        // Add(PeriodType periodType, int period)
        Add(PeriodType.Tick, 1);
    }
    AustinNinjaTrader Customer Service

    Comment


      #3
      Let me try explain it again.

      I need to load 3 month of daily data to a strategy. Following your example, I'd do it like that:

      Add(PeriodType.Day, 1);

      Then on a next line I'd put:

      Add(PeriodType.Tick, 1);


      So far so good. However. Instead of 3 month daily, my strategy will call OnUpdateBar() ONLY for the period of time I have corresponding data for intraday/ticks. So instead of 3 month I will have 10 days.

      I am missing 2 month and 20 days of data. It is OK for me to don't have corresponding ticks for this period for this particular strategy. But it's essential to have these missing 2 month and 20 days (AND ticks as well. As much as the data provider will give me or how much I have stored).


      How to have access to these 2 month and 20 days?
      Last edited by tealover007; 02-06-2010, 10:49 PM.

      Comment


        #4
        tealover007, you just need to apply the strategy that has that much data loaded on it for the strategy to read all those ticks. You can create a chart that spans those three months and then add the strategy to that chart, and it will have access to all three months of data.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        52 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X