Disliked
{quote} master erebus you dont get me...i think we are having a communication issue....look at the above diagram below, i want the candle to indicte only when the current candle body engulf both the body and upper or lower shadow of the previous candle {image} {image} {image} only those candlestick with blue box should be indicated with a colour change as you can see from the pictures above current candles engulf the previous candle body and wick completely...this is only what i want!! {image}
Actually, what I see in your pictures is not anything which can be coded, because there is no consistency in the bars which you point to.
If you want something to be coded like this, you need to write down the conditions.
You don't need to know how to code.
You know that each candle has O, H, L, C and you must describe the condition which you want to be coded.
Example:
Color candles Red when: H of Bar1 > H of Bar2 and L of Bar1 < L of Bar2 and Bar1 is Bearish
Color candles Green when: H of Bar1 > H of Bar2 and L of Bar1 < L of Bar2 and Bar1 is Bullish
And the candles which you pointed to in your images don't all match the above conditions, so we don't have a clue what it is you actually want???
THE CANDLESTICK TRADING BIBLE https://dl.kohanfx.com/pdf/the-candl...hanFx.com).pdf BTW. No I don't see in your pictures what you claim! Only a few do that, most of them don't do that! It's more likely that you are talking about some two-bar-reversal-pattern???
Here - describe the patterns like I showed you above.
But, that's not an Engulfing pattern by any definition! To me it looks like:
Color candles Red when: Bar2 is Bullish and Bar1 is Bearish and C of Bar1 < L of Bar2
Color candles Green when: Bar2 is Bearish and Bar1 is Bullish and C of Bar1 > H of Bar2
.ex4/.ex5 files cannot be fixed or converted, or modified