XA_1:=REF(CLOSE,1);
XA_2:=ABS(HIGH-XA_1);
XA_3:=ABS(LOW-XA_1);
XA_4:=ABS(HIGH-REF(LOW,1));
XA_5:=ABS(XA_1-REF(OPEN,1));
XA_6:=IF(XA_2>XA_3 AND XA_2>XA_4,XA_2+XA_3/2+XA_5/4,IF(XA_3>XA_4 AND XA_3>XA_2,XA_3+XA_2/2+XA_5/4,XA_4+XA_5/4));
XA_7:=CLOSE-XA_1+(CLOSE-OPEN)/2+XA_1-REF(OPEN,1);
XA_8:=8*XA_7/XA_6*MAX(XA_2,XA_3);
ASI:SUM(XA_8,0),COLORRED,LINETHICK2;
MASI:MA(ASI,34),COLORWHITE,LINETHICK2;