MA05:MA(C,5),LINETHICK3,coloryellow;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
B:ZIG(3,50/5),colorwhite;
G:=MA(B,2),coloryellow;
D:=CROSS(B,G)*1,colorred;
W:=CROSS(G,B)*1,colorblue;
DRAWTEXT(W=1,B*1.06,'★★★賣,空倉!' ),colorgreen;
DRAWTEXT(D=1,L*0.99,'★★★買進'),colorred;
五日乖離率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB05>30 AND MA05>REF(MA05,1), MA05,NULL),LINETHICK3,colorred;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
IF(BB05<0 AND MA05<REF(MA05,1), MA05,NULL),LINETHICK3,colorgreen;
三拾日乖離率:=(C-MA30)/MA30*100,NODRAW;
VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);
BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
強勢狙擊:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);
加倉:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1)
AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1)
清倉:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1)
DRAWTEXT(加倉 ,LOW*0.98,'←★我要加倉★'),colorred;
JC:=CROSS(0,五日乖離率) AND 三拾日乖離率<REF(三拾日乖離率,1) AND MA10>REF(MA10,1) ;
減倉:=FILTER(JC,10);
MR:=COUNT(CROSS(五日乖離率,0),3)>=1 AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;
買入:=FILTER(MR,10);
MA15:MA(C,15),colorred,LINETHICK3;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)), MA15 ,'←★持股參考線'),colorwhite;
DRAWTEXT(減倉,HIGH*1.01,'←▼風險提示'),colorcyan;
DRAWTEXT(買入,LOW*0.98,'←★★買入'),coloryellow;
DRAWTEXT(清倉 ,HIGH*1.04,'←▼▼清倉?。?),colorgreen;
DRAWTEXT(強勢狙擊,LOW*0.95,'←▲▲強勢出擊'),coloryellow;
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
壓力:MA(REF(HHV(C,15),1),2),colorblue;
支撐:MA(REF(LLV(C,15),1),2),colorgreen;
|
|