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 Barry Milan, Yesterday, 10:35 PM
    5 responses
    16 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    13 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    12 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by nandhumca, Today, 03:41 PM
    0 responses
    8 views
    0 likes
    Last Post nandhumca  
    Working...
    X