N:=18 ;

LOWV:=LLV(LOW,N);

HIGHV:=HHV(HIGH,N);

MAV:=MA(V,3) ;

横盘:=((HIGHV-LOWV)/N)<0.15;

放量1:=V>=1.8*MAV;

今天大阳:=(C-REF(C,1))/REF(C,1)>=0.05;

潜龙在天:横盘 AND 放量1 AND 今天大阳 AND TIME<=0935;

STICKLINE(潜龙在天,100,C,2,1),COLORYELLOW;

捕捉龙头妖股:=HHV(HIGH,9)-LLV(LOW,9);

集合竞价:=HHV(HIGH,9)-CLOSE;

抓龙头股:=CLOSE-LLV(LOW,9);

选股公式:=集合竞价/捕捉龙头妖股*100-70;

GGDDD5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;

GGDDD6:=(CLOSE+HIGH+LOW)/3;

GGDDD7:=SMA(抓龙头股/捕捉龙头妖股*100,3,1);

GGDDD8:=LLV(LOW,34);

GGDDD9:=SMA(GGDDD7,3,1)-SMA(选股公式,9,1);

GGDDDRA:=IF(GGDDD9>100,GGDDD9-100,0);

GGDDDRB:=HHV(HIGH,34);

GGDDDRC:=EMA((GGDDD6-GGDDD8)/(GGDDDRB-GGDDD8)*100,13);

GGDDDRD:=EMA(0.618*REF(GGDDDRC,1)+0.382*GGDDDRC,2);

DDSS1:=EMA(GGDDDRD,1);

CCCC1:=MA(C,5)=HHV(MA(C,5),20);

CCCC2:=MA(C,5)>MA(C,10);

CCCC3:=MA(V,5)>MA(V,40)*1.01;

CCCC4:=COUNT(MA(C,1)>REF(C,1),2)=2;

CCCCV:=CCCC1 AND CCCC2 AND CCCC3 AND CCCC4;

GGGG1X:=EMA(CLOSE,8);

GGGG2X:=EMA(GGGG1X,20);

GGGG3X:=CROSS(GGGG1X,GGGG2X);

GGGG4X:=GGGG1X<EMA(CLOSE,120);

GGGG5X:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT,NODRAW ;

安全位:=20;

{收钱线_极地上涨_分解2}

GGDDDRE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;

GGDDDRF:=MA(GGDDDRE,3);

GGDDDR1X:=HHV(HIGH,9)-LLV(LOW,9);

GGDDDR2X:=HHV(HIGH,9)-CLOSE;

GGDDDR3X:=CLOSE-LLV(LOW,9);

GGDDDR4X:=((GGDDDR2X)/(GGDDDR1X))*(100)-70;

GGDDDR5X:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);

GGDDDR6X:=((2)*(CLOSE)+HIGH+LOW)/(4);

GGDDDR7X:=SMA(((GGDDDR3X)/(GGDDDR1X))*(100),3,1);

GGDDDR8X:=LLV(LOW,34);

GGDDDR9X:=SMA(GGDDDR7X,3,1)-SMA(GGDDDR4X,9,1);

GGDDDR10X:=IF((GGDDDR9X>100),GGDDDR9X-100,0);

GGDDDR11X:=HHV(HIGH,34);

BB1X:=EMA(((GGDDDR6X-GGDDDR8X)/(GGDDDR11X-GGDDDR8X))*(100),8);

{DRAWKLINE(EMA(BB1X,5),EMA(BB1X,5),BB1X+1,BB1X);}

SSDD1:=IF(CROSS(GGGG5X,安全位),50,0),STICK,COLORYELLOW,LINETHICK4;

FFFDD1:IF(CROSS(GGDDDRC,DDSS1) AND TIME<=0935 AND GGDDDRC>GGDDDRD AND GGDDDRC<55 AND C>O,50,0),COLORRED,DOTLINE;

DRAWTEXT((FFFDD1>0),25,' 拉升'),COLORYELLOW;

DRAWTEXT((SSDD1>0) AND TIME<=0935,35,' 转FFFDD2'),COLORRED;

FFFDD2:=STICKLINE((GGGG3X AND GGGG4X)OR(CCCC1 AND CCCC2 AND CCCC3 AND CCCC4),BB1X*1.03,BB1X*1.120,1,0),COLORYELLOW;