Oops. Last line's title should be "Sell". Doesn't affect display though.
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.
//Created by Robert Nance 060915 //This little script simply gives you a quick visual cue of where price is compared to a particular EMA. // It is defaulted to the 8 EMA study(title="Price above/below EMA", shorttitle="BuySellEMA", overlay=false) len = input(8, minval=1, title="Length") src = input(close, title="Source") out = ema(src, len) plot(close >= out, title="Buy", style=columns, color=lime) plot(close < out, title="Buy", style=columns, color=red)
I am actually using SMA as trend identifying. Is it possible that you could make the same indicator for SMA?
or, more importantly, would you be able to make an indicator with alert for if price is > SMA5 > SMA 10 > SMA 20?
Thanks a lot!