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 JesseOffshore, Today, 09:40 PM
            0 responses
            1 view
            0 likes
            Last Post JesseOffshore  
            Started by WHICKED, 04-26-2024, 12:56 PM
            4 responses
            139 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by ezrollin, 02-26-2022, 11:14 PM
            7 responses
            207 views
            0 likes
            Last Post kenz987
            by kenz987
             
            Started by rocketman7, Today, 08:34 PM
            0 responses
            8 views
            0 likes
            Last Post rocketman7  
            Started by rt61968, 02-17-2018, 05:24 PM
            3 responses
            2,736 views
            0 likes
            Last Post MasterEtrad3  
            Working...
            X