Original code is here:
Added options to turn off candle colouring and another one to remove the Supertrend line.
Added a third alert option that will fire if there is either a buy *or* sell signal, so there is potentially no need to have separate alerts for buy and sell. This was requested.
To clarify, if an alert is set on Long or Short and the condition is met anytime during a candle timeframe an alert is sent even if the condition is reversed before the candle closes. Ideally foe me alerts would only be sent when the trend is confirmed and not if it the wick or candle crosses the supertrend line (which can happen multiple times and not confirm). Thanks!!