股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信寻找下影线战法副图指标 黄钻信号源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-3 22:51:53

以下是通达信寻找下影线战法副图指标 黄钻信号源码

{参数}N2:=22;N3:=55;N1:=0.20;NX:=3;NS:=4;
成交额:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成交额,0,-1,-1),COLOR00C0C0;
虚拟额:VOL,VOLSTICK;
TA:=(C-REF(C,30))/REF(C,30);
STICKLINE(VOL=LLV(VOL,N2),0,V,3,0),COLOR000099;
STICKLINE(VOL=LLV(VOL,N2),0,V,2.5,0),COLOR0000CC;
STICKLINE(VOL=LLV(VOL,N2),0,V,1.5,0),COLORRED;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA>=N1,0,V,3,0),COLOR002933;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA>=N1,0,V,2.5,0),COLOR008433;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA>=N1,0,V,1.5,0),COLOR00B233;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA>=N1,0,V,0.5,0),COLOR00E033;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA<N1,0,V,3,0),COLOR11008B;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA<N1,0,V,2.5,0),COLOR55008B;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA<N1,0,V,1.5,0),COLORAA008B;
STICKLINE(VOL=HHV(V,N3) AND C=HHV(C,N2) AND TA<N1,0,V,0.5,0),COLORBLUE;

昨日换手:REF(V/CAPITAL*100,1),NODRAW,COLORWHITE;
当天换手:V/CAPITAL*100,NODRAW,COLORWHITE;
平均换手:MA(当天换手,180),NODRAW;
月总换手:SUM(当天换手,21),NODRAW,COLORRED;
FJ1:=1;FJ2:=2;FJ3:=3;FJ4:=5;FJ5:=8;FJ6:=15;FJ7:=25;
HS:=DYNAINFO(37)*100;
DRAWTEXT(HS<FJ1 AND ISLASTBAR,V,'地量'),COLORYELLOW;
DRAWTEXT(HS<FJ2 AND HS>=FJ1 AND ISLASTBAR,V,'低靡'),COLORMAGENTA;
DRAWTEXT(HS<FJ3 AND HS>=FJ2 AND ISLASTBAR,V,'温和'),COLORYELLOW;
DRAWTEXT(HS<FJ4 AND HS>=FJ3 AND ISLASTBAR,V,'活跃'),COLORRED;
DRAWTEXT(HS<FJ5 AND HS>=FJ4 AND ISLASTBAR,V,'带量'),COLORGREEN;
DRAWTEXT(HS<FJ6 AND HS>=FJ5 AND ISLASTBAR,V,'放量'),COLORMAGENTA;
DRAWTEXT(HS<FJ7 AND HS>=FJ6 AND ISLASTBAR,V,'巨量'),COLORGREEN;
DRAWTEXT(HS<100 AND HS>=FJ7 AND ISLASTBAR,V,'怪异'),COLORYELLOW;

{寻找下影线战法}
Y1:=(MAX(O,C)-MIN(O,C))/MIN(O,C)*100;{涨幅}
Y2:=(MIN(O,C)-L)/L*100;{下影}
Y3:=(H-MAX(O,C))/MAX(O,C)*100;{上影}
XY:= Y2>Y1*1.5 AND Y2>Y3*2 AND (H-L)/L*100>=3 AND Y2>=NX;
DRAWICON(XY,V,26);{金钻};
{长上影抛出};
SY:= Y3>Y1*1.5 AND Y3>Y2*2 AND (H-L)/L*100>=3 AND Y3>=NS AND H>=HHV(H,22);
DRAWICON(SY,V,15);






回复

举报

QQ|

GMT+8, 2024-11-24 04:09

快速回复 返回顶部 返回列表