通达信长短结合指标公式副图源码

[复制链接]
查看44 | 回复0 | 2022-7-24 02:51:40 | 显示全部楼层 |阅读模式

长线操作,结合短期。

R:=4;
 V1:=(C*2+H+L+O)/5; {均价}
V2:=EMA(V1,13)-EMA(V1,34);{MACD.DIFF}
 V3:=EMA(V2,5); {MACD.DEA}
 V4:=(V2-V3)*100; {MACD.MACD}
主力撤:=IF(V4<=0,V4,0){,COLORBLUE个股};
主力进:=IF(V4>=0,V4,0){,COLORFF00FF个股};
V8:=(INDEXC*2+INDEXH+INDEXL+INDEXO)/5;{大盘均价}
V9:=EMA(V8,13)-EMA(V8,34); {INDEX.DIFF}
 VA:=EMA(V9,5); {INDEX.DEA}
 VB:=(V9-VA)/2; {INDEX.MACD}
 V11:=3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1),3,1);{引用个股"KDJ.J"}
 V12:=3*SMA((C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,5,1)-2*SMA(SMA((C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,5,1),3,1);{引用个股"KDJ.J"}
 V13:=3*SMA((C-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100,5,1)-2*SMA(SMA((C-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100,5,1),3,1);{引用个股"KDJ.J"}
阳光:=EMA(V11,3),COLORYELLOW,LINETHICK2;
空气:=EMA(V12,3),COLORDD00FF;
雨露:=EMA(V13,3),COLORWHITE;
 DV11:=3*SMA((INDEXC-LLV(INDEXL,60))/(HHV(INDEXH,60)-LLV(INDEXL,60))*100,5,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,60))/(HHV(INDEXH,60)-LLV(INDEXL,60))*100,5,1),3,1);
自然环境:=EMA(DV11,13),COLORCYAN,LINETHICK2;
稻草人:=空气<=10,LINETHICK0,COLOREECC99;
 {STICKLINE(空气<=10,0,15,3,0),COLOREECC99; }
麦田:=空气<=10 AND (阳光<=10 OR 自然环境<=10),LINETHICK0,COLOR00EEAA;
 {STICKLINE(空气<=10 AND (阳光<=10 OR 自然环境<=10),0,20,2,0),COLOR00EEAA;}
早熟:=空气<=10 AND (阳光<=10 OR 自然环境<=10) AND 雨露<=10,LINETHICK0,COLORMAGENTA;
 {STICKLINE(空气<=10 AND (阳光<=10 OR 自然环境<=10) AND 雨露<=10,0,25,1,0),COLORMAGENTA;}
光合作用:=阳光<=10 AND 空气<=10 AND 自然环境<=10 AND 雨露<=10,LINETHICK0,COLORRED;
 {STICKLINE(阳光<=10 AND 空气<=10 AND 自然环境<=10 AND 雨露<=10,0,30,0.5,0),COLORRED;}
 AA:=FILTER((空气<=10),15);
 XX:IF(FILTER(空气<=10 AND 自然环境<=10,15),50,0) AND BARSCOUNT(C)>150;

1538211697.jpg

1538211697.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则