公式如下:
MA60:MA(C,60);CAT3:=LLV(HIGH,240);CAT4:=100*(CLOSE-CAT3)/CAT3;CAT5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;CAT6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;DRAWGBK(C>0,RGB(0,0,0),RGB(00,0,0),0,'EM',0);DRAWKLINE(H,O,L,C);CAT8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;CAT9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;CAT10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);CAT11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);CAT12:=ZIG(3,6)[=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);CAT13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);CAT14:=ZIG(3,22)][=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);CAT15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);CAT16:=ZIG(3,51)][=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);CAT17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);CAT18:=ZIG(3,72)][=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);CAT19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=CAT10;买2:=(CAT11+CAT13+CAT15+CAT17);DRAWTEXT_FIX(C>O,0.01,0.98,0,'微信公众号:彩虹桥投资学习'),COLORRED;卖1:=(CAT12+CAT14+CAT16+CAT18);B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'试仓'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;DRAWTEXT(卖1>0,HIGH*1.02,'出货'),COLORGREEN;涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);STICKLINE(涨停,O,C,1,0),COLORYELLOW;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,1,0),COLORBLUE;AQ1:=REF(V,1);AQ2:=DVOL;AQ3:=AQ2/AQ1;LNX:=AQ3-REF(AQ3,1);E1:=REF(C,1);E2:=DCLOSE;E3:=(E2-E1)/E1*100;QMX:=E3-REF(E3,1);XG:=CROSS(LNX,500) AND CROSS(QMX,10);DRAWICON(XG=1,L*0.993,9);]
信号明显,就做一个“钱袋子”信号的选股吧,如果有其他选股公式需要的,扫描下方二维码联系我。
选股公式如下 :
AQ1:=REF(V,1);AQ2:=DVOL;AQ3:=AQ2/AQ1;LNX:=AQ3-REF(AQ3,1);E1:=REF(C,1);E2:=DCLOSE;E3:=(E2-E1)/E1*100;QMX:=E3-REF(E3,1);XG:CROSS(LNX,500) AND CROSS(QMX,10);
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件,胜率86.35%
风险提示:本指标公式仅作为知识分享,模拟测试不构成任何投资建议,不作投资依据。
END
|