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 Max238, Today, 01:28 AM
            3 responses
            30 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by timko, Today, 06:45 AM
            2 responses
            12 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by habeebft, Today, 07:27 AM
            0 responses
            4 views
            0 likes
            Last Post habeebft  
            Started by Tim-c, Today, 03:54 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by rocketman7, Today, 01:00 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X