S = Confirmed sell signal
B = Confirmed buy signal
U = Unknown signal - hold previous position
This is a simple script based on MACD and exponential moving average working together. If there is a disagreement between them, an "unknown" state is shown and denoted by a "U".