Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarBrushes[0] - color of the candles overrided by another indicator.

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

    BarBrushes[0] - color of the candles overrided by another indicator.

    BarBrushes[0] - get the color of the candles that were overrided by another indicator.

    hello, there was a question about the priority color of the bar, I use several indicators that paint the bars with BarBrushes [0], I need to make sure that in the priority indicator Re-paint the bars that have already been painted by another indicator are repainted with the priority indicator.

    eg indicator 1 painted over the bar. indicator 2 repainted this bar (already repainted by the first indicator) in a different color. how to do it?
    Last edited by memonolog; 04-03-2021, 01:20 AM.

    #2
    Hello memonlog,
    I guess instead of painting bars in each indicator you should have a separate indicator which will only paint bars, call all your 3 indicators in this new one & paint bars as per your requirement / conditions from any / all 3 indicators you called so you have a better control on paint bars. I believe Indicators can't interact with each other (exception - AddOn) so ind1 would not recognize if bars are painted by ind2 or other & final result should be the last ordered indicator on chart which will override others.
    Hope it helps!

    Comment


      #3
      Originally posted by s.kinra View Post
      Hello memonlog,
      I guess instead of painting bars in each indicator you should have a separate indicator which will only paint bars, call all your 3 indicators in this new one & paint bars as per your requirement / conditions from any / all 3 indicators you called so you have a better control on paint bars. I believe Indicators can't interact with each other (exception - AddOn) so ind1 would not recognize if bars are painted by ind2 or other & final result should be the last ordered indicator on chart which will override others.
      Hope it helps!
      thanks for the option and suggestion, but it doesn't suit me. I am waiting for a response from support, if there is no simple solution, then perhaps in the priority indicator i can paint the bars with a different method?, for example OnRender or some other option? wondering how to paint a bar in OnRender by the way?

      Comment


        #4
        Hello memonolog,

        The priority of BarBrush or BarBrushes is in the order the indicator is added to the Configured indicators on the chart.

        The Z-Order of indicators also applies of BarBrush, and is also affected by SetZOrder(). If you have a specific indicator that you would like to have final control of the color, set this indicator to the highest zorder.


        It is also possible to overlay your own rendered bars. Below are links to scripts in the User App Share that do this.
        NYSE Advancing Issues/Declining Issues Uses historical tick data to calculate the ^ADV index minus the ^DECL index to give a simulation of the ^ADD index. Requires a data feed that supports indexes and provides data for the ^ADV (NYSE Advancing Issues) and ^DECL (NYSE Declining Issues). Update June 16th, 2020 – Corrected stroke attributes to […]

        NinjaTrader 8 natively provides Heiken Ashi as a bar type for most common bar types (minute, tick, volume, second, day, week, month, year). This Heiken Ashi indicator is provided for the Range, Renko and any custom bar types that may be added. The indicator performs in the same manner as the NinjaTrader 7 version. 4-27-18 […]

        This is a conversion of the Spread Indicator with Candlesticks. Please contact the original author for any questions or comments.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X