Hello im new to the forum and im new to code on pretty much all languages
i have a strategy that im trying to code but i dont know how i can use haikin ashi candles as a trigger to start my strategy.

I need to make the program know if the last haikin ashi candle ends in up trend or down trend and in base to that make a trading desicion

thanks in advance.