3 new Indicators - PGO / RAVI / TII

My "to-publish" list is getting too big, so decided to push out 3 indicators in the same chart

Feel free to "make mine" and use :) Leave a comment on what you think.

Pretty Good Oscillator
This indicator, by Mark Johnson, measures the distance of the current close from its N-day simple moving average , expressed in terms of an average true range (see Average True Range ) over a similar period. So for instance a PGO value of +2.5 would mean the current close is 2.5 average days' range above the SMA .

Johnson's approach was to use it as a breakout system for longer term trades. If the PGO rises above 3.0 then go long, or below -3.0 then go short, and in both cases exit on returning to zero (which is a close back at the SMA ). Indicator marks all these areas (3/-3/0)

Rapid Adaptive Variance Indicator
RAVI is a simple indicator, by Tushar Chande, to show whether a stock is trending or not. Unlike ADX , RAVI measures only the trend intensity, it doesn't distinguish which way the trend is going. Rising RAVI shows the beginning of a trend or an increase in trend intensity, a decreasing slope signifies decreasing intensity. Also, RAVI often reacts more quickly and exhibits a more pronounced curve than ADX .

The standard values for daily charts are 7 and 65. For hourly charts, the most common averaging periods are 12 and 72 or 24 and 120.

The signal lines suggested are from +/- 0.3% to +/-1%. I haven't added any markings as these signals are instrument-specific. I suggest doing some back testing and adding these accordingly.

Trend Intensity Index
TII, by M. H. Pee, measures the strength of a trend, by looking at what proportion of the past "n" days prices have been above or below the level of today's "x"-day simple moving average . You can configure "n" via options page. "x" is calculated as "2 times n".

TII moves between 0 and 100. A strong uptrend is indicated when TII is above 80. A strong downtrend is indicated when TII is below 20.

Pee recommended entering trades when levels of 80 on the upside or 20 on the downside are reached. Indicator marks these lines for easy reference.

List of my free indicators:
List of my indicators at Appstore:

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎของบ้าน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้


ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

// @author LazyBear
// If you use this code in its orignal/modified form, do drop me a note. 
study(title="Pretty Good Oscillator [LazyBear]", shorttitle="PGO_LB")
pgo = (close - sma(close, length))/ema(tr, length)
plot(pgo, color=red, linewidth=2)