涨停:=IF((CODELIKE('68') OR (CODELIKE('30') AND DATE>=1200824)),(C>=ZTPRICE(REF(CLOSE,1),0.2) AND C=H) ,(C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H));
龙脉线:=(HHV(HIGH,31)*93)/100;
回归点:=龙脉线>=REF(龙脉线,1) AND REF(龙脉线,1)<REF(龙脉线,2);
龙归:=回归点 AND 涨停 AND REF(COUNT(涨停,3),1)<=1 AND REF(NOT(涨停),1)=1 AND C>龙脉线;
HGT:=BARSLAST(回归点);
龙跃:=涨停 AND C>龙脉线 AND REF(COUNT(涨停 AND C>龙脉线,HGT),1)<1 AND HGT>=1 AND EVERY(龙脉线>=REF(龙脉线,1),HGT) AND REF(COUNT(涨停,3),1)<=1 AND REF(NOT(涨停),1)=1;
龙腾:=涨停 AND C>龙脉线 AND REF(COUNT(涨停,5),1)<=1 AND REF(NOT(涨停),1)=1 AND (((O<REF(龙脉线,1) OR O<龙脉线) AND REF(EVERY(龙脉线=REF(龙脉线,1),5),1) ) OR REF(EVERY(龙脉线=REF(龙脉线,1),13),2));
妖龙:=FILTER(龙归 OR 龙跃 OR 龙腾,5);
STICKLINE(妖龙,0,6,2,0),COLORLIBLUE;
STICKLINE(妖龙,0,4,2,0),COLORYELLOW;
STICKLINE(妖龙,0,2,2,0),COLORRED;