1. We will always consider the last two candles and the current one in reference to a sma. both to indicate a buy or sell signal.
1.1 "The signal to buy" is; when, a red candle, is surpassed by a green candle and the current candle closes in red above the sma.
1.2 "The signal to sell" is; when, a green candle, is surpassed by a red candle and the current candle closes in green below the sma.