Need help on creating an algo for amibroker

Hello team

Can someone help me create an algo on amibroker

Candtion is based on Heikin Ashi candle

I need a Singal when colour of the candle changes from red to green on Heikin Ashi 30 mins timeframe ?

Then I need to explore it for generated signals

Please help me code this @AlgoGeek