成交量:=VOL/100,VOLSTICK;
VAR1:=成交量/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主買:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),成交量/2)),NODRAW; 主賣:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-成交量/2)),NODRAW; STICKLINE(成交量>0,成交量,0,2.5,0),COLORCYAN; STICKLINE(主買>0,0,主買,2.5,0),COLORRED; 主持倉:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF; 主集中度:WINNER(C)*100,COLORRED; 散集中度: (WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREEN; 地量:=成交量<LLV(成交量,14)*1.001; 買賣差:(主買+主賣),NODRAW,COLORYELLOW; 買賣比:(主買/主賣),NODRAW,COLORYELLOW; 換手率:=VOL/CAPITAL*100; 換手55:SUM(換手率,55),NODRAW,COLORLICYAN; 買賣差55:SUM(買賣差,55),NODRAW,COLORGRAY; 量能飽和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))>1,1,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)))*100,COLORYELLOW,NODRAW; 中點:=REFDATE(HHV(EMA(買賣差,9),120),DATE)*2; STICKLINE(CURRBARSCOUNT=19,中點*1.9,中點*1.5,120,1),COLOR00DDDD; STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=19,中點*1.88,中點*1.52,量能飽和度*1.2,0),COLOR0033FF; STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=19,中點*1.82,中點*1.58,量能飽和度*1.2,0),COLOR0077FF; STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=19,中點*1.76,中點*1.64,量能飽和度*1.2,0),COLOR0099FF; STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=19,中點*1.7,中點*1.7,量能飽和度*1.2,0),COLOR00DDFF; STICKLINE(CONST(C<O)=1 AND CURRBARSCOUNT=19,中點*1.88,中點*1.52,量能飽和度*1.2,0),COLORFF7700; STICKLINE(CONST(C<O)=1 AND CURRBARSCOUNT=19,中點*1.82,中點*1.58,量能飽和度*1.2,0),COLORFF9900; STICKLINE(CONST(C<O)=1 AND CURRBARSCOUNT=19,中點*1.76,中點*1.64,量能飽和度*1.2,0),COLORFFBB00; STICKLINE(CONST(C<O)=1 AND CURRBARSCOUNT=19,中點*1.71,中點*1.69,量能飽和度*1.2,0),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=22,中點*2.3,量能飽和度),COLORYELLOW; 持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),NODRAW,COLOR000099; V2:=IF(CURRBARSCOUNT=1,成交量*240/FROMOPEN/REF(成交量,1)-1,成交量/REF(成交量,1)-1); STICKLINE(成交量>0,成交量,0,2,1),COLORWHITE; STICKLINE(主買>成交量/2,0,成交量,2,0),COLORYELLOW; STICKLINE(主買<=成交量/2,0,成交量,2,0),COLORWHITE; STICKLINE(主買>0,0,主買,2,0),COLORRED; STICKLINE(主賣<0,0,主賣,2,0),COLOR00FF00; STICKLINE(地量>0,0,成交量,1,0),COLORMAGENTA; STICKLINE(V2>=1,成交量,0,1,0),COLORYELLOW; |
|