I am trying code identify Strong White/Black candle. You can see my code identifying basic Dark Cloud Cover Pattern and indicating it on the chart. I want to filter it by strong white candle. But i can not able to identify Stronger candle.
Is any way to identify it by candle body?
Stronger than what? If you mean that the body is sufficient large then you can compare size of the body with multiple of ATR. Maybe you should take in account size of wicks too. Ratio upperWick/body (for a long candle) should be less than X...
BTW your second example isn't the Dark Cloud Cover Pattern.
double atr = iATR(...);
double atrMultiplied = atr * multiplier;
It is up to you what stronger means. Below is an example how it could look like.
bool isStrongEnough=body>atr*atrMultiplier && (body>0.0?(wick/body<ratioWickBody):false);