M:=3;N:=4;
0,COLORWHITE;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
主买:=主动买盘/CAPITAL;
主卖:=-主动卖盘/CAPITAL;
M1:=MA(主买,M);
M2:=MA(主卖,M);
买:100*MA(M1,N),COLORRED;
卖:100*MA(M2,N),COLORGREEN;
差:买-卖,COLORYELLOW;
差D:=MA(差,2);
关注:(1+BARSLAST(CROSS(差,差D)))*(差>差D),linethick0;