超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
大宗净流入:=(超B+大B)-(超S+大S);
T0:=SUM(大宗净流入,3)/3;
T1:=SUM(大宗净流入,5)/5;
T2:=SUM(大宗净流入,10)/10;
T3:=SUM(大宗净流入,20)/20;
T4:=SUM(大宗净流入,60)/60;
多空分界:MA(T4,60),LINETHICK2,COLORRED;
超短线资金:MEMA(大宗净流入,5),COLORWHITE;
短线资金:MEMA(T1,5),COLORYELLOW;
中线资金:MEMA(T2,10),COLORMAGENTA;
长线资金:MEMA(T3,20),COLORGREEN;
IF(多空分界 REF(多空分界,1),多空分界,DRAWNULL),COLORCYAN,LINETHICK2;