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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信六脉神剑3.0指标公式源码


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

DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13); DEA:=EMA(DIFF,5); DRAWICON(DIFF>DEA,1,1); DRAWICON(DIFF< DEA,1,2); DRAWTEXT(ISLASTBAR=1,1,'.macd'),COLORFFFFFF; ABC1:=DIFF>DEA; XX:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; K:=SMA(XX,3,1); D:=SMA(K,3,1); DRAWICON(K>D,2,1); DRAWICON(K< D,2,2); DRAWTEXT(ISLASTBAR=1,2,'.kdj'),COLORFFFFFF; ABC2:=K>D; GSKZZB:=REF(CLOSE,1); rsi1:=(SMA(MAX(CLOSE-GSKZZB,0),5,1))/(SMA(Abs(CLOSE-GSKZZB),5,1))*100; RSI2:=(SMA(MAX(CLOSE-GSKZZB,0),13,1))/(SMA(ABS(CLOSE-GSKZZB),13,1))*100; DRAWICON(RSI1>RSI2,3,1); DRAWICON(RSI1< RSI2,3,2); DRAWTEXT(ISLASTBAR=1,3,'. RSI'),COLORFFFFFF; ABC3:=RSI1>RSI2; XXX:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100; Lwr1:=SMA(XXX,3,1); LWR2:=SMA(LWR1,3,1); DRAWICON(LWR1>LWR2,4,1); DRAWICON(LWR1< LWR2,4,2); DRAWTEXT(ISLASTBAR=1,4,'. LWR'),COLORFFFFFF; ABC4:=LWR1>LWR2; bbi:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13))/4; DRAWICON(CLOSE>BBI,5,1); DRAWICON(CLOSE< BBI,5,2); DRAWTEXT(ISLASTBAR=1,5,'. BBI'),COLORFFFFFF; ABC10:=7; ABC5:=CLOSE>BBI; GSK:=CLOSE-REF(CLOSE,1); mms:=100*EMA(EMA(GSK,5),3)/EMA(EMA(ABS(GSK),5),3); GSKZ:=100*EMA(EMA(GSK,13),8)/EMA(EMA(ABS(GSK),13),8); DRAWICON(MMS>GSKZ,6,1); DRAWICON(MMS< GSKZ,6,2); DRAWTEXT(ISLASTBAR=1,6,'. ZLMM'),COLORFFFFFF; ABC6:=MMS>GSKZ; 买入:IF(ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6=1 AND REF(ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6,1)=0,6,0),COLORYELLOW,LINETHICK2; 持有:IF(ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6,6,0),COLORMAGENTA,LINETHICK2; 共振:=ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6 ; STICKLINE(共振,0,6,0.6,1),COLORMAGENTA; STICKLINE(买入,0,6,0.6,0),COLORYELLOW; DRAWICON(DIFF>DEA,1,1); DRAWICON(DIFF< DEA,1,2); DRAWICON(K>D,2,1); DRAWICON(K< D,2,2); DRAWICON(RSI1>RSI2,3,1); DRAWICON(RSI1< RSI2,3,2); DRAWICON(LWR1>LWR2,4,1); DRAWICON(LWR1< LWR2,4,2); DRAWICON(CLOSE>BBI,5,1); DRAWICON(CLOSE< BBI,5,2); DRAWICON(MMS>GSKZ,6,1); DRAWICON(MMS< GSKZ,6,2); DRAWICON(买入,6.6,9);








回复

举报

QQ|

GMT+8, 2024-11-16 10:04

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