【通达信源码分享】潜水蛟龙(副图指标 源码 无未来函数 加用法
2022-10-02未知 编 辑:掌上指标
潜水蛟龙指标 组合了自制CCI 自制KD 和配合20均线的参考副图指标
多空线上代表满足在20均线趋势之上运行 CCI上穿牛下线只代表当天突破20均线而已,未来三天需要连续出三红柱 上涨浪确立 ; CCI下穿牛上线只代表当天跌破20均线而已,未来三天需要连续出三绿柱 下跌浪确立 ;
KD 短线 K值大于45转强 (K值大于80小于93 警惕区K与D画加宽白柱提示) (K值大于93 风险区 当满足条件K>93时,在93和105位置之间画黄柱提示 出现量价顶背离脉冲不板减仓)
当CCI上穿100(加速线) 大家都懂得,不多说,上穿天线看提示标语
在多空线下方与线上反之 线下 不建议大家操作
公式源码:
TYP:=(HIGH+LOW+CLOSE)/3;
{MA20:MA(C,20),COLORMAGENTA,LINETHICK1;}
CCI:(TYP-MA(TYP,20))/(0.025*AVEDEV(TYP,20))COLOR00FFFF,LINETHICK2;
高:150;
强弱:0,COLORWHITE,LINETHICK2;
转强:100,COLORRED,LINETHICK2;
趋势线:CCI,COLORGRAY,LINESTICK,LINETHICK1;
STICKLINE(趋势线>0,趋势线,0,0.01,0),COLORRED;
STICKLINE(趋势线<0,趋势线,0,0.01,0),COLORGREEN;
企稳线:-75,COLORCYAN;
强弱线:75,COLORCYAN;
DRAWICON(CROSS(CCI,企稳线),企稳线,7);
DRAWICON(CROSS(CCI,-100),-100,1);
DRAWICON(CROSS(强弱线,CCI),强弱线,2);
DRAWICON(CROSS(100,CCI),100,8);
DRAWICON(CROSS(150,CCI),150,8);
超卖:-100,COLORGREEN;低:-145;
DRAWTEXT(CURRBARSCOUNT=10,110,'线上关注顶背离'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=10,10,'线上线下看多空(趋势分界点)'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=25,160,'线上不板逢高减,封板继续持有'),COLORWHITE;
A:STICKLINE(趋势线>REF(趋势线,1) AND 趋势线<0,-22,趋势线,0.2,0),COLORWHITE;
B:STICKLINE(趋势线>REF(趋势线,1) AND 趋势线>0,22,趋势线,0.2,0),COLORRED;
CC:STICKLINE(趋势线<REF(趋势线,1) AND 趋势线>0,22,趋势线,0.2,0),COLORYELLOW;
D:STICKLINE(趋势线<REF(趋势线,1) AND 趋势线<0,-22,趋势线,0.2,0),COLORGREEN;
牛上线:22,COLORYELLOW,DOTLINE;
牛下线:-22,COLORYELLOW,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,22,'牛上线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,-22,'牛下线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=10,-110,'线下关注底背离'),COLORGREEN,LINETHICK2;
IF(CCI<0,CCI,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWTEXT(CCI>100,CCI,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=1,0,'多空线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,100,'加速线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,-100,'止跌线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,150,'天 线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,-145,'地 线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,75,'强弱线'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,-75,'企稳线'),COLORWHITE;
N:=7;M1:=2;M2:=2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORRED,LINETHICK2;
DJ:SMA(K,M2,1),LINETHICK2;IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK2;
45,COLORWHITE;
IF(DJ<REF(DJ,1),DJ,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(K>80 AND K<90,K,DJ,2,0),COLORWHITE;
STICKLINE(K>93, 93,105,3,0),COLORYELLOW;