{ 參數(shù) N1 3 1 100 N2 5 1 150}
上升線:ema(c,n1),colorred,linethick2; 下降線:ema(c,n2),colorgreen,linethick2; 中間線:ema(下降線,n2),colorwhite,linethick2; Varf1:=COUNT(CROSS(上升線,中間線),2)=1; Varf2:=COUNT(CROSS(下降線,中間線),2)=1; ZAI:=FILTER(Varf1 AND Varf2,2);Vv2:=REF(close,1); Vv3:=SMA((close-Vv2),6,1)/SMA(ABS(close-Vv2),6,1)*100; DRAWICON(ref(vv3,1)>81 and vv3<80,high,2); DRAWTEXT(ref(vv3,1)>81 and vv3<80,high,'快賣↓'),coloryellow; VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2; DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),colorred; VarA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VarB:=EMA(0.667*REF(VarA,1)+0.333*VarA,5); DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VarA>=VarB and VarA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意買入'); Varr1:=SMA(MAX(CLOSE-ref(c,1),0),6,1)/SMA(ABS(CLOSE-ref(c,1)),6,1)*100; DRAWICON(CROSS(82,Varr1),HIGH,2); DRAWTEXT(CROSS(82,Varr1),high,'快賣↓'),coloryellow; Var1:=(HIGH+LOW+OPEN+2*CLOSE)/5; Var2:=REF(Var1,1); Var3:=SMA(MAX(Var1-Var2,0),10,1)/SMA(ABS(Var1-Var2),10,1)*100; HY3:=IF(COUNT(Var3<20,5)>=1 AND COUNT(Var1=LLV(Var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0); DRAWTEXT(hy3,low,'▲注意買入'),colorred;
|
|