CTA2:=REF(LOW,1);
CTA3:=SMA(ABS(LOW-CTA2),3,1)/SMA(MAX(LOW-CTA2,0),3,1)*100;
CTA4:=EMA(IF(CLOSE*1.2,CTA3*10,CTA3/10),3);
CTA5:=LLV(LOW,30);
CTA6:=HHV(CTA4,30);
CTA7:=IF(LLV(LOW,58),1,0);
CTA8:=EMA(IF(LOW<=CTA5,(CTA4+CTA6*2)/2,0),3)/618*CTA7;
CTA9:=IF(CTA8>100,100,CTA8);
CTA5X:=LLV(LOW,75);
CTA6X:=HHV(HIGH,75);
GOODCBAIAO:=HHV(HIGH,75);
CTA7X:=(CTA6X-CTA5X)/100;
CTA8X:=SMA((CLOSE-CTA5X)/CTA7X,20,1);
CTAA:=3*CTA8X-2*SMA(CTA8X,15,1);
CTA26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
CTA28:=SMA(CTA26,3,1);
CTA12:=(CLOSE-LLV(LOW,40))/LLV(LOW,40)*100,COLORYELLOW;
波段王:=SMA(CTA28,3,1);
建仓吸筹:=IF(CTA8,CTA8,1),COLORRED;
趋势:=EMA(3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1),3);
趋势吸筹:IF(趋势<=14,趋势,DRAWNULL),NODRAW,COLORMAGENTA;
ACB2:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
ACB3:=EMA(ACB2*10,3);
ACB4:=LLV(L,38);
ACB5:=HHV(ACB3,38);
ACB7:=EMA(IF(L<=ACB4,(ACB3+ACB5*2)/2,0),3)/618;
控盘:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
ACB8:=IF(ACB7>=100,100,ACB7);
主力吸筹:IF(ACB8>0,ACB8,DRAWNULL),COLORRED,NODRAW;
AAC3:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
AAC4:=EMA(AAC3*10,3);
AAC5:=LLV(L,13);
AAC6:=HHV(AAC4,13);
AAC7:=EMA(IF(LOW<=AAC5,(AAC4+AAC6*2)/2,0),3)/618;
AAC8:=IF(AAC7>500,500,AAC7);
致富吸筹:=IF(AAC8>-120,ABS(AAC8),DRAWNULL),COLORGRAY,NODRAW;
最大值:=MAX(趋势吸筹,MAX(主力吸筹,致富吸筹));
最小值:=MIN(趋势吸筹,MIN(主力吸筹,致富吸筹));
STICKLINE(趋势吸筹=最大值,0,IF(趋势吸筹>0,趋势吸筹,DRAWNULL),2,0),COLORMAGENTA;
STICKLINE(主力吸筹=最大值,0,IF(主力吸筹>0,主力吸筹,DRAWNULL),2,0),COLORRED;
STICKLINE(致富吸筹=最大值,0,IF(致富吸筹>0,致富吸筹,DRAWNULL),2,1),COLORGRAY;
STICKLINE(RANGE(趋势吸筹,最小值,最大值)=1,0,IF(趋势吸筹>0,趋势吸筹,DRAWNULL),2,0),COLORMAGENTA;
STICKLINE(RANGE(主力吸筹,最小值,最大值)=1,0,IF(主力吸筹>0,主力吸筹,DRAWNULL),2,0),COLORRED;
STICKLINE(RANGE(致富吸筹,最小值,最大值)=1,0,IF(致富吸筹>0,致富吸筹,DRAWNULL),2,1),COLORGRAY;
STICKLINE(趋势吸筹=最小值,0,IF(趋势吸筹>0,趋势吸筹,DRAWNULL),2,0),COLORMAGENTA;
STICKLINE(主力吸筹=最小值,0,IF(主力吸筹>0,主力吸筹,DRAWNULL),2,0),COLORRED;
STICKLINE(致富吸筹=最小值,0,IF(致富吸筹>0,致富吸筹,DRAWNULL),2,1),COLORGRAY;
CBA10:=IF(AAC8>-120,AAC8,0);
CBA11:=CBA10<REF(CBA10,1);
DRAWICON(CBA11 AND REF(NOT(CBA11),1),AAC8+5,1);
CBA12:=SMA(((HHV(C,13)-C)/(HHV(C,13)-LLV(C,13))),5,1);
快速线:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
慢速线:=SMA(快速线,3,1),COLORRED,LINETHICK2;
空头:=SMA(慢速线,3,1),COLOR00FF00;
STICKLINE(2/CBA12-2>0,20,2/CBA12-2+20,0,-1),COLORLIRED;
CTE:=IF(BARSLAST(CROSS(慢速线,快速线))>=3 AND CROSS(快速线,慢速线) AND 慢速线<30,20,0);
吸筹买点:=IF(CROSS(CTA12,建仓吸筹),1,0),COLORYELLOW;
STICKLINE(吸筹买点,0,60,3,0),COLORYELLOW;
DRAWTEXT(吸筹买点,58,' ★游资控盘')COLORMAGENTA;
DRAWICON(吸筹买点,58,25);