making Heiken ashi interactive and getting "booleans returns"

 
Hello everyone sorry if I speak bad English but I ask you to try to understand me and help me.
I have created an expert for MT4 in which I need to execute a command when a HEIKIN ASHI candle goes bullish and another command when it becomes bearish.
The Heiken Ashi indicator installed by default on the MT4 I understood that it draws the chart but does not return any value.
There is someone who has an MQL4 code that when the candle is bullish it returns for example TRUE or one and when it is bearish FALSE or zero.
A sincere thanks
 
  1. maurizio lucini: The Heiken Ashi indicator installed by default on the MT4 I understood that it draws the chart but does not return any value.

    Of course, it does. It can't draw without setting buffers.
              take candle color hekin ashi - MQL4 and MetaTrader 4 #8-10 or #1 (2018)


  2. You also understand that Heiken Ashi is the same as an EMA(3)
              Heiken Ashi candlestick - Expert Advisors and Automated Trading - MQL5 programming forum #10 (2022)