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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
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 |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
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
Change the price scale to use “price only”.
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 🙂