LazyBear

Indicators: AccSwingIndex, ASI Oscillator and RangeExpansionInde

Accumulation Swing Index
-----------------------------------------------
ASI is a cumulative sum of swing index , developed by Wilder. ASI attemps to show the "real market" by quantifying price. This allows the use of classic support/resistance analysis on the index itself. Typical analysis involves looking for breakouts, new highs and lows, and divergences.

Wilder notes the following characteristics of the Accumulation Swing Index:
- It provides a numerical value that quantifies price swings.
- It defines short-term swing points.
- It indicates the real strength and direction of the market.

Use this for confirmation on S/R breaks, levels et al.

More Info:
- http://www.onlinetradingconcepts.com/Tec...
- http://www.investopedia.com/articles/tec...

ASI Oscillator
-----------------------------------------------
I converted the ASI in to an oscillator. Advantage over plain ASI is it points out clearly the accumulation drops (distribution) and divergences. Disadvantage is you won't be able to do normal S/R, channel analysis.

More info:
Since this is my own concoction, there is no published theory. Try this out to find out its usecases/nuances :)

Range Expansion Index
-----------------------------------------------
Developed by Tom Demark (first discussed in his book "New Science of Technical Analysis"), this indicator plots the relation between the sum of strong price changes to all price changes for any given period.

Excellent discussion on setups using REI:
http://www.trading-naked.com/mb-range-ex...

More info:
http://en.wikipedia.org/wiki/Range_expan...
Supprimer des scripts favoris Ajouter aux scripts favoris
//
// @author LazyBear
// If you use this code in its orignal/modified form, do drop me a note. 
//
study("Accumulation Swing Index [LazyBear]", shorttitle="ASI_LB")
limit = input(30, "Limit")
lengthMA=input(8, "SMA Length")
showMA=input(true, type=bool)

swingindex( limit ) =>
    r1 = abs( high - close[1] )
    r2 = abs( low - close[1] )
    r3 = abs( high - low )
    r4 = abs( close[1] - open[1] )
    k = max( r1, r2 )
    r = iff( r1 >= max( r2, r3 ), r1 - r2/2 + r4/4,
        iff( r2 >= max( r1, r3 ), r2 - r1/2 + r4/4,
            r3 + r4/4 ) )
    iff( r == 0, 0, 50 * ( ( close - close[1] + 0.5 * ( close - open ) + 0.25 * ( close[1] - open[1] ) ) / r ) * k/limit )

calc_asi( limit ) => 
    cum( swingindex( limit ) )

asi=calc_asi( limit )
s=sma(asi,lengthMA)

plot(asi , color=red, linewidth=2)
plot(showMA?sma(asi, lengthMA):na, color=teal)
List of my free indicators: http://bit.ly/1LQaPK8
List of my indicators at Appstore: http://blog.tradingview.com/?p=970

Commentaires

@LazyBear , I'm not able to see ASI Osc and REI when added the the indicator. Only able to see ASI_LB on the charts. Please help me how to get other two indicators as well. Thanks
+6 Répondre
@LazyBear , I can see the REI when I add this script. Can you please share a script that only displays the REI. Thanks for your time.
+1 Répondre
Love how it is in oscillator version. How can I add the script to my list ?
+1 Répondre
I'm not able to see ASI Osc and REI when added the the indicator. Only able to see ASI_LB on the charts. Please help me how to get other two indicators as well.
Thanks
Répondre
@LazyBear Wilder says in his book that he uses some kind of trailing stop line that seems to be some distance from the acc line to exit his position after a swing. His book is hard to read sometimes. Does the moving average serve that purpose? Should it be a simple moving average?
Répondre
@LazyBear when I add script to my chart I am unable to see the Oscillator and REI indicators. Only the ASI is plotted. Can you help please?

Thanks
Répondre
@LazyBear can you give a hint on how you turned the ASI into an oscillator mathematically?
I would love to test it out and see what kind of divergence signals it gives.
Did you introduce a denominator into the asi final calculation?
Répondre
hi, how do i apply the REI (range expansion index)? it seems that I can only see the ASI indicator when i apply this. thanks!
Répondre
IvanLabrie ljunyan
Same, not seeing the code...
Répondre
Accueil Screener d'actions Screener Forex Screener Crypto Calendrier économique Comment ça marche Caractéristiques du graphique Prix Parrainer un ami Règles de conduite Centre d'aide Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Blog & News Twitter
Profil Paramètres du Profil Compte et Facturation Amis référés Coins Mes tickets au support Centre d'aide Idées Publiées Followers Suivi(e) Messages privés Chat Se Déconnecter