涨停1:=C/REF(C,1)>1.09 AND C=H;
涨停2:=COUNT(REF(涨停1,1),7)>0;
VAR1:=AMOUNT/VOL/100;
VAR2:=MAX(ABS(HIGH-VAR1),ABS(VAR1-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-VAR1);
VAR4:=(VAR2+VAR3)/VAR1*50;
VAR5:=CROSS(VAR4,3);
VARL1:=(H-L)/L*100;
VARL2:=REF(VARL1,1) ;
VARL3:=REF(VARL1,2);
VARL4:=VARL2-VARL3;
VARL5:=VARL2+VARL4;
VARL6:=(C/REF(C,1)-1)>VARL5 AND MA(CLOSE,20)>REF(MA(CLOSE,20),1);
VARL7:=COUNT(VARL6,5)>0;
VARL8:=REF(COUNT(C>O,3)>=3,1)=0;
VARL9:=COUNT(O=H,5)=0;
回踩彩钻:涨停2 AND VAR5 AND VARL7 AND L*0.99<=EMA(CLOSE,8) AND C/REF(C,1)>1.03 AND VARL8 AND VARL9 AND C>O;
STICKLINE(回踩彩钻=1, 0,10, 0,0),COLORGREEN;
STICKLINE(回踩彩钻=1, 8,10, 3,0),COLORGREEN;
DRAWTEXT(回踩彩钻=1,6,'※回'),COLORGREEN;
DRAWTEXT(回踩彩钻=1,4.5,'★踩'),COLORCYAN;
DRAWTEXT(回踩彩钻=1,3,'※绿'),COLORGREEN;
DRAWTEXT(回踩彩钻=1,1.5,'★钻'),COLORCYAN;
DRAWICON(回踩彩钻=1,8,27);