4 SMAs (10, 20, 50 & 200) are combined here in one single indicator.
Crossover signal for Buy as "B" will be shown in the chart if 10 is above 20 & 50 and 20 is above 50.
Crossover signal for Sell as "S" will be shown in the chart if 10 is below 20 & 50 and 20 is below 50.
Inside Bar Identification:
This is to simply identify if there is a candle. The logic is very simple - High of the previous candle should be higher than current candle and low of the previous candle should be lower than the current candle.
If the previous candle is red, the following candle would be Yellow - which may give some view in most of the cases but not always
If the previous candle is green, the following candle would be Black - which may give some view in most of the cases but not always
Be Cautious when you see alternate yellow and black candle, it may give move on the both side
Please comment if you have any interesting ideas to improve this indicator.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.