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 Brevo, Today, 01:45 AM
    0 responses
    6 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X