Supertrend colour change exit

I want an exit when the Supertrend turns from Green to Red, how to code this in Streak

You can refer to the below conditions with the example conditions to Exit when the Supertrend gives Sell signal (Turns Red From Green )