Wilder’s Accumulative Swing Index (ASI)
This index has been created by a genius of the trading world, Welles Wilder, the same that created ADX and RSI.
The index is quite straightforward but the application of it requires some knowledge of its principles. I suggest reading Wilder’s bestseller “New concepts in technical trading” (buying this book it’s an outstanding investment already but you can also find PDF’s of it on line).
Blue skies
dailylimit=1 //In case of commodities with a defined daily limit (maximum nove in one direction) add the real value. If trading stocks - where there is not a maximum daily limit - you can use any value you want.
if barindex>1 then
//definition SwingIdx parameters
AbsHighClose = abs(high - close[1])
AbsLowClose = abs(low - close[1])
AbsCloseOpen = abs(close[1] - open[1])
AbsMaxMin=abs(high-low)
CloseClose=close-close[1]
CloseOpenToday=close - open
CloseOpenYesterday=close[1] - open[1]
//computation K
k=max(AbsHighClose,AbsLowClose)
//Computation R
partialR=max(AbsHighClose,max(AbsLowClose,AbsMaxMin))
if AbsHighClose=partialR then
r= AbsHighClose - 0.5 * AbsLowClose + 0.25 * AbsCloseOpen
else
r= AbsMaxMin + 0.25 * AbsCloseOpen
endif
if AbsLowClose=partialR then
r= AbsLowClose-0.5*AbsHighClose+ 0.25 * AbsCloseOpen
endif
//main formula
if r<>0 then
SwingIdx = 50*(( CloseClose + 0.50 * CloseOpenToday + 0.25 * CloseOpenYesterday ) / R ) *( K / DailyLimit )
endif
AccumulativeSwingIdx=AccumulativeSwingIdx+SwingIdx
endif
return AccumulativeSwingIdx
You must be logged in to post a comment.
I don't know but i am doing something wrong but obvious to others. I download this indicator as a .itf file. I import into PRT using pro screener/set pro screener. All well. Then i use the Add indicator function to add it to a chart. Boom, the hole chart implodes and gets about 0,5 cm high. Can't see anything on the chart. I can see ASI indicator. This happen now and then also when importing both indicators and automatic systems. I use PRT version V11.1 - 1.8.0_202 (may 26). So what do i do wrong? Regards /Anders
Hi. Thank you so much for helping out Nicolas. At last i found where to set the configuration Price scale "Price only". I checked the box and poff the price bars chart took over the hole "screen". But now it is impossible to add the Accumulative Swing Index at all. I can see it in upper left corner but it do not appear under the price chart. Sorry, but i am learning bit by bit :-)