MACD, Heikin Ashi Candlesticks and 21 & 7 days EMA Strategy

Hello,

Please help me with the code of MACD, Heikin Ashi and 21 & 7days EMA crossover strategy for backtesting in Zerodha Pi. Also is it possible to do Algo trading on Pi based on Artificial Intelligence or Expert Advisor? Kindly assist.