How to get a Heiken Ashi bar that has no wick?

 

I'm trying to create an indicator as part of a complete trading system, that generates an alert when a Heiken Ashi candle is closed that has no wick.

So for a bearish HA candle, no wick at the top @ close -> Alert.

For a bullish HA candle, no wick at the bottom @ close -> Alert.

Any ideas how to calculate this in MQL4?

Thanks,
Mike

 
Read the HA candle and see if it has a wick. What's the problem?
          take candle color hekin ashi - MQL4 and MetaTrader 4 #8-9 or #1 2018.02.21
 
Of course I can read (see) if the HA candle has a wick, but the problem is that I need this information in a variable. 
I will check out your code. Thanks for that :)