KDJ操盤(自用)
{主圖}
{參數(shù):n:5 5 5 p1:1 9999 5 p2:1 9999 10 p3:1 9999 20 p4:1 9999 30 p5:1 9999 60 p6:1 9999 120 p7:1 99999 250} MA5:MA(CLOSE,p1); MA10:MA(CLOSE,p2); MA20:MA(CLOSE,p3); MA30:MA(CLOSE,p4); MA60:MA(CLOSE,p5); MA120:MA(CLOSE,p6); MA250:MA(CLOSE,p7); var1:=4*SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1),3.2,1); VAR2:=LLV(LOW,27); VAR3:=HHV(HIGH,34); VAR4:=EMA((CLOSE-Var2)/(Var3-Var2)*4,4)*25; VAR5:=REF(C,2)*0.865; VAR6:=REF(C,13)*0.772; DSY:=100*vol/CApitAl; 注意買:=IF((Var4<10),80,100) ,color00ccff,linethick1; RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 超跌:=IF(J<0,10,0),COLORFFFF00; BDDD:=LLV(J,2)=LLV(J,8); 買入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0); 少買:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND BETWEEN(J,20,60),1,0); BDGD:=HHV(J,2)=HHV(J,8) AND J>80; DRAWTEXT(少買 AND 注意買=100,low,'☆'),COLORFF00FF; DRAWTEXT(買入 AND 注意買=100 AND 超跌=0,low,'買★入'),COLORred; DRAWTEXT(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),high+0.02{*1.02},'◇'),COLORwhite; DRAWTEXT(cross(100,var1),high+0.05,'賣◆出'),color00FFFF; DRAWTEXT(CROSS(var1,110) or CROSS(var1,120),high+0.07,'偏※高'),color00FF00; DRAWTEXT(CROSS(var1,35) and 注意買=100,low,'☆'),colorFF00FF; DRAWTEXT((C-MIN(VAR5,VAR6))/C<0.1 AND SUM(DSY,5)/5<1.8,low-0.05,'抄底'),color00ff00; |
|