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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 「指标」综合优化的九全指标-(源码)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-12 17:51:31
【资料名称】:综合优化的九全指标-(源码)介绍
【资料描述】:

综合优化的九全指标-(源码)

通达信的六全指标我经过优化,增加到了九全,增加金叉共振点的提示,图中的红色图标就金叉向上的,绿色图标是死叉向下的,十字星图标是金叉点的指示,

附上源码,


WJ:=(HIGH+LOW+CLOSE)/3;
V1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
V2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
V3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
V4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
V5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
RT:=(V9+V8)/1000,COLORYELLOW,NODRAW;
TRE:=-(V6+V7)/1000,COLORRED,NODRAW;
RRT:=((V9+V8)-(V6+V7))/1000,COLORYELLOW,NODRAW;
TTR:=SUM(RRT,3),COLORYELLOW,NODRAW;
DG1:=(CROSS(TTR,0));
DRAWICON(TTR>0,0.2,1);
DRAWICON(CROSS(TTR,0),0.2,23);
DRAWICON(TTR<0,0.2,2);
DRAWTEXT(ISLASTBAR=1,IF(TTR>=0,0.2,0.2),'--VOL'),COLORCYAN;

MTM:=CLOSE-REF(CLOSE,12);
MAMTM:=MA(MTM,6);
DRAWICON(MTM>MAMTM,1.2,1);
DRAWICON(CROSS(MTM,MAMTM),1.2,23);
DRAWICON(MTM<MAMTM,1.2,2);
DRAWTEXT(ISLASTBAR=1,IF(MTM>=0,1.2,1.2),'--MTM'),COLORCYAN;
MTM叉:MTM>MAMTM,POINTDOT;

RSV1:=-(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;
LWR1:=SMA(RSV1,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1>LWR2,2.2,1);
DRAWICON(CROSS(LWR1,LWR2),2.2,23);
DRAWICON(LWR1<LWR2,2.2,2);
DRAWTEXT(ISLASTBAR=1,IF(LWR1>=0,2.2,2.2),'--LWR'),COLORCYAN;
LWR叉:LWR1>LWR2,POINTDOT;

BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
DRAWICON(CLOSE>BBI,3.2,1);
DRAWICON(CROSS(CLOSE,BBI),3.2,23);
DRAWICON(CLOSE<BBI,3.2,2);
DRAWTEXT(ISLASTBAR=1,IF(BBI>=0,3.2,3.2),'--BBI'),COLORCYAN;
BBI金叉:CLOSE>BBI,POINTDOT;


TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),3);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),3);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),3);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
DRAWICON(PDI>MDI,4.2,1);
DRAWICON(CROSS(PDI,MDI),4.2,23);
DRAWICON(PDI<MDI,4.2,2);
DRAWTEXT(ISLASTBAR=1,IF(PDI>=0,4.2,4.2),'--DMI'),COLORCYAN;
DMI叉:PDI>MDI,POINTDOT;

LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),12,1))/(SMA(ABS(CLOSE-LC),12,1))*100;
DRAWICON(RSI1>RSI2,5.2,1);
DRAWICON(CROSS(RSI1,RSI2),5.2,23);
DRAWICON(RSI1<RSI2,5.2,2);
DRAWTEXT(ISLASTBAR=1,IF(RSI1>=0,5.2,5.2),'--RSI'),COLORCYAN;
RSI叉:RSI1>RSI2,POINTDOT;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DRAWICON(K>D,6.2,1);
DRAWICON(CROSS(K,D),6.2,23);
DRAWICON(K<D,6.2,2);
DRAWTEXT(ISLASTBAR=1,IF(RSV>=0,6.2,6.2),'--KDJ'),COLORCYAN;
KDJ叉:K>D,POINTDOT;

DIFF:=EMA(CLOSE,6)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
DRAWICON(DIFF>DEA,7.2,1);
DRAWICON(CROSS(DIFF,DEA),7.2,23);
DRAWICON(DIFF<DEA,7.2,2);
DRAWTEXT(ISLASTBAR=1,IF(DIFF>=0,7.2,7.2),'--MACD'),COLORCYAN;
MCDA叉:DIFF>DEA,POINTDOT;


MA1:=MA(C,5)-MA(C,13)+MA(C,3),COLORLIGREEN;
MA2:=MA(C,5)-MA(C,13)+MA(C,8),COLORLIGREEN;
DRAWICON(MA1>MA2,8.2,1);
DRAWICON(CROSS(MA1,MA2),8.2,23);
DRAWICON(MA1<MA2,8.2,2);
DRAWTEXT(ISLASTBAR=1,IF(MA1>=0,8.2,8.2),'--MA'),COLORCYAN;
MA叉:MA1>MA2,POINTDOT;

9.2,POINTDOT;
 





gd6870


【下载地址隐藏】:                    点:回复可见地址
游客,如果您要查看本帖隐藏内容请回复


回复

举报

QQ|

GMT+8, 2024-11-16 13:36

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