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 kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      125 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      105 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      85 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      105 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      84 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X