顺势而为+量柱+选股预警公式

[复制链接]
查看35 | 回复0 | 2022-7-24 06:46:04 | 显示全部楼层 |阅读模式

顺势而为码源如下

DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
 DEA  :=EMA(DIFF,9);
 MACD :=2*(DIFF-DEA);
绿柱消失买入:STICKLINE(DIFF<0,0,DIFF,2,0),COLOR00FF00;
红柱消失卖出:STICKLINE(DIFF>=0,0,DIFF,2,0),COLORRED;
 STICKLINE(DEA>=0,0,DEA,2,0),COLORBLUE;
 STICKLINE(DEA<0,0,DEA,2,0),COLORYELLOW;
 DRAWICON(CROSS(DIFF,DEA),DEA*1.1,1);
 DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);
强1:IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED,LINETHICK2;
强2:IF(DEA<DIFF,DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")
 &&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;
 DRAWTEXT(ABS(抄底)>0,抄底,' 抄底'),COLORRED;
 DRAWICON(ABS(抄底)>0,抄底,9);

 

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

量柱码源如下:

VOLUME:=VOL;

量柱:V/CAPITAL*100,VOLSTICK;

倍量柱:=IF(V/REF(V,1)>1.9 AND C>REF(C,1),1,0);

高量柱:=IF(V=HHV(V,10),3,2);

低量柱:=IF(V=LLV(V,10),9,8);

并肩平量柱:=IF((V/REF(V,1)>0.95 AND V/REF(V,1)<1.05),7,6);

缩量柱:=IF(V<REF(V,1) AND REF(V,1)<REF(V,2) AND REF(V,2)<REF(V,3),25,35);

梯量柱:=IF(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3),11,10);

 DRAWTEXT(倍量柱>0,量柱*0.99,'倍');

DRAWTEXT(高量柱>2,量柱*0.85,'高');

DRAWTEXT(并肩平量柱>6,量柱*0.7,'平');

DRAWTEXT(梯量柱>10,量柱*0.55,'梯');

DRAWTEXT(低量柱>8,量柱*1.01,'低'),COLORYELLOW;

 DRAWTEXT(缩量柱<35,量柱*1.01,'缩'),COLORYELLOW;
 

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

选股预警

DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
 DEA  :=EMA(DIFF,9);
 MACD :=2*(DIFF-DEA);

红箭:=CROSS(DIFF,DEA);

 VOLUME:=VOL;

量柱:=V/CAPITAL*100;

倍量柱:=IF(V/REF(V,1)>1.9 AND C>REF(C,1),1,0);

高量柱:=IF(V=HHV(V,10),3,2);

低量柱:=IF(V=LLV(V,10),9,8);

并肩平量柱:=IF((V/REF(V,1)>0.95 AND V/REF(V,1)<1.05),7,6);

缩量柱:=IF(V<REF(V,1) AND REF(V,1)<REF(V,2) AND REF(V,2)<REF(V,3),25,35);

梯量柱:=IF(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3),11,10);
倍高:=倍量柱 AND 高量柱;
高梯:=高量柱 AND 梯量柱;

XG:红箭 AND (倍高 OR 高梯);

75522719.jpg

75522719.jpg

 

回复

使用道具 举报

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

本版积分规则