通達(dá)信公式——自用主圖之賣,指標(biāo) MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA60:MA(CLOSE,60); A1:=MAX(MAX(MA(C,5),MA(C,10)),MA(C,20)); A2:=MIN(MIN(MA(C,5),MA(C,10)),MA(C,20)); ①:=(C<O AND O>A1 AND C<A2) OR (C<O AND REF(O,1)>A1 AND C<A2); DRAWTEXT(①,MA(C,20),'斷頭刀'),COLORGREEN; ②:=(C<O AND O>A1 AND L<A2) OR (C<O AND REF(O,1)>A1 AND L<A2); DRAWTEXT(②,L,'R斷頭刀'),COLORGREEN; DRAWTEXT(H>REF(O,3)*1.19,H,'小心'),COLORGREEN; DRAWTEXT(H>REF(O,3)*1.32,H,'▲小心'),COLORGREEN; PDAY1 := BARSLAST(CROSS(MA60,MA5));{5日均線下穿60日均線} PDAY2 := BARSLAST(CROSS(MA60,MA10));{10日均線下穿60日均線,,至此形成鴨頸部} PDAY3 := BARSLAST(LOW=LLV(LOW,PDAY2));{形成頭部,,要反彈} DGLYT2:= COUNT(CROSS(MA10,MA5),PDAY2)=1; DGLYT:=DGLYT1 AND DGLYT2; DRAWTEXT(DGLYT,H,'倒掛LYT'),COLORGREEN; MA30:=MA(C,30); TSJ:=COUNT(CROSS(MA20,MA5),21)=1 AND COUNT(CROSS(MA30,MA5),21)>0 AND COUNT(CROSS(MA20,MA10),21)>0 AND COUNT(CROSS(MA30,MA10),21)>0; MM1:=MA(V,5); MM2:=MA(V,10); MM3:=MA(V,20); MM4:=MA(V,30); DXJ:=COUNT(CROSS(MM3,MM1),21)=1 AND COUNT(CROSS(MM4,MM1),21)>0 AND COUNT(CROSS(MM3,MM2),21)>0 AND COUNT(CROSS(MM4,MM2),21)>0; ZTJ:=COUNT(TSJ,13)>0 AND COUNT(DXJ,13)>0; TSJDSJ:=ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0); DRAWTEXT(TSJDSJ,H,'#'),COLORGREEN; TY:=C; 前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW; 前期低位:REF(C,BARSLAST(LD)),COLOR00FF00,POINTDOT; STICKLINE(C,前期低位,前期低位,8,0),COLORYELLOW; 絕對(duì)量頂天立地:=V>REF(HHV(V,60),1) OR V>REF(HHV(V,120),1);{絕對(duì)量頂天立地}; DRAWTEXT(絕對(duì)量頂天立地 AND O>C AND C<REF(C,1),C,'L頂天賣'),COLORGREEN; |
|