M1:=13;M2:=5;MA1:MA(CLOSE,M1);{設(shè)定均線}MA2:=MA(CLOSE,M2);{設(shè)定均線}DRAWKLINE(H,O,L,C);{寫K線}STICKLINE(MA1>=REF(MA1,1),H,L,0,0),COLOR0000FF;{均線上行,標(biāo)記影線}STICKLINE(MA1>=REF(MA1,1) AND (C>=O),O,C,3,1),COLOR0000FF;{均線上行,標(biāo)記陽(yáng)線}STICKLINE(MA1>=REF(MA1,1)AND (C<=O),O,C,3,0),COLOR0000FF;{均線上行,標(biāo)記陰線}STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13,H,L,0,0),COLOR00FFFF;{做頂,標(biāo)記影線}STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C>=O),O,C,3,1),COLOR00FFFF;{做頂,標(biāo)記陽(yáng)線}STICKLINE(MA1>=REF(MA1,1) AND MA2<=REF(MA2,1) AND COUNT(MA1>=REF(MA1,1),20)>13 AND (C<=O),O,C,3,0),COLOR00FFFF;{做頂,標(biāo)記陰線}STICKLINE(MA1<REF(MA1,1),H,L,0,0),COLOR00FF00;{均線下行,標(biāo)記影線}STICKLINE(MA1<REF(MA1,1) AND (C>=O),O,C,3,1),COLOR00FF00;{均線下行,標(biāo)記陽(yáng)線}STICKLINE(MA1<REF(MA1,1) AND (C<=O),O,C,3,0),COLOR00FF00;{均線下行,標(biāo)記陰線};STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15,H,L,0,0),COLORFF00FF;{做底,標(biāo)記影線}STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C>=O),O,C,3,1),COLORFF00FF;{做底,標(biāo)記陽(yáng)線}STICKLINE(MA1<=REF(MA1,1) AND MA2>=REF(MA2,1) AND COUNT(MA1<=REF(MA1,1),30)>15 AND (C<=O),O,C,3,0),COLORFF00FF;{做底,標(biāo)記陰線};
|