LazyBear

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: bit.ly/1LQaPK8
List of my indicators at Appstore: blog.tradingview.com/?p=970
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?
//
// @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")
length=input(89)
pgo = (close - sma(close, length))/ema(tr, length)
hline(0)
hu=hline(3)
hl=hline(-3)
fill(hu,hl,red)
plot(pgo, color=red, linewidth=2)