散户:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;
a=CLOSE;
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 AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND 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,M5);
ASIT=MA(ASI,M6);
DRAWGBK(a<散户 AND ASI<REF(ASI,1)),colorred;
TJ1:=a<REF(a,1) AND 散户<REF(散户,1);
DRAWGBK(TJ1 AND ASI<REF(ASI,1)),colorred;