Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-Timeframe: Drawing on minute using daily data

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

    Multi-Timeframe: Drawing on minute using daily data

    Hi community,

    i like to draw some lines on a 3min chart using calculations made from daily bars.

    My problem:
    As soon as i am using the 30 daily bars to calculate the values for the lines, the 3 minute chart seems to need the full 30 days on the minute chart loaded (which is not what i want, since it makes working with IB real pain). How can i ensure that the values get calculated from the existing historical data, without making a new request to the minute data?

    thanks for reading.

    PuraVida

    #2
    Hello puravida,

    Thanks for your post.

    This would not be possible. DataSeries used for indicators are synced. This means that if you add a secondary series to a script the number of days to load will be the same for both. It is not possible to load 5 days of one series and 30 days of another in the same indicator.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by puravida View Post
      Hi community,

      i like to draw some lines on a 3min chart using calculations made from daily bars.

      My problem:
      As soon as i am using the 30 daily bars to calculate the values for the lines, the 3 minute chart seems to need the full 30 days on the minute chart loaded (which is not what i want, since it makes working with IB real pain). How can i ensure that the values get calculated from the existing historical data, without making a new request to the minute data?

      thanks for reading.

      PuraVida

      You would need to code a multi-timeframe indicator. AFAIK, you cannot achieve this by adding daily data via the Add() method. However, there is workaround, if you load daily bars asynchronously by using the technique that has been chosen for the NinjaTrader pivots indicator. It would even be possible to "preload" daily bars. That technique would allow you to display indicator values calculated from daily bars (let us say the last year) on a 3-min chart with a lookback period of 3 days. Not so easy to implement.

      Comment


        #4
        Is there some kind of template for this or could you show how it could be done in an example?

        Many thanks in advantage.

        Comment


          #5
          Originally posted by puravida View Post
          Is there some kind of template for this or could you show how it could be done in an example?

          Many thanks in advantage.
          I have seen an example, but cannot currenty retrieve it.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X