{老鴨頭}
MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA60:MA(CLOSE,60); PDAY1:=BARSLAST(CROSS(MA5,MA60));{5日均線(xiàn)上穿60日均線(xiàn)} PDAY2:=BARSLAST(CROSS(MA10,MA60));{10日均線(xiàn)上穿60日均線(xiàn),至此形成鴨頸部} PDAY3:=BARSLAST(HIGH=HHV(HIGH,PDAY2));{形成頭部,要下跌} PDAY4:=BARSLAST(CROSS(MA10,MA5){ OR (REF(MA10,1)<REF(MA5,1) AND MA5=MA10)});{下跌后,5日均線(xiàn)和10日均線(xiàn)死叉} PDAY5:=BARSLAST(CROSS(MA5,MA10){ OR (REF(MA5,1)=REF(MA10,1) AND MA5>MA10)});{回落不久,5日均線(xiàn)和10日均線(xiàn)形成金叉,形成部} XA1:=PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5; XA2:=COUNT(CROSS(MA10,MA5),PDAY2)=1; XA3:=MA5>MA60 AND MA10>MA60; 老鴨頭:(XA1 AND XA2 AND XA3) AND FILTER(XA1 AND XA2 AND XA3 ,5); DRAWTEXT(老鴨頭,L*0.98,'老鴨頭'),COLORYELLOW; STICKLINE(CLOSE>OPEN,H,LOW,0.3,0 ),COLOR9933FF; STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0 ),COLOR66CC33; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0),COLOR009900; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0),COLOR00CC00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000099; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0 ),COLOR0000CC; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0 ),COLOR0033FF; |
|
來(lái)自: 月亮之上 > 《買(mǎi)賣(mài)公式》