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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信共振点出击源码!(源码副图 贴图 无未来)


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

以下是通达信共振点出击源码!(源码副图 贴图 无未来)

依然放送源码!看图,自己理解!
N:=5; N1:=21;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;
VARO1:=LLV(LOW,27);
VARO2:=HHV(HIGH,34);
CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;
CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));
CD3:=SMA(SMA(CD2,3,1),3,1);
CD4:=(CD3-SMA(CD1,9,1))-0.5;
CD5:=IF(CD4>0.00,CD4,0.00);
CD6:=REF(CD5,1);
VAR81:=MA(C,9),COLORRED;
VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2A:=SMA(VAR1A,9,1)+100;
VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4A:=SMA(VAR3A,3,1);
VAR5A:=SMA(VAR4A,3,1)+100;
VAR6A:=VAR5A-VAR2A;
出击1:=IF(VAR6A>N1,VAR6A-N1,0),COLORLIRED;
出击:IF(CROSS(出击1,0.01),60,0),COLOR0000CC,COLORCYAN;
DRAWICON(出击>0,63,26),COLORCYAN;
DRAWTEXT(出击,78,'出击'),COLORCYAN;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
共振2号:=3*VAR300-2*VAR400;
A1:=CROSS(共振2号,VAR300) AND VAR300<2.1 AND C>O;
STICKLINE(A1,30,0,4,0),COLOR00FFFF;
STICKLINE(A1,30,0,3,0),COLORFFFF00;
STICKLINE(A1,30,0,4,0),COLOR00FFFF;
STICKLINE(A1,30,0,2,0),COLOR0099FF;
STICKLINE(A1,30,0,1,0),COLOR0000FF;
DRAWTEXT(A1,43,'共振2号'),COLORYELLOW;
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);
J1:=IF(CLOSE>QJ,VOL,0);
J2:=IF(CLOSE<QJ,VOL,0);
VAR44:=SMA(RV,3,1);
VAR55:=SMA(VAR44,3,1);
KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;
DD:=SMA(KK,3,1),COLOR00FFFF;
DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),51,'共振1号'),COLOR00FFFF,COLORLIBLUE;
共振1号:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));
STICKLINE(共振1号>0,0,40,2,0),COLOR33FF33;
STICKLINE(共振1号>0,0,40,1.5,0),COLORFF6633;
STICKLINE(共振1号>0,0,40,0.8,0),COLORFFCC33;
STICKLINE(共振1号>0,0,40,0.3,0),COLORFF0066;








回复

举报

QQ|

GMT+8, 2024-11-17 03:53

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