MID:=MA(C,30)*1.005;
主力跟踪1:=POW((C-MID),2);
主力跟踪2:=MA(主力跟踪1,30);
主力跟踪3:=SQRT(主力跟踪2);
UPPER:=MID+2*主力跟踪3;
LOWER:=MID-2*主力跟踪3;
游资突破:=REF(UPPER,1),COLORBLUE LINETHICK2;
AAV:=vol/((H-L)*2-Abs(C-O));
游资监控1:=IF(C>O,AAV*(H-LOW),IF(C< O,AAV*((H-O)+(C-LOW)),VOL/2));
游资监控2:=IF(C>O,0-AAV*((H-C)+(O-LOW)),IF(C< O,0-AAV*(H-LOW),0-VOL/2));
大单信号:=(游资监控1+游资监控2)/99;
游资监控3:=(C/REF(C,1)-1)*100;
XG:BARSLASTCOUNT(大单信号>=200 AND 游资监控3>=3 AND C>游资突破)=1;
最大涨幅:=IF((CODELIKE('300') OR CODELIKE('301') OR CODELIKE('688')),20,10);
涨停:=C>=ROUND2(REF(C,1)+REF(C,1)*最大涨幅/100,2) AND C=H;
单个涨停:=NOT(涨停) AND REF(涨停,1) AND COUNT(涨停,3)>=1;
TT0:=BARSLAST(单个涨停);
MA5:=MA(C,5);
连续线下5:=REF(单个涨停,TT0) AND TT0< 8 AND C< MA5 AND REF(C,1)< REF(MA5,1) AND REF(C,2)< REF(MA5,2) AND REF(C,3)< REF(MA5,3) AND REF(C,4)< REF(MA5,4) AND REF(C,5)>REF(MA5,5);
下5周期:=BARSLAST(连续线下5);
XG:FILTER(REF(连续线下5,下5周期) AND 下5周期<=3 AND C>MA5 AND V>MA(V,5),30),LINETHICK2,COLORRED;

