通达信妖龙主图指标 龙归、龙跃、龙腾三合一 源码附图
通达信妖龙主图指标 龙归、龙跃、龙腾三合一,涨停突破龙启线易出妖股
DRAWGBK(C>0, RGB(20,10,60),RGB(350,60,150),0,'1',0);
DRAWKLINE(H,O,L,C);
涨停:=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));
STICKLINE(涨停,O,(C-O)*0.333+O,2,0),COLORLIBLUE;
STICKLINE(涨停,(C-O)*0.333+O,(C-O)*0.667+O,2,0),COLORYELLOW;
STICKLINE(涨停,(C-O)*0.667+O,C,2,0),COLORRED;
ZTT:=BARSLAST(涨停);
STICKLINE(C<O AND C<=REF(O,ZTT) AND ZTT<=7,O,C,1.8,0),COLORBLUE;
涨停参考价:IF(CODELIKE('68') OR CODELIKE('30'),ZTPRICE(REF(CLOSE,1),0.2),ZTPRICE(REF(CLOSE,1),0.1))NODRAW,COLORRED;
明日涨停价:IF(CODELIKE('68') OR CODELIKE('30'),ZTPRICE(C,0.2),ZTPRICE(C,0.1))NODRAW,COLORLIRED;
龙启线:(HHV(HIGH,31)*92)/100,LINETHICK3,COLORYELLOW;
D点:=龙启线>=REF(龙启线,1) AND REF(龙启线,1)<REF(龙启线,2);
龙归:=D点 AND 涨停 AND REF(COUNT(涨停,3),1)<=1 AND REF(NOT(涨停),1)=1 AND C>龙启线;
HGT:=BARSLAST(D点);
龙跃:=涨停 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))
AND REF(LLV(C,5),1)<REF(HHV(C,44),5);
妖龙A:=FILTER(龙归 OR 龙跃 OR 龙腾,8);
DRAWTEXT(妖龙A,L*0.99,'妖龙'),COLORLIGRAY;