OPEN-SOURCE SCRIPT

Willams %RwEMA

업데이트됨
spy

Was looking for something else when surfed into an old question
wanting %R 21 period with EMA 13 period of the %R signal
and being a rookie at this, made this code to post for them.

Tried to comment the script in such a way that other rookies
like me could make better sense of what is being done. Hope
this helps someone. I find it useful as one of my indicators for
trading.

Pinescript for tradingview.com user Tom1trader
All time frames.
Interpretation:
%R (Red) crosses above it's average (Blue) - bull
%R crosses below it's average - bear. Background
color changes green-up red-down with above crossings.

Most but not all of serious price movement takes place
from the time the %R (red) goes into oversold (or bought) and
exits again.
%R centerline crosses can also be useful.

I use various indicators and want all of the confirmation
that I can get for expectations BUT I never know what the
next bar will do and define my risks accordingly.
릴리즈 노트
https://www.tradingview.com/chart/OsBXckpZ/
Added 2 new lines at the top of the panel. Each of them is a Random Walk Indicator.
The top one is an adjustable short period (default 4) with an adjustable threshold (default 1). When the RWhighs or RWlows exceed 1 it is said to be not random and a possible trend. It is RED, GREEN or WHITE for threshold met down, threshold met up and threshold not met (presumably still random).
The second one is a high/low cross only with an adjustable longer period (default 19) to stand out from the background it switches from AQUA (up) to FUCHSIA (down) when the RWhighs and RWlows cross each other up or down. Even though it does not use a threshold it makes a good general trend indication. Since they lie just above and below each other; together they give a good visualization of this different aspect of price action. Possibly because of the I find it complements the other indicators in the mix without just telling me the same thing.

I had not known of this one so thanks to user RicardoSantos for the idea, the link to more info that is on his indicator and for the Random Walk Function that I used from his indicator which is here:
[RS]Random Walk Index
Thanks!

Refined the background colors for a quick read of percentR. The background colors now key to the RED signal line above or below the BLUE moving average line and the signal line above or below center. Signal above Average - Green, also above center - Darker Green. Signal below Average - red and center -darker red. The higher (lower) the Signal and Average, especially at or above (below) the 80/20 lines the more price movement is occurring.
릴리즈 노트
Updates 12-3-2-18:
1. Moved the colored lines representing Random Walk to the bottom of the panel (thanks again RicardoSanto)
2. Added a histogram at the top of the panel to show the difference between the %R and its ema average. Thanks user TransitMan for request.
3. Updated and hopefully clarified the description given in comments at the start of the script.
If it helps you trade or gives you some script ideas, great - this is provided for entertainment purposes only.
Enjoy, happy trading and keep smiling!
Bill Williams IndicatorspercentrTrend AnalysisWilliams %R (%R)

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항