MA5:EMA(C,5),COLORWHITE; 工作線:EMA(C,14),COLORF00FF0,LINETHICK1; 二號線:EMA(C,25),COLOR00FF00,LINETHICK1; 九號線:EMA(CLOSE,99),LINETHICK1; MA30:EMA(CLOSE,30),,COLORYELLOW,LINETHICK2; MA120:EMA(CLOSE,120),LINETHICK1; 生命線:EMA(CLOSE,453),LINETHICK1,COLORRED; VAR1:=(CLOSE*2+HIGH+LOW)/4; SK:= EMA(VAR1,13)-EMA(VAR1,73); SD:= EMA(SK,2); DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'↖短線'),COLORRED; 黃昏之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) > 1.03) AND (REF(OPEN,1) > REF(CLOSE,2))) AND ((ABS((REF(OPEN,1) - REF(CLOSE,1))) / REF(CLOSE,1)) < 0.02)) AND ((CLOSE / OPEN) < 0.97)) AND (CLOSE <REF(CLOSE,2))); 射擊之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 * (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5))); 錘頭:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH - MIN(OPEN,CLOSE))))) AND (CLOSE < MA(CLOSE,5))); 吊頸:=(( (HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH - MIN(OPEN,CLOSE)))))); 穿頭破腳:=((((((REF(CLOSE,1) / REF(OPEN,1)) > 1.03) AND ((CLOSE / OPEN) < 0.96)) AND (CLOSE < REF(OPEN,1))) AND (OPEN > REF(CLOSE,1))) OR (((((REF(CLOSE,1) / REF(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) > 1.04)) AND (CLOSE > REF(OPEN,1))) AND (OPEN < REF(CLOSE,1)))); 身懷六甲:=(((((ABS((REF(CLOSE,1) - REF(OPEN,1))) / REF(CLOSE,1)) > 0.04) AND ((ABS((CLOSE - OPEN)) / CLOSE) < 0.005)) AND (MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)))) AND (MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1)))); 烏云蓋頂:=(((((REF(CLOSE,1) / REF(OPEN,1)) > 1.03) AND ((CLOSE / OPEN) < 0.97)) AND (OPEN > REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))); 曙光初現(xiàn):=(((((REF(CLOSE,1) / REF(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) > 1.03)) AND (OPEN < REF(CLOSE,1))) AND (CLOSE > REF(CLOSE,1))); 傾盆雨:=(((((REF(CLOSE,1) / REF(OPEN,1)) >= 1.03) AND (OPEN < REF(CLOSE,1))) AND (OPEN > REF(OPEN,1))) AND (CLOSE < REF(OPEN,1))); DRAWTEXT(傾盆雨,H*1.03,'傾盆大雨'),COLORCYAN; DRAWTEXT(黃昏之星,H*1.02,'黃昏之星'),COLORCYAN; DRAWTEXT(射擊之星,H*1.03,'射擊之星可能見頂'),COLORCYAN; DRAWTEXT(錘頭,L-L*0.02,'錘頭可能見底'),COLORGREEN; DRAWTEXT(吊頸,H*1.03,'吊頸'),COLORCYAN; DRAWTEXT(穿頭破腳,H*1.05,'穿頭破腳'),COLORCYAN; DRAWTEXT(烏云蓋頂,H*1.03,'烏云蓋頂'),COLORCYAN; DRAWTEXT(曙光初現(xiàn),L-L*0.02,'曙光初現(xiàn)(放量)'),COLORGREEN; DRAWTEXT(身懷六甲,L-L*0.02,'孕育線,底升頂落'),COLORGREEN; {漲跌停顯示} 漲停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0); STICKLINE(漲停,O,C,3,0),COLORRED; ZDF:=(C-REF(C,1))/REF(C,1)*100; STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN; |
|
來自: 智能家園ogore3 > 《投資理財》