YZ:=EMA((CLOSE-MA(CLOSE,5))/MA(CLOSE,5),2)*100; ZL:=EMA((CLOSE-MA(CLOSE,10))/MA(CLOSE,10),3)*100; SH:=EMA((CLOSE-MA(CLOSE,21))/MA(CLOSE,21),3)*100; 主力:IF(ZL>30,30,IF(ZL<=-30,-30,ZL)),COLORRED,NODRAW; 散戶:IF(SH>30,30,IF(SH<=-30,-30,SH)),COLORFF3E3E; 游資:IF(YZ>30,30,IF(YZ<=-30,-30,YZ)),COLORCYAN,LINETHICK2; DRAWBAND(主力,RGB(255,0,0),0,RGB(255,255,0)); ZQ:=BARSLAST(DAY!=REF(DAY,1))+1;{BUYHAOGU.COM} 日均價(jià):=SUM(AMOUNT,ZQ)/SUM(V,ZQ); 橫盤:=C>日均價(jià)*0.99 AND C<日均價(jià)*1.01; 均偏差:=(C-日均價(jià))/日均價(jià)*100; STICKLINE(C>REF(C,1)*1.008 AND INDEXC<REF(INDEXC,1)*0.997,0,-10,1,0),COLORRED; STICKLINE(C<REF(C,1)*0.992 AND INDEXC>REF(INDEXC,1)*1.003,0,-10,1,0),COLORYELLOW; |
|