VAR1:=2250911;
VAR2:=IF(DATE< VAR1,1,DRAWNULL);
VAR3:=(EMA(CLOSE,12)-EMA(CLOSE,26))*VAR2;
VAR4:=(EMA(VAR3,9))*VAR2;
M:=(VAR3-VAR4)*2*VAR2;
R:=IF(CODELIKE('60') OR CODELIKE('00'),10,20)*VAR2;
VAR5:=100*(C/REF(C,1)-1)>R-0.01/REF(C,1)*100;
VAR6:=100*(C/REF(C,1)-1)< -R+0.01/REF(C,1)*100;
VAR7:=BARSLAST(EVERY(VAR5,2));
量能:=REF(V,1)=LLV(V,VAR7);
共振:=M>REF(M,1) AND REF(M,1)< REF(M,2);
期望值:=VAR7<=13 AND 量能 AND 共振;
止损:=REF(LLV(L,VAR7-BARSLAST(期望值)),BARSLAST(期望值));
VAR8:=C>=O*VAR2;
VAR9:=C< O*VAR2;
Y:=MA(((WINNER((C*0.9))*100)*C),5);
D:=(IF((Y>10),Y,0)/2);
蓝色:=D>0,STICK,LINETHICK4,COLORFF0000;
有庄:=D>200;
主力流入:BARSLASTCOUNT(蓝色)=1,NODRAW;
DRAWICON(主力流入,L,9);
X_1:=2250911;
X_2:=IF(DATE< X_1,1,DRAWNULL);
X_3:=(EMA(CLOSE,12)-EMA(CLOSE,26))*X_2;
X_4:=(EMA(X_3,9))*X_2;
M1:=(X_3-X_4)*2*X_2;
R1:=IF(CODELIKE('60') OR CODELIKE('00'),10,20)*X_2;
X_5:=100*(C/REF(C,1)-1)>R1-0.01/REF(C,1)*100;
X_6:=100*(C/REF(C,1)-1)< -R1+0.01/REF(C,1)*100;
X_7:=BARSLAST(EVERY(X_5,2));
量1:=REF(V,1)=LLV(V,X_7);
共振1:=M1>REF(M1,1) AND REF(M1,1)< REF(M1,2);
期值1:=X_7<=13 AND 量1 AND 共振1;
止损1:=REF(LLV(L,X_7-BARSLAST(期值1)),BARSLAST(期值1));
X_8:=C>=O*X_2;
X_9:=C< O*X_2;
Y1:=MA(((WINNER((C*0.9))*100)*C),5);
D1:=(IF((Y1>10),Y1,0)/2)*C;
主力线:MA(C,8) COLORMAGENTA LINETHICK2;
STICKLINE(主力流入,H,L,0,0),COLORYELLOW;
STICKLINE(主力流入,O,C,2,0),COLORMAGENTA;
DRAWTEXT(主力流入,L*0.99,' ★主流资金'),COLORYELLOW;