通达信妖龙主图指标 龙归、龙跃、龙腾三合一选股 源码附图
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;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
填充背景(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(1日前的收盘价,0.2) AND C=H) ,(C>=ZTPRICE(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),画黄色
STICKLINE(涨停,(C-O)*0.667+O,C,2,0),画红色
ZTT赋值:上次涨停距今天数
STICKLINE(C涨停参考价:IF(CODELIKE('68') OR CODELIKE('30'),ZTPRICE(1日前的收盘价,0.2),ZTPRICE(1日前的收盘价,0.1))NODRAW,画红色
明日涨停价:IF(CODELIKE('68') OR CODELIKE('30'),ZTPRICE(C,0.2),ZTPRICE(C,0.1))NODRAW,COLORLIRED
输出龙启线:(31日内最高价最高值*92)/100, 线宽为3,画黄色
D点赋值:龙启线>=1日前的龙启线 AND 1日前的龙启线<2日前的龙启线
龙归赋值:D点 AND 涨停 AND 1日前的统计3日满足涨停的天数<=1 AND REF(NOT(涨停),1)=1 AND C>龙启线
HGT赋值:上次D点距今天数
龙跃赋值:涨停 AND C>龙启线 AND 1日前的统计HGT日满足涨停 AND C>龙启线的天数<1 AND HGT>=1 AND EVERY(龙启线>=1日前的龙启线,HGT) AND 1日前的统计3日满足涨停的天数<=1 AND REF(NOT(涨停),1)=1
龙腾赋值:涨停 AND C>龙启线 AND 1日前的统计5日满足涨停的天数<=1 AND REF(NOT(涨停),1)=1 AND (((O[妖龙A赋值:龙归 OR 龙跃 OR 龙腾的8过滤]
当满足条件妖龙A时,在L*0.99和'妖龙'位置书写文字