Inclusion of Heikinashi candle in scanx for swing/positional trades

Hi team,

I wish to perform the below strategy in scanx, need your inputs.

Strategy:
Scan Nifty 100 stocks in live market.
Use Heikinashi candle
Time frame : user defined (15 min to 1 hour)
Need a buy alert or filter such stocks, where the heikinashi trend changes from red to green. Wait for the next candle completion and if the trend continues, higher than the first candle, filter such stock.
I want to use this strategy for filtering stocks which are in short term momentum with a target of 3 to 5% and stop loss of 2%.