How to create Supertrend based Auto Buy/Sell algo?

I want to create Supertrend based Auto Buy/Sell algo using Heiken Ashi candle for NIFTY option intraday buying trading. Please help and guide me.

Hi Nishant, could you please elaborate a little more on the strategy?

Please share the Supertrend settings, entry conditions, and exit conditions you want to use, including when the algo should Buy/Sell the option and when it should square off the position. This will help us guide you with the appropriate automation flow.