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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 通达信变色点指标公式源码副图


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

DX:=(C+H+L+O)/4; 短线:(MA(DX,1)+MA(DX,3)+MA(DX,5))/3,COLORFFFFFF; mtm:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTM,6),6)/EMA(EMA(Abs(MTM),6),6); FB:=MA(DX,17)+ABS(MA(DX,17)-REF(MA(DX,17),1)); FS:=MA(DX,17)+MA(DX,17)-REF(MA(DX,17),1); 搏杀线:IF(MA(DX,17)<FS,FS,MA(DX,17)),LINETHICK2,COLOR000FFF; IF(FB>FS,搏杀线,DRAWNULL),COLOR00FF00; DRAWBAND(FS,FB>FS,FB,RGB(0,250,0)); UPPER:= 搏杀线 + 2*STD(CLOSE,20); 买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) ANDcrOSS(ZLGJ,MA(ZLGJ,2)),1,0); 卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0); RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; BDGD:=HHV(J,2)=HHV(J,8) AND J>80; 注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0); A:=(3*C+L+O+H)/6; BB:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6) +13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; 生死线:EMA(BB,90),LINETHICK1,COLORYELLOW; 价涨量缩:DRAWICON(FILTER(REF(V,3)>REF(V,2)*1.1 AND REF(V,2)>=REF(V,1)*1.1 AND REF(V,1)<=V AND L>REF(L,3) AND REF(C,3)>REF(O,3) AND REF(L,1)>REF(LOW,3),5),L,1); VAR1:=MA((vol-REF(VOL,1))/REF(VOL,1),5); VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; MY:=VAR2*(1+VAR1); SHT:= MY; SHTMA:= MA(SHT,5); IF(SHTMA>=MY,短线,DRAWNULL),COLOR00FF00; IF(SHTMA<=MY,短线,DRAWNULL),COLORAA00FF;








回复

举报

QQ|

GMT+8, 2024-11-16 08:07

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