公式如下:
MD5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));MD10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));MD20:=IF(PERIOD>=7,ZIG(1,10),IF(PERIOD=3,ZIG(1,30),ZIG(1,20)));XD1:=MD5>REF(MD5,1) AND REF(MD5,1)<=REF(MD5,2) AND REF(MD5,2)<=REF(MD5,3);ND1:=MD5[=REF(MD5,2) AND REF(MD5,2)>=REF(MD5,3);XD2:=MD10>REF(MD10,1) AND REF(MD10,1)<=REF(MD10,2) AND REF(MD10,2)<=REF(MD10,3);ND2:=MD10][=REF(MD10,2) AND REF(MD10,2)>=REF(MD10,3);XD3:=MD20>REF(MD20,1) AND REF(MD20,1)<=REF(MD20,2) AND REF(MD20,2)<=REF(MD20,3);ND3:=MD20][=REF(MD20,2) AND REF(MD20,2)>=REF(MD20,3);ZQ1:=BARSLAST(MD5][REF(MD5,1));ZQ2:=BARSLAST(MD10][REF(MD10,1));ZQ3:=BARSLAST(MD20][REF(MD20,1));ZTJZ5:=IF(MD10>REF(MD10,1),COUNT(XD1,ZQ2),0);ZTJD5:=IF(MD10>REF(MD10,1),COUNT(ND1,ZQ2),0);DTJZ5:=IF(MD10][REF(MD20,1),COUNT(XD2,ZQ3),0);ZTJD10:=IF(MD20>REF(MD20,1),COUNT(ND2,ZQ3),0);DTJZ10:=IF(MD20][REF(MD10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;DRAWTEXT(XD1 AND MD10>REF(MD10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;DRAWTEXT(ND1 AND MD10>REF(MD10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;DRAWTEXT(XD1 AND MD10>REF(MD10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;DRAWTEXT(ND2 AND (MD10>REF(MD10,1) OR REF(MD10>REF(MD10,1),1) OR ZTJD10=1),H*1.08,'⑸'),,COLOR0000FF;DRAWTEXT(ND2 AND MD20>REF(MD20,1) AND ZTJD10=1,H*1.06,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(XD2 AND MD20>REF(MD20,1) AND ZTJZ10=2,L*0.94,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(ND2 AND MD20>REF(MD20,1) AND ZTJD10=2,H*1.06,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(XD2 AND MD20>REF(MD20,1) AND ZTJZ10=3,L*0.94,'④'),LINETHICK3,COLOR00FFFF;DRAWTEXT_FIX(C>O,0.01,0.99,0,'☆微信公众号:彩虹桥投资学习'),COLORRED;XG1:=ND2;XG2:=MD20>REF(MD20,3);XG3:=ZTJZ10=3;DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.06,'⑤'),LINETHICK3,COLORWHITE;DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.04,'●'),LINETHICK3,COLORFFFF00;DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.02,'●'),LINETHICK3,COLOR00FFFF;MX1:=EMA(C,2),COLORRED;MX2:=EMA(SLOPE(C,21)*20+C,42),COLORYELLOW;BU:=CROSS(MX1,MX2); SEL:=CROSS(MX2,MX1); STICKLINE(MX1>=MX2,CLOSE,OPEN,3,0),COLORRED; STICKLINE(MX1>=MX2,LOW,HIGH,0,0),COLORRED; STICKLINE(MX1
]
信号简单,就做一个“抄底C浪”的选股吧。
选股公式如下 :
PD5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));PD10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));MD1:=PD5>REF(PD5,1) AND REF(PD5,1)<=REF(PD5,2) AND REF(PD5,2)<=REF(PD5,3);MD2:=PD10>REF(PD10,1) AND REF(PD10,1)<=REF(PD10,2) AND REF(PD10,2)<=REF(PD10,3);ZQ2:=BARSLAST(PD10[REF(PD10,1),COUNT(MD1,ZQ2),0);EX2:=PD10][=REF(PD10,2) AND REF(PD10,2)>=REF(PD10,3);XH:MD2 AND ZTJZ5=1 AND SLOPE(MA(C,20),5)>0.01;]
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件
胜率84.07%
END
|