Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartBars & ChartControl "Primary Series"

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

    ChartBars & ChartControl "Primary Series"

    How do you define "Primary Series" in charts? Is that according to the "Data Series" Tab Applied Ranking? Due to the quote from the documentation it seems to be the case:

    The ChartBars class provides GUI access related methods and properties to the primary bars series configured on the Chart through the Data Series menu​
    But Then the following code doesn't always return the same result when I have multiple charts under the "hosting grid of the chart" :
    Code:
    Print(ChartBars.Properties.Instrument)
    Print(ChartControl.BarsArray[0].Properties.Instrument)​

    #2
    Hello Curerious,

    The primary series is always the series which you applied the script to. If you have other series loaded in the chart those are not used at all.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    69 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    41 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    166 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    101 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    164 views
    2 likes
    Last Post CaptainJack  
    Working...
    X