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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        650 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        577 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X