Help needed on automation setup using super trend indicator

Can you please help me if we can setup automation for super trend with below criteria. Strategy conditions : indicator: super trend with price candle close

Call buy conditions :

Entry : on given timeframe(1m) if super trend turns green this candle can called as signal candle and if whenever underlying asset crosses high of signal candle then trigger buy order for call option.

Exit: when super trend reverses to red or if underlying asset price crosses below signal candle low (after candle closed) .

Put buy conditions :

Entry : on given timeframe(1m) if super trend turns red this candle can called as signal candle and if whenever underlying asset crosses low of signal candle then trigger buy order for put option.

Exit: when super trend reverses to green or if underlying asset price crosses above signal candle high(after candle close).

Here main problem I have is I am not able to set entry whenever prices crosses high(for call)/low(for put)of signal candle and exit whenever price crosses high(put exit)/low(call exit) of signal candle.

Could you pleas help me with this.