主力监控 主力进场副图公式 选股公式

[复制链接]
查看48 | 回复0 | 2022-7-24 05:55:41 | 显示全部楼层 |阅读模式

主力监控 主力进场副图公式

源码如下:
{主力监控}
N1:=9;N2:=5;
 MTM:=C-REF(C,1);
主力轨迹:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;
 MAZL:MA(主力轨迹,N2),COLORYELLOW;
 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);
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
 STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
 STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
 STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;
 STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
 STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
 STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
 STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
 STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
 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),COLOR005555;
 STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.6,0),COLOR007777;
 STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.1,0),COLOR009999;
 STICKLINE(VAR51<REF(VAR51,1),0,VAR51,1.5,0),COLOR11BBBB;
 STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.9,0),COLOR33DDDD;
 STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.3,0),COLOR55FFFF;
出货:IF(VAR51>REF(VAR51,1),VAR51,0),COLORWHITE,NODRAW;
 STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0),COLOR555555;
 STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.6,0),COLOR777777;
 STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.1,0),COLOR999999;
 STICKLINE(VAR51>REF(VAR51,1),0,VAR51,1.5,0),COLORBBBBBB;
 STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.9,0),COLORDDDDDD;
 STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.3,0),COLORFFFFFF;

 

722588955.jpg

722588955.jpg

选股公式

N1:=9;N2:=5;
 MTM:=C-REF(C,1);
主力轨迹:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
 MAZL:=MA(主力轨迹,N2);
 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);
主力进场:=IF(VAR5>REF(VAR5,1),VAR5,0);
 xg:主力进场>0;
 {这个选出来的太多,而且效果不好,我觉得改成下面这个更好xg: COUNT(主力进场>10,3)>=2 AND 主力进场>20;}

 

回复

使用道具 举报

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

本版积分规则