涨幅:=2;
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT>1,1,SAT)*100;
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*Sma(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
中期线:=MA(持股,55);
VAR1:=1;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;
KDDD:=饱和度>=97 AND CQ>90 AND 中期线<50;
KFFF:=BArslAst(CROSS(短期线,中期线))<10;
KGGG:=C/REF(C,1)>1+0.01*涨幅;
游资进场:=KDDD AND KFFF AND C>O AND KGGG,LINETHICK2,COLORYELLOW;
{资金流入无未来}
总额:=AMOUNT/100000000;
VAR61:=AMOUNT/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
流入亿:=IF(CLOSE>OPEN,VAR61*(HIGH-LOW),IF(CLOSE<OPEN,VAR61*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED;
流出亿:=IF(CLOSE>OPEN,0-VAR61*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR61*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00;
差:=(流入亿+流出亿);
强:=EMA((CLOSE-REF(CLOSE,1))/CLOSE*10,2);
主力:=EMA(差,1),COLORFF00FF,LINETHICK5;
差A:=3*EMA(EMA(EMA(EMA(强,2),2),2),2);
净流:=3*EMA(EMA(EMA(EMA(差A,1),2),2),2), COLORRED;
XG:游资进场;