VOLUME:VOL,VOLSTICK; MAVOL1:=MA(VOLUME,5); MAVOL2:=MA(VOLUME,10); 量X:=V; 量X5:=MA(V,5); 量:=CAPITAL/VOL/5; 量5:=MA(量,5); 量10:=MA(量,10); 換手5:=MA(VOL*100/CAPITAL,5); 換手10:=MA(VOL*100/CAPITAL,10); 價5:=MA(C,5); 價10:=MA(C,10); 底:=C>MA(C,5) AND 換手5>換手10 AND 量5<REF(MA(量5,1),5); 漲:=C>MA(C,5) AND 換手5>換手10 AND 量5>REF(MA(量5,1),5); 漲2:=C>MA(C,5) AND 換手5<換手10 AND 量5>REF(MA(量5,1),5); 漲3:=C>MA(C,5) AND 換手5<換手10 AND 量5<REF(MA(量5,1),5); STICKLINE(底,0,V,8,0),COLORRED ; STICKLINE(漲,0,V,8,0),COLORYELLOW ; STICKLINE(漲2,0,V,8.8,0),COLORYELLOW ; STICKLINE(漲3,0,V,8.8,0),COLORFF00FF ; 短頂:=(量10-價10)<0.01; 頂:=C<MA(C,5) AND 換手5<換手10 AND 量5>REF(MA(量5,1),5); 頂1:=C<MA(C,5) AND 換手5<換手10 AND 量5<REF(MA(量5,1),5); 頂2:=C<MA(C,5) AND 換手5>換手10 AND 量5<REF(MA(量5,1),5); STICKLINE(頂,0,V,7.8,0),COLORFF4242; STICKLINE(頂1,0,V,7.8,0),COLORFF4242; STICKLINE(頂2,0,V,7.8,0),COLORFF4242; 買賣:=(C-MA(C,5))*100; M:=BARSLAST(買賣<0); 100*SUM(VOL,m)/CAPITAL; 買天數(shù):IF(買賣>0,5,0),COLORRED; N:=BARSLAST(買賣>0); 100*SUM(VOL,10)/CAPITAL; 賣天數(shù):IF(買賣<0,n,0),COLORWHITE; |
|