胡胡胡美丽_ss 发表于 2023-4-21 19:44:56

通达信指标公式源码资金进出趋势爆发副图指标




M:=10;

A:=VOL*C;

B:=SUM(A,1)/SUM(VOL,1);

B1:=EMA(B,17);

资金:=(B-B1)*100/B;

DIFF:EMA(资金,12)-EMA(资金,26),COLORYELLOW;

DEA:EMA(DIFF,9),COLORLIGRAY;

资金进出: 2*(DIFF-DEA), COLORSTICK;

STICKLINE(资金进出>=REF(资金进出,1)AND 资金进出>0,0,资金进出,3,0),COLOR0000AA;

STICKLINE(资金进出>=REF(资金进出,1)AND 资金进出>0,0,资金进出,2,0),COLOR0000CC;

STICKLINE(资金进出>=REF(资金进出,1)AND 资金进出>0,0,资金进出,1,0),COLOR0000EE;

STICKLINE(资金进出>=REF(资金进出,1)AND 资金进出>0,0,资金进出,0.1,0),COLOR5555FF;

STICKLINE(资金进出>=REF(资金进出,1)AND 资金进出>0,0,资金进出,0,0),COLOR8080FF;

STICKLINE(资金进出0,0,资金进出,3,0),COLOR770077;

STICKLINE(资金进出0,0,资金进出,2,0),COLOR990099;

STICKLINE(资金进出0,0,资金进出,1,0),COLORBB00BB;

STICKLINE(资金进出0,0,资金进出,0,0),COLORDD00DD;

STICKLINE(资金进出0,0,资金进出,0.1,0),COLORFF00FF;

STICKLINE(资金进出>REF(资金进出,1)AND 资金进出>0,0,资金进出,3,0),COLORFF0000;

STICKLINE(资金进出>REF(资金进出,1)AND 资金进出<0,0,资金进出,2,0),COLORFF5500;

STICKLINE(资金进出>REF(资金进出,1)AND 资金进出<0,0,资金进出,1,0),COLORFF9900;

STICKLINE(资金进出>REF(资金进出,1)AND 资金进出<0,0,资金进出,0,0),COLORFFFF00;

STICKLINE(资金进出<=REF(资金进出,1)AND 资金进出<0,0,资金进出,3,0),COLOR155500;

STICKLINE(资金进出<=REF(资金进出,1)AND 资金进出<0,0,资金进出,2,0),COLOR208000;

STICKLINE(资金进出<=REF(资金进出,1)AND 资金进出<0,0,资金进出,1,0),COLOR2BAA00;

STICKLINE(资金进出<=REF(资金进出,1)AND 资金进出<0,0,资金进出,0.1,0),COLOR35D500;

STICKLINE(资金进出<=REF(资金进出,1)AND 资金进出<0,0,资金进出,0,0),COLOR40FF00;

M1:=EMA(CLOSE,13);

M2:=EMA(CLOSE,21);

趋势爆发线:(M1-M2)/M2*100,COLORYELLOW;

轴:(M1-M1),COLORRED;

DRAWICON(CROSS(趋势爆发线,轴),轴,1);

IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;

IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;

IF(DIFF
IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;

STICKLINE(低位金叉,0,-4.5,2,0),COLORYELLOW;

DRAWTEXT(低位金叉,-4,' 低位金叉'),COLORYELLOW;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

STICKLINE(二次金叉,0,-2.5,5,0),COLORFF00FF;

DRAWTEXT(二次金叉,-2,' 二次金叉'),COLORFF00FF;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

STICKLINE(底背离,0,2.5,3,0),COLOR00FF00;

DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;

DRAWTEXT(底背离,2,' 底背离'),COLOR00FF00;

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);

STICKLINE(顶背离,0,4.5,3,0),COLORFFFF00;

DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFFFF00,LINETHICK2;

DRAWTEXT(顶背离,4,' 顶背离'),COLORFFFF00;

风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。


不败战神豪大大 发表于 2023-4-22 11:12:18

一切尽在不言中,谢谢!

响水西门町 发表于 2023-4-23 09:04:04

一切尽在不言中,谢谢!

海浪805 发表于 2023-5-7 04:37:14

顶贴光荣!

梦的衣裳323 发表于 2023-5-8 10:23:16

找了很久了,多谢!

故意用马甲鹊 发表于 2023-6-3 20:19:41

找到好贴不容易,我顶你了,谢了

极品小处男处v 发表于 2023-7-3 18:50:35

没看完~~~~~~ 先顶,好同志

一一旖旎 发表于 2023-7-11 17:06:42

点赞楼主!

p1p1ABC 发表于 2023-7-16 03:52:12

不容易啊!好东西!

我只欣赏你伪 发表于 2023-7-29 21:14:39

帮顶!
页: [1] 2
查看完整版本: 通达信指标公式源码资金进出趋势爆发副图指标