Above and Below SMA

StuBuzzzini Premium Updated

Hey thanks! So I have a rule (or should have) that says only go long if price is above the 200 day SMA , and only short if below. I also like to have 8 charts on 1 screen. I think it would be awesome if the border of each chart would have a thin red or green outline, or any chart I'm scrolling through. That would help me stay more disciplined on that rule. Would also be great to have an option to use other timeframed moving averages (The one by ike in tradingview is good to work off) like the 5 and 150 day EMAs because the 200 might be a little too strict. Thoughts?
Release Notes:
Made the resolution of the SMA adjustable.

Disclaimer: I am not a financial advisor. Do not take anything on here, twitter or stocktwits as financial advice, ever. Do your own research. Consult a professional investment advisor before making any investment decisions!
Open-source script

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.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?