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

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 rdtdale, Yesterday, 01:02 PM
          2 responses
          16 views
          0 likes
          Last Post rdtdale
          by rdtdale
           
          Started by TradeSaber, Today, 07:18 AM
          0 responses
          7 views
          0 likes
          Last Post TradeSaber  
          Started by PaulMohn, Today, 05:00 AM
          0 responses
          10 views
          0 likes
          Last Post PaulMohn  
          Started by ZenCortexAuCost, Today, 04:24 AM
          0 responses
          6 views
          0 likes
          Last Post ZenCortexAuCost  
          Started by ZenCortexAuCost, Today, 04:22 AM
          0 responses
          3 views
          0 likes
          Last Post ZenCortexAuCost  
          Working...
          X