TradingView
BitcoinMedusa
1 фев 2014 г., 05:14

Chart.Chat.Connect / About To Make It Happen 

Bitcoin / U.S. dollarBitstamp

Описание

//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 [1]...use higher number to emphasize Trend
plot_color = hullma >= hullma[1] ? lime : hullma < hullma[1] ? red : white


plot(hullma, title = "Hull MA", style = line, linewidth = 4, color = plot_color)
Комментарии
aryahi29
YOUR COLORCHANGE INDICATOR IS SIMPLY AMAZING..!!!!!
I TRIED THIS CODE, BUT IT'S NOT PROCESSED.SAYING THERE'S AN ERROR.
COULD I HAVE THE RIGHT CODE.

Thank You,
aryahi
Ещё