BitcoinMedusa

Chart.Chat.Connect / About To Make It Happen

BITSTAMP:BTCUSD   Bitcoin
0
//Created by user ChrisMoody 1-31-2014 for user eriktatch

study(title = "CM_Hull MA-Color-Trend", shorttitle="CM_HMA-Color-Trend", overlay = true)
source = close, length = input(41, minval=1)
hullma = wma(2*wma(source, length/2)-wma(source, length), round(sqrt(length)))


//Lookback period set to ...use higher number to emphasize Trend
plot_color = hullma >= hullma ? lime : hullma < hullma ? red : white


plot(hullma, title = "Hull MA", style = line, linewidth = 4, color = plot_color)

Disclaimer

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.