Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Candle Pattern Indicator BarBrush(s)

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

    Candle Pattern Indicator BarBrush(s)

    Use of BarBrush(s) for some of the patterns are not used correctly.

    For example, the following is code for BullishEngulfing pattern:

    if (ChartBars != null)
    {
    BarBrushes[1] = downColor;
    BarBrush = upColor;
    CandleOutlineBrushes[0] = downColor;
    }

    where as for BearishEngulfing pattern the following is used:

    BarBrushes[1] = upColor;
    BarBrush = downColor;

    The BarBrush(s) for some of the patterns with incomplete code will not plot. Even when corrected, if two instances of the indicator are plotted for two different patterns (i.e. Bullish and Bearish Engulfings) the BarBrush for only one of the patterns will plotted.

    To confirm, plot two instances of the indicator for different patterns and see that only will produce bar brush.
    Last edited by aligator; 11-15-2015, 12:02 AM.

    #2
    Hello aligator,

    Thank you for writing in. To make sure I understand what you are saying, basically you have two indicators, each of which changes the BarBrush and the previous bar's BarBrush when specific conditions are met. When both indicator's conditions are true on the same bar, only one bar color is set?

    This would be expected behavior as you can only have one brush per bar. I would expect that the last added indicator would be the one who is setting the actual color.

    If I am misunderstanding what you are saying, could you please elaborate and/or provide a screenshot displaying the issue so I can better assist?

    Thank you in advance.
    Michael M.NinjaTrader Quality Assurance

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    51 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X