ASI

Accumulative Swing Index
Description
The Accumulative Swing Index (ASI) is a cumulative sum of the Welles Wilder’s Swing Index indicator. It plots a running total of the Swing Index for each bar. It is used to get a better long term picture than the Swing Index which uses only 2 bars to calculate data.
Category
Momentum Indicators
Parameters

None

Chart Script

LC:=REF(CLOSE,1);
AA:=ABS(HIGH-LC);
BB:=ABS(LOW-LC);
CC:=ABS(HIGH-REF(LOW,1));
DD:=ABS(LC-REF(OPEN,1));
R:=IF(AA>BB & AA>CC,AA+BB/2+DD/4,IF(BB>CC & BB>AA,BB+AA/2+DD/4,CC+DD/4));
X:=(CLOSE-LC+(CLOSE-OPEN)/2+LC-REF(OPEN,1));
SI:=16*X/R*MAX(AA,BB);
ASI:SUM(SI,0)