135戰(zhàn)法公式修改 紅杏出墻 EMA13:=EMA(C,13); EMA34:=EMA(C,34); EMA55:=EMA(C,55); HX1:=EMA13<EMA34 AND EMA34<EMA55;{股價(jià)長(zhǎng)期下跌,并且遠(yuǎn)離長(zhǎng)期均線} HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);{收盤價(jià)在13均線%6到現(xiàn)在的天數(shù)} HX3:=ABS(1-EMA55/REF(C,1))>0.1; HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;{13日均線下降趨于走平} HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 AND C<EMA34; HX5:=REF(C,1)<EMA13 AND C>EMA13 AND C>O; HX7:=HX1 {AND HX3} AND HX4 AND HX5 ; HX8:=HX7 AND FILTER(HX7,10);{滿足后10天內(nèi)不標(biāo)記} DRAWTEXT(HX8,L-0.05,'紅杏出墻'),COLORYELLOW; {海底撈月} EMA13:=EMA(C,13); EMA34:=EMA(C,34); EMA55:=EMA(C,55); LY1:=COUNT(ABS(1-EMA55/EMA34)<0.1,20)>=16; LY2:=COUNT(CROSS(EMA34,EMA13),40)>=1 AND COUNT(CROSS(EMA55,EMA13),40)>=1; LY3:=CROSS(EMA13,EMA55); HDLY:=LY1 AND LY2 AND LY3; DRAWTEXT(HDLY AND FILTER(HDLY,5),L-0.25,'海底撈月'),COLORGREEN; {均線互換} EMA34:=EMA(C,34); EMA55:=EMA(C,55); JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(JXHH,L+0.09,'均線互換'),COLOR0099FF; 揭竿而起 EMA13:=EMA(C,13); EMA34:=EMA(C,34); EMA55:=EMA(C,55); MAX3:=MAX(MAX(EMA13,EMA34),EMA55); MIN3:=MIN(MIN(EMA13,EMA34),EMA55); JG1:=ABS(EMA13-EMA34)<C*0.05;{13線34線55線接近} JG2:=ABS(EMA34-EMA55)<C*0.05; JG3:=C>=O*1.03 AND C>MAX3;{陽(yáng)線3%} JG4:=O>MIN3 AND O<MAX3; JG5:=C>REF(H,5); JG6:=(C-EMA34)/EMA34<=0.15;{控制價(jià)高} JG7:=V>MA(V,5) AND MA(V,10); JGEQ:=JG1 AND JG2 AND JG3 AND JG4 AND JG5 AND JG6 AND JG7; DRAWTEXT(JGEQ,H+0.1,'揭竿而起'),COLORGREEN; {紅衣俠女} EMA13:=EMA(C,13); EMA55:=EMA(C,55);
XN1:=ABS(1-HHV(EMA55,5)/LLV(EMA55,5))<0.02; XN2:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002; XN3:=C>O AND V>REF(V,1) AND C>EMA55; HYXN:=XN1 AND XN2 AND XN3; DRAWTEXT(HYXN AND FILTER(HYXN,5),L-0.05,'紅衣俠女'),COLORF00FF0; |
|