--------------------------------------------------------
{һƷ¿ìÂíZ----һƷ²èÔµ±àд³¬¶ÌÖ¸±ê£¬´óÖÇ»ÛÖ÷ͼ}{·ÉºüͨÓÃ}
{p1:1,250,5;p2:1,250,10;p3:1,250,30;}
MA1:MA(C,P1),COLORWHITE,LINETHICK2;
MA2:MA(C,P2),COLORYELLOW,LINETHICK1;
MA3:MA(C,P3),COLORRED,LINETHICK2;
MAK:=MA(C,3);
MM:=ATAN((MAK/REF(MAK,1)-1)*100)*180/3.14159,COLORSTICK;
MA5:=MA(C,5);
KK:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.14159,COLORSTICK;
×¼±¸:=CROSS(KK,0)*80,POINTDOT,COLOR00FF00,LINETHICK3;
Âí:=(KK/REF(KK,1)>=2 AND KK>0 AND C>0 AND (H=HHV(H,10) OR C=HHV(C,10)))*80,STICK,COLORWHITE,LINETHICK3;
µÇ¸ß:=(COUNT(KK>REF(KK,1),3)>=2 AND KK>40 AND KK<75)*30,COLORYELLOW,LINETHICK2;
{STICKLINE(µÇ¸ß=30,0 ,30 ,5 ,1 ),COLORYELLOW;}
Âþ²½:=(COUNT(KK<REF(KK,1) AND KK>0,2)=2)*-20,COLOR00FF00,LINETHICK2;
{STICKLINE(Âþ²½=-20,0 ,-20 ,5 ,1 ),COLOR00FF00;}
ÆïÂí:=(MA(C,30)>REF(MA(C,30),1) AND KK/REF(KK,1)>=2 AND KK>0 AND COUNT(KK<REF(KK,1),4)>=1
AND CROSS(KK,45) AND (H=HHV(H,10) OR C=HHV(C,10)))*100,COLORWHITE,LINETHICK2;
СÐÄ:=((MM+KK)>120)*-20,POINTDOT,COLORRED,LINETHICK3;
ÐüÑÂ:=(CROSS(0,KK) AND COUNT(MA(C,5)>MA(C,10),13)>=10)*-50,POINTDOT,COLORFF6600,LINETHICK3;
DD:=(C-REF(C,1))/REF(C,1)*100<=-4;
»¨Ïã:=(COUNT(DD,7) AND KK<0 AND KK>REF(KK,1))*KK,STICK,COLORFF00FF,LINETHICK2;
³¬µø:=((MM+KK)<-120 AND HHV(H,3)/LLV(L,3)>=1.18)*-20,POINTDOT,COLOR00FF00,LINETHICK3;
DRAWTEXT(³¬µø<0,L-0.05, '¡ö'),COLOR00FF00;
{ÒÔÏÂÉèÖÃÖ÷ͼÏÔʾ·½Ê½£º}
STICKLINE(×¼±¸=80,h,l,0,1),COLOR00FF00,linethick2;
STICKLINE(×¼±¸=80,o,c,4,1),COLOR00FF00,linethick2;
STICKLINE(Âí=80,h,l,0,1),COLORWHITE,linethick2;
STICKLINE(Âí=80,o,c,4,1),COLORWHITE,linethick2;
DRAWTEXT(ÆïÂí=100 ,L-0.02 , '¡ñ'),COLORWHITE;
DRAWTEXT(ÆïÂí=100,L*0.95, 'Âò'),COLORWHITE;
DRAWTEXT(µÇ¸ß=30 ,MA1 , '¡Ñ'),COLORYELLOW;
DRAWTEXT(Âþ²½=-20 ,MA1 , '©'),COLOR00FF00;
DRAWTEXT(СÐÄ=-20,L-0.02, '·'),COLORRED;
DRAWTEXT((MM+KK)>150,MA1, '¡Û'),COLORFF6600;
DRAWTEXT(ÐüÑÂ=-50,L-0.02, '¡ñ'),COLORFF6600;
DRAWTEXT(»¨Ïã<0 ,L-0.02 , '='),COLORFF00FF;
ZBSJ:=BARSLAST(×¼±¸=80);
IF(NOT(×¼±¸=80),REF(L,ZBSJ),REF(L,ZBSJ)),COLOR00FF00,POINTDOT;