TradingView
HPotter
2014年9月24日午前4時3分

Bill Williams Averages SMMA 

E-mini S&P 500 FuturesCME

詳細

This indicator calculates 3 Smoothed moving average for default values of
13, 8 and 5 days, with displacement 8, 5 and 3 days.
The most popular method of interpreting a moving average is to compare
the relationship between a moving average of the security's price with
the security's price itself (or between several moving averages).
コメント
the_batman
THANK YOU so much for doing this.

Apparently they've added SMMA as an indicator. To test this, I compared a 13-period non-shifted SMMA (native indicator) to the shifted SMMA (your code here). They were very different. Perhaps it's possible to use the native SMMA method?
HPotter
In the script I used formula from link what you send me in the other thread and code it. But I no not sure that is real formula. In the TV, how I know, don`t exists a builtin function of SMMA, but I can wrong.
moveon
Click on the arrow icon right to the TradingView menu "indicators". There you will find the "Bill William's 3 Lines" indicator.
moveon
To me your code and TV code looks to show identical signals:

the_batman
Yeah, because the original is wrong. For the reason's stated in the original comment. (ie it uses SIMPLE moving average instead of SMOOTHED).
the_batman
I think you're right. The formula I sent is wrong. (Sorry).

Here's the code (ie formula) from the SMMA indicator:

src = close
len = input(7, minval=1, title="Length")
smma = na(smma[1]) ? sma(src, len) : (smma[1] * (len - 1) + src) / len

詳細