《黑马》指标编上选股

[复制链接]
查看38 | 回复0 | 2022-7-24 07:25:19 | 显示全部楼层 |阅读模式

黑马源码

VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA((CLOSE-VAR2),16,1)/SMA(ABS(CLOSE-VAR2),16,1)*100;
VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5);
VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);
VAR7:=SMA(MAX(CLOSE-REF(C,1),0),11,1)/SMA(ABS(CLOSE-REF(C,1)),11,1)*100;
VAR8:=SMA(MAX(VAR1-VAR2,0),15,1)/SMA(ABS(VAR1-VAR2),15,1)*100;
VAR9:=IF(COUNT(VAR8<20,8)>=1 AND COUNT(VAR1=LLV(VAR1,15),15)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWICON(FILTER(REF(VAR3,1)>92 AND VAR3<82 OR CROSS(88,VAR7),8),HIGH,9);
DRAWTEXT(FILTER(VAR9 OR VAR6,6),LOW,'黑马'),COLOR0000FF;

================================================================

选股指标

VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA((CLOSE-VAR2),16,1)/SMA(ABS(CLOSE-VAR2),16,1)*100;
VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5);
VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);
VAR7:=SMA(MAX(CLOSE-REF(C,1),0),11,1)/SMA(ABS(CLOSE-REF(C,1)),11,1)*100;
VAR8:=SMA(MAX(VAR1-VAR2,0),15,1)/SMA(ABS(VAR1-VAR2),15,1)*100;
VAR9:=IF(COUNT(VAR8<20,8)>=1 AND COUNT(VAR1=LLV(VAR1,15),15)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);

FILTER(VAR9 OR VAR6,6);

 

回复

使用道具 举报

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

本版积分规则