Algo on moving average and heikin ashi

Expert adviser in Pi can understand SMA, EMA moving averages, but HMA (Hull moving average) can not understand while writing trade script.

Can you please write a trade script in the below conditions?

Buy - HMA 10 period cross up EMA10 period, and Heikin Ashi 2 green candle with higher highs.

Sell - HMA 10 period cross down EMA10 period, and Heikin Ashi 2 red candle with lower lows.

Thanks