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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    14 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    135 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X