Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting Bars From Diffrent Time Frames To Display On Chart

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

    Getting Bars From Diffrent Time Frames To Display On Chart

    Hello,

    This example showed me how to have my strategy access data from two different time series (5 minute bars and 15 minute bars in this case) at the same time.


    It worked well, however it did not automatically display the two different bars on the chart.

    I am wondering if anyone has a link to a code example that shows how to get both these 5 minute and 15 minute bars to graphically show up on my Chart automatically (in both the Strategy Analyzer and Realtime charts)?

    Thank you.
    Last edited by Matheyas5; 02-21-2016, 08:16 PM.

    #2
    Hello Matheyas5,

    Thank you for your post.

    There is no means to automatically display an added bar series on the chart. You could look into custom plotting from an indicator to do so though. An example of custom plotting is available under Tools > Edit NinjaScript > Indicator > CustomPlotSample.

    Please let me know if you have any questions.

    Comment


      #3
      Hello again Patrick.

      Do you have any tips/links on how I'd get these bar series to graphically display via adding code to the strategy itself? Rather then doing it by creating an indicator?

      Thanks again!

      Comment


        #4
        Hello Matheyas5,

        It's just not something that can be done from the strategy at all. There is no function or setting to allow for this. It would require custom plotting from within an indicator.
        Last edited by NinjaTrader_PatrickH; 04-01-2016, 02:38 PM.

        Comment


          #5
          Rather then writing code within the strategy to automatically display all BarsInProgress, is it possible to accomplish the same goal if I write separate code for each individual BarsInProgress?

          For example,

          The first part of the code would just get BarsInProgress == 1 to display graphically.
          The second part of the code would just get BarsInProgress == 2 to display graphically.
          and so on . . .

          Comment


            #6
            Matheyas5,

            BarsInProgress would not change this. The added bar series would not be visible on the chart.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            85 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            67 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X