Ö¸±ê±àд˼·ÓëÐźź¬Ò壺£¨ÀàËÆ{һƷ»ØÉýÀË}£©
1¡¢ÀÏѼ»ØÍ·=ÖÐÏßÇ÷ÊÆÏòÉÏ+¶ÌÏß»ØÍ·£»
2¡¢¿Ó=¶ÌÏß³¬µø£¬°×É«Ìر𳬵ø£»
3¡¢Âò=ÖÐÏßÇ÷ÊÆÏòÉÏ+¾ùÏßÕ³ºÏ+¶ÌÏß»ØÉý£»
4¡¢ÓÅÑ¡=Âò+10ÈÕ¡¢20ÈÕ¾ùÏßͨµÀ±£³ÖÏòÉÏͨ³©£»
5¡¢ÌÓ¶¥=¶ÌÏßÂôµã£¬ÖÐÏßÖ»×ö²Î¿¼£»
Ö¸±êʹÓ÷½·¨£º
ÀÏѼ»ØÍ·Òª¹Ø×¢£¬¸ÒÂòÉî¿ÓÊǸßÊÖ£»¾ùÏß¹ÕµãÊÇÂòµã£¬Í¨µÀ˳³©Ó¦ÓÅÑ¡¡£
{ÀÏѼ»ØÍ·Z----һƷ²èÔµ±àд¾«Æ·Ö¸±ê!´óÖÇ»ÛÖ÷ͼ}{·ÉºüͨÓÃ}
{N:1,20,10;}
MA5:MA(C,5),COLORWHITE;
MA10:MA(C,10),COLORFF00FF;
MA20:MA(C,20),COLOR00FF00;
MA30:MA(C,30),COLORYELLOW;
MA120:SMA(C,120,1),COLOR0000FF;
ZH520:=ABS(MA5-MA20)/MA20*100<=N;
ZH530:=ABS(MA5-MA30)/MA30*100<=N;
QSXS1:=MA5>REF(MA5,1);
QSXS2:=MA20>REF(MA20,1);
QSXS3:=MA30>REF(MA30,1);
DTPL:=MA20>MA30 AND MA30>MA120;
LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1);
ÀÏѼ»ØÍ·:LYHT*50,COLORFF00FF,POINTDOT,LINETHICK0;
WR5:=100*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5));
WR6:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6));
WR:=80-(WR5*3+WR6*2)/5,COLORYELLOW,POINTDOT;
¿Ó:IF(WR<0,WR,0),COLORYELLOW,POINTDOT,LINETHICK0;
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;
GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
Âò:(LYKK AND NOT(REF(LYKK,1)))*50,COLOR00FF00,POINTDOT,LINETHICK0;
ÓÅÑ¡:(Âò AND COUNT((MA10>MA20),5)=5)*100,COLORYELLOW,POINTDOT,LINETHICK0;
{ÒÔÏÂÉèÖÃÖ÷ͼÏÔʾ·½Ê½}
DRAWTEXT(ÀÏѼ»ØÍ·,(MA10+MA20)/2, '¡ñ'),COLORFF00FF;
DRAWTEXT(ÀÏѼ»ØÍ·,(MA10+MA20)/2, '¤'),COLORFF00FF;
DRAWTEXT(WR<0,L*0.99, '#'),COLORYELLOW;
DRAWTEXT(WR<-10,L*0.99, '#'),COLORWHITE;
STICKLINE(Âò,h,l,0,1),COLOR00FF00,linethick2;
STICKLINE(Âò,o,c,4,1),COLOR00FF00,linethick2;
DRAWTEXT(Âò,L*0.99, 'Âò¡ïÂò'),COLOR00FF00;
DRAWICON(ÓÅÑ¡,L*0.99,1);
{ÒÔÏÂÉèÖÃÌÓ¶¥Ö¸±ê}
varC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varC),HIGH,2);
var6:=REF(C,1);
var7:=SMA(MAX(C-var6,0),6,1)/SMA(ABS(C-var6),6,1)*100;
DRAWTEXT(CROSS(84,var7),H*1.01,'ÌÓ¶¥'),COLORYELLOW ;
{ÀÏѼ»ØÍ·----һƷ²èÔµ±àд¾«Æ·Ö¸±ê!´óÖǻ۸±Í¼}{·ÉºüͨÓÃ}
{N:1,20,10;}
MA5:=MA(C,5),COLORWHITE;
MA10:=MA(C,10),COLORFF00FF;
MA20:=MA(C,20),COLOR00FF00;
MA30:=MA(C,30),COLORYELLOW;
MA120:=SMA(C,120,1),COLOR0000FF;
ZH520:=ABS(MA5-MA20)/MA20*100<=N;
ZH530:=ABS(MA5-MA30)/MA30*100<=N;
QSXS1:=MA5>REF(MA5,1);
QSXS2:=MA20>REF(MA20,1);
QSXS3:=MA30>REF(MA30,1);
DTPL:=MA20>MA30 AND MA30>MA120;
LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1);
ÀÏѼ»ØÍ·:LYHT*50,COLORFF00FF;
WR5:=100*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5));
WR6:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6));
WR:=80-(WR5*3+WR6*2)/5;
¿Ó:IF(WR<0,WR,0),COLORYELLOW;
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;
GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
Âò:(LYKK AND NOT(REF(LYKK,1)))*50,COLOR00FF00,LINETHICK2;
ÓÅÑ¡:(Âò AND COUNT((MA10>MA20),5)=5)*100,COLORYELLOW,LINETHICK2;
{ÒÔÏÂÉèÖø±Í¼ÏÔʾ·½Ê½}
DRAWTEXT(ÀÏѼ»ØÍ·,10,'¡ñ'),COLORFF00FF;
DRAWTEXT(ÀÏѼ»ØÍ·,10,'¤'),COLORFF00FF;
STICKLINE(WR<0,WR,0,2,0),COLORYELLOW;
STICKLINE(WR<-10,WR,-10,2,0),COLORWHITE;
DRAWTEXT(Âò,80,'Âò¡ïÂò'),COLOR00FF00;
DRAWICON(ÓÅÑ¡,10,1);
{ÒÔÏÂÉèÖÃÌÓ¶¥Ö¸±ê}
varC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varC),80,2);
var6:=REF(C,1);
var7:=SMA(MAX(C-var6,0),6,1)/SMA(ABS(C-var6),6,1)*100;
DRAWTEXT(CROSS(84,var7),100,'ÌÓ¶¥'),COLORYELLOW ;