beyond202104 发表于 2023-8-28 16:33:48

【通达信源码分享】主力清洗-显示主力从吸货到出货的指标


公式源码:



VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);



VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);



VAR3:=EMA(VAR2,10);



VAR4:=LLV(LOW,33);



VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);



Z:0,COLORBLACK;



主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;



洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;



STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR0000FF;



STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR00FF80;



DRAWTEXT_FIX(1,0.8,0.05,0,'当出现红色的时候不买'),COLORLIMAGENTA,LINETHICK1;



DRAWTEXT_FIX(1,0.8,0.15,0,'在出现绿色的时候买进'),COLORYELLOW,LINETHICK1;



VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);



VAR31:=EMA(VAR21,10);



VAR41:=HHV(HIGH,33);



VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);



主力拉高:IF(VAR51<REF(VAR51,1),VAR51,0),COLORYELLOW,NODRAW;



STICKLINE(VAR51<REF(VAR51,1),0,VAR51,3,0),COLORYELLOW;



出货:IF(VAR51>REF(VAR51,1),VAR51,0),COLORCYAN,NODRAW;



STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLORCYAN;


金光2017 发表于 2023-9-30 01:59:28

很好的东东

123458015 发表于 2023-12-16 20:07:53

感谢感谢!楼主功德无量,哈哈!

薛建朝 发表于 2023-12-20 05:20:25

感谢分享优质资源

又说街兵婚 发表于 2024-3-31 21:36:03

路过,支持一下啦
页: [1]
查看完整版本: 【通达信源码分享】主力清洗-显示主力从吸货到出货的指标