Codes for Heikin-Ashi (AND) SMA crossover(5,10)

Heikin-Ashi
BUY:
SET HAC = (OPEN+HIGH+LOW+CLOSE)/4 HAC > MAXOF(REF(HAC,1), REF(HAC,2), REF(HAC,3), REF(HAC,4)) AND SOPK(14, 7, 3, SIMPLE) > SOPD(14, 7, 3, SIMPLE)

SELL:
SET HAC = (OPEN+HIGH+LOW+CLOSE)/4 HAC < MINOF(REF(HAC,1), REF(HAC,2), REF(HAC,3), REF(HAC,4)) AND SOPK(14, 7, 3, SIMPLE) < SOPD(14, 7, 3, SIMPLE)

AND

SMA crossover(5,10)
BUY:CROSSOVER(SMA(CLOSE, 5), SMA(CLOSE, 10))
SELL:CROSSOVER(SMA(CLOSE, 10), SMA(CLOSE, 5))

can you please help me in coding both (Heiken-Ashi) AND (SMA crossover) in a single code
HA-SMA
BUY:
SELL:

if you want to combine any two conditions or codes you can just add it using “AND”

The AND operator is used to perform a logical conjunction on two expressions,
where the expressions are Null, or are of Boolean sub type and have a value of
True or False.

so you can just add your above SMA crossover code