通達信】一招鮮(一三買入、三陰一陽、捉暴漲、背離底)-指標(biāo)公式源碼 M1:MA(CLOSE,13),COLORYELLOW,LINETHICK2; M2:MA(CLOSE,34),LINETHICK2,COLORWHITE; M3:MA(CLOSE,55),COLORGREEN,LINETHICK2; A:MA(C,5)COLORBLUE,LINETHICK3; B:=A<REF(A,1); IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3; 一三買入:REF(LAST(C<O,3,0),1)>0 AND REF(LAST(VOL<REF(VOL,1),3,0),1)>0 AND O<C,NODRAW,COLORCF3EE0; 三陰一陽:LAST(C<O,3,0) AND LAST(VOL<REF(VOL,1),3,0),NODRAW,COLORC0C0D8; DMI捉暴漲:CROSS("DMI.PDI","DMI.MDI") AND CROSS("DMI.PDI","DMI.ADX") AND CROSS("DMI.PDI","DMI.ADXR") AND C>REF(C,1)*1.05 AND VOL>REF(VOL,1),NODRAW,COLOR4035FF; CCI背離底:LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),NODRAW,COLOR8080A9; 平臺起飛:LAST((H-L)/REF(C,1)<0.1,5,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.05,NODRAW,COLORFF504F; 山谷停板:LAST(MA(C,5)<MA(C,10),5,0) AND C>REF(C,1)*1.098,NODRAW,COLOR80FF80; 撥云見日:(LAST(C<O,6,3) AND LAST(C>O,2,0)) OR (LAST(C<O,6,3) AND C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2)),NODRAW,COLORC0C8C0; 南天一柱:C<O AND VOL>REF(VOL,1)*1.5 AND LAST(VOL<REF(VOL,1),5,1 ),NODRAW,COLORFFFF78; BIAS絕密買點:CROSS((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100) AND MA(C,40)>REF(MA(C,40),1),NODRAW,COLOR2BB7CD ; DRAWTEXT(一三買入,L-0.2,'▲'),COLORCF3EE0; DRAWTEXT(三陰一陽,L-0.2,'▲'),COLORC0C0D8; DRAWTEXT(DMI捉暴漲,L-0.2,'▲'),COLOR4035FF; DRAWTEXT(CCI背離底,L-0.2,'▲'),COLOR8080A9; DRAWTEXT(平臺起飛,L-0.2,'▲'),COLORFF504F; DRAWTEXT(山谷停板,L-0.2,'▲'),COLOR80FF80; DRAWTEXT(撥云見日,L-0.2,'▲'),COLORC0C8C0;
DRAWTEXT(BIAS絕密買點,L-0.2,'▲'),COLOR2BB7CD;DRAWTEXT(南天一柱,L-0.2,'▲'),COLORFFFF78; |
|