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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信神瀑起伏指标公式源码


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

Y1:=SMA(Abs(L-REF(L,1)),34,1);
Y2:=SMA(MAX(L-REF(L,1),0),34,2);
W:=-(EMA(IF(L<= LLV(L,34),Y1/Y2,-3),9));
A:=-(EMA(IF(L<= LLV(L,8),Y1/Y2,-3),9));
Y3:=SMA(ABS(H-REF(H,1)),34,1);
Y4:=-SMA(MIN(H-REF(H,1),0),34,2);
X:=3-(EMA(IF(H>= HHV(H,34),-Y3/Y4,3),9));
B:=3-(EMA(IF(H>= HHV(H,8),-Y3/Y4,3),9));
STICKLINE(X>3,X,3,3,0),COLORLIBLUE;
STICKLINE(X>10,X,REF(X,1),8,0),COLORBLUE;
STICKLINE(X>0,X,0,1,0),COLORRED;
STICKLINE(X< B,B,X,1,0),COLORYELLOW,LINETHICK1;
STICKLINE(W>A,0,3-A,3,-1),COLORCYAN,LINETHICK1;
STICKLINE(W< 0,0,ABS(W),3,0),COLORMAGENTA;
NOTEXT0:0,COLORWHITE;
DIFL:=EMA(V,12)-EMA(V,26);
DIF:=EMA(C,12)-EMA(C,26);
底BL:=DIFL>REF(DIFL,1) AND DIF< REF(DIF,1);
顶BL:=DIFL< REF(DIFL,1) AND DIF>REF(DIF,1);
DRAWICON(((W< 0 AND W< REF(W,1)) OR (A< 0 AND A< REF(A,1))) AND 底BL,0.1,1);
DRAWICON(((X>0 AND X>REF(X,1)) OR (B>0 AND B>REF(B,1))) AND 顶BL,3,2);
K:="skdj.K";
DRAWICON(((W< 0 AND W< REF(W,1)) OR (A< 0 AND A< REF(A,1))) AND 底BL AND K< 20,-0.2,13);
DRAWICON(((X>0 AND X>REF(X,1)) OR (B>0 AND B>REF(B,1))) AND 顶BL AND K>80,3.2,14);





回复

举报

QQ|

GMT+8, 2024-11-15 19:58

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