重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382; 趨勢線:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK2; 紅升:IF(重心>=趨勢線,趨勢線,DRAWNULL),COLORRED,LINETHICK2; 藍降:IF(重心<趨勢線,趨勢線,DRAWNULL),COLORBLUE,LINETHICK2; ZF0:=MAX(HIGH,REF(HIGH,1))-MIN(LOW,REF(LOW,1)); ZF:=MA(ZF0,3)*0.8; QSK:=ABS(CLOSE-REF(OPEN,1))/ZF0>0.50; SZ1:=HIGH>REF(HIGH,2) AND CLOSE>REF(OPEN,1) AND QSK; XD1:=LOW<REF(LOW,2) AND CLOSE<REF(OPEN,1) AND QSK; SZT:=BARSLAST(SZ1); XDT:=BARSLAST(XD1); DT:=SZT<XDT; KT:=XDT<SZT; STICKLINE(DT,OPEN,CLOSE,3,0),COLORRED; STICKLINE(KT,OPEN,CLOSE,3,0),COLORGREEN; 買買:=EMA(((100 * (CLOSE - LLV(LOW,34))) / (HHV(HIGH,34) - LLV(LOW,34))),3); 賣賣:=SMA((((HHV(HIGH,34) - CLOSE) / (HHV(HIGH,34) - LLV(LOW,34))) * 100),2,1); 大盤:=EMA(((100 * (INDEXC - LLV(INDEXL,34))) / (HHV(INDEXH,34) - LLV(INDEXL,34))),3); 換手:=(((VOL /MA(V,5))) >= 2); 漲:=(((CLOSE / REF(CLOSE,1)) - 1) * 100); A:=(CROSS(買買,賣賣) AND (買買 >= 45)); B:=(CROSS(買買,大盤) AND (買買 >= 45)); D:=(CROSS(買買,75) AND (漲>= 2)); DD:=(CROSS(買買,20) AND (漲>= 2)); DRAWTEXT((A > 0),(LOW * 0.99),'←阻擊龍頭'),LINETHICK0,COLORFFFF00; DRAWTEXT((B > 0),(LOW * 1.02),'←決戰(zhàn)龍頭'),LINETHICK0,COLOR0055FF; DRAWTEXT((D > 0),(LOW * 1.05),'←絕對龍頭'),LINETHICK0,COLORRED; DRAWTEXT((DD > 0),(LOW ),'←短線金股'),LINETHICK0,COLORRED; TJ:=((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1)))); |
|