Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get color of background on a specific bar

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

    Get color of background on a specific bar

    Hello guys,

    I have an indicator that changes the background color on a specific bar in specific conditions. Which code could help me to get the color code of that specific background color when the indicator changes it? I'm testing with BackBrushes[0] but no luck so far.

    Thank you.

    #2
    Hello facuevasm,

    If the indicator is coloring bars and you are trying to access those colors from outside of the indicator there is not a way to do that. BarBrushes is only available to the script that sets it. The indicator would need to instead expose a signal in the form of a Plot.

    I the indicator in question something which you have the code for or is this a third party item? If you have the code for it you can add a plot and then expose a signal by plotting in the areas of the code which currently are setting the BackBrush.

    I look forward to being of further assistance.

    Comment


      #3
      Hello,

      thank you for your reply. my mistake, what I need is the background color. I'm using BackBrushes[0].

      I will be alert!

      Kind regards,

      Felipe

      Comment


        #4
        Hello facuevasm,

        The background color is not something which a script can read. If your indicator sets a background color another indicator cannot read that. The indicator which sets the background needs to expose the data as a plot for it to be used as a signal.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X