Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarColorSeries weirdness...

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

    BarColorSeries weirdness...

    I searched and could not find any reference to what I'm seeing.

    If I set a custom bar color via BarColorSeries[0] in OnBarUpdate, the bar displays in my custom color. No problem.

    Later... outside of OnBarUpdate() I attempt to set a bar color using ChartControl.BarColorSeries[nBarIdx].

    My logic is fine, the index is valid, however, the bar color does not update. It seems that if the bar color is at any time explicitly overriden in OnBarUpdate... It can't be changed to different color in the future... (at least not from outside OnBarUpdate()).

    I must be missing something, no? If I must, I can always just 'overpaint' the bar myself, but I'd prefer not to.

    Thx

    #2
    Is it possible that that StrategyBase.BarColorSeries is a separate object from ChartControl.BarColorSeries? And internal code uses the StrategyBase list if an element is not Color.Empty?

    Methinks this is likely. I'm going to try to explicitly use ChartControl.BarColorSeries in my OnBarUpdate to see if this is the case.


    And... yes. this is the case and the problem. Interesting that there are so many BarColorSeries laying around.

    Anyway... hope this helps others.

    Comment


      #3
      Your understanding is correct and thanks for posting your resolution here.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X