Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PlotBrushes

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

    #16
    I swapped out the OnBarUpdate code that plots the PlotBrushes from
    PlotBrushes[i][0] = (i < numberOfEMAPerRibbon) ? (IsRising(Values[i]) ? EMA1RibbonUpColor : EMA1RibbonDownColor) : (IsRising(Values[i]) ? EMA2RibbonUpColor : EMA2RibbonDownColor);
    to
    Plots[i].Brush = (i < numberOfEMAPerRibbon) ? EMA1RibbonUpColor : EMA2RibbonUpColor;

    The first code plotted and gave me the ability to have different colors if it was rising or falling.
    The second code actually succeeded in allowing me to use Plots[0].Brush = Brushes.Transparent; in the same way I could with my other indicator.

    So until I figure out how to get that to work with PlotBrushes, I have to sacrificing being able to hide the EMA lines or being able to visually see it changing colors.

    Comment


      #17
      Hello rockmanx00,

      IsVisible is a property of your overall indicator, if you want to hide its plots you can toggle that property to hide them with no looping or changes

      Comment


        #18
        I see. So in my case, if my indicator makes two ribbons and I only want to hide one, then the way I'm doing it is the way to go. I'll keep that in mind in the event I have something less complex. Thank you for your patience and input. I appreciate it.

        Comment

        Latest Posts

        Collapse

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