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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信操盘一号指标公式源码


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

{指标介绍:当操作线上穿多空线就形成了介入金叉,重点关注的是股价处于盘整期间或是多头平台回调后形成的金叉,这种情况下形成的金叉一般上涨。}

GX1:=100*(CLOSE-MA(CLOSE,20)),COLORMAGENTA,LINETHICK2;
GX2:=EXPMEMA(GX1,6),COLORYELLOW,LINETHICK2;
GX3:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
GX4:=MA(GX3,6);
GX5:=100*(C-REF(C,1))/REF(C,1);
GX6:=IF(C<REF(O,1) AND GX5<0,1,0);
GX7:=IF(C<REF(O,2) AND GX5<0,1,0);
GX8:=IF(GX6=0 AND REF(GX6,1)=1 AND GX7=0 AND REF(GX7,1)=1,1,0);
GX9:=-100*(HHV(HIGH,84)-CLOSE)/(HHV(HIGH,84)-LLV(LOW,84));
GX10:=crOSS(GX1,GX2) AND GX8 AND REF(EVERY(C<O,3),1) AND REF((GX9<-98)*50,1);
GX11:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(GX11,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
GX12:=LLV(J,2)=LLV(J,8);
GX13:=CROSS(J,REF(J+0.01,1)) AND GX12 AND J<20 AND REF((GX9<-98)*50,1) AND REF(EVERY(C<O,3),1);
GX14:=100*(C-REF(C,1))/REF(C,1);
GX15:=IF(C<REF(O,1) AND GX14<0,1,0);
GX16:=IF(C<REF(O,2) AND GX14<0,1,0);
GX17:=GX15=0 AND REF(GX15,1)=1 AND GX16=0 AND REF(GX16,1)=1;
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(Abs(CLOSE-VAR1),7,1)*100;
VAR3:=FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5);
VAR4:=MA((2*C+H+L)/4,5);
VAR5:=VAR4*(200-102)/100;
VAR6:=(1-7/100)*DMA(C,ABS((2*C+H+L)/4-MA(C,20))/MA(C,20));
VAR7:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
VAR8:=3*SMA(VAR7,3,1)-2*SMA(SMA(VAR7,3,1),3,1);
VAR9:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));
VAR10:=VAR5<VAR6 AND VAR8>REF(VAR8,1) AND REF(VAR8,1)<REF(VAR8,2) AND VAR9<-100
AND VAR9>REF(VAR9,1);
A1:=VAR3 AND VAR10;
A2:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
A3:=DMA(CLOSE,A2);
B1:=(1-14/100)*A3;
B2:=BETWEEN(C,B1*0.98,B1*1.01);
B3:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;
C1:=CROSS(-27,B3) AND COUNT(H=L,5)<1;
C2:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
C3:=CROSS(-20,C2);
D1:=(2*CLOSE+HIGH+LOW)/4;
D2:=EMA(EMA(EMA(D1,4),4),4);
量能:(D2-REF(D2,1))/REF(D2,1)*100,COLORSTICK;
多空线:MA(量能,3),COLORWHITE,LINETHICK2;
操作线:MA(量能,1),COLORYELLOW,LINETHICK2;





回复

举报

QQ|

GMT+8, 2024-11-17 00:24

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