TradingView
TheLark
6 Ags 2014 pukul 21.25

WWMA 

SPDR S&P 500 ETF TRUSTArca

Deskripsi

As requested, here is the WWMA as an actual script release, I wasn't going to release this at first, but figured I would since it was requested, and I could help shed some light on what it is at the same time.

There is nothing too fancy about the WWMA, it is basically an ema calculated a little differently. I've added an ema with a different length that mirrors the WWMA to help illustrate this. Scroll over the EMA and you will see they are both the same.

Is there an advantage to one or the other?
I honestly couldn't tell you (chime in if you know!). But for those of you who are interested in Wilder, it's good to know what he used to calculate some of his indicators.
Komentar
ltkhai
hi. interested in the script.

can you help to convert to version 4 pine script?
Mango2Juice
@ltkhai,
//@version=4
study(title="Welles Wilder Moving Average",shorttitle="WWMA",overlay=true)
length = input(defval=14)

wma = rma(close,length)
col = wma > wma[1] ? #0094FF : #FF3571
plot(wma,linewidth=2,color=col)
ltkhai
@Mango2Juice, Thanks
Lebih lanjut