Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to display AddDataSeries in historical data and realtime data?

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

    How to display AddDataSeries in historical data and realtime data?

    I was able to display the secondary data series in historical data with the indicator below (2000 ticks and 1 minute) but not in realtime.
    My question is: is this even possible? Will there always be an index problem with the currentbars, series<T>, etc or is there a workaround?

    Thanks

    Click image for larger version

Name:	2023-06-15 213529.png
Views:	129
Size:	35.0 KB
ID:	1256344

    #2
    What, exactly, are you trying to do?

    Secondary data series are typically invisible to the chart
    and only used for programmatic purposes -- naturally, it
    is the primary data series that represents the visual bars.

    So, what is it you're trying to achieve?

    Comment


      #3
      Hey bltdavid,
      Currently, what I intend to do is visually check the calculations I'm doing with the secondary data series.
      But beyond that, knowing how to display secondary data series with bars is cool and may have more applications in the future.

      Comment


        #4
        Hello,

        is it possible to show the calculations somehow that have been done with the second data series e.g. in a second chart window or in the second panel?

        Kind regards
        Gerik

        Comment


          #5
          Hey Gerik,

          You can place the indicator of the first post in a second panel, yes.
          But, maybe it is impossible to display the secondary data series live.​
          Last edited by rafaelcoisa; 06-16-2023, 05:43 AM.

          Comment


            #6
            Hello rafaelcoisa,

            Secondary series are not displayed in a chart. If you wanted to display that data in some way you would have to plot it. Your script is applied to only the primary series so any plots would relate to the primary bars. if your secondary series is a different timeframe or instrument you may not have a full picture of the data on that series by replotting it.

            Generally you would want to use Print statements and the output window if you want to make confirmations about your logic. That would let you output all of the information for a secondary series or conditions you make.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            571 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            330 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
            549 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            549 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X