{SKD }
{N:=9;
M:=2; }
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
sRSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
sK:EMA(sRSV,M),colorwhite;
sD:MA(sK,M);
sRSV2:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,1);
sK2:EMA(sRSV2,1);
sD2:=MA(sK,1);
警戒线:80.1,linethick3,Colorred,POINTDOT;
低位区:20.1,linethick3,Coloryellow,POINTDOT;
见底信号:0, LINETHICK3,colorWHITE,POINTDOT;
{KDJ}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,2,1),colorwhite;
D:=SMA(K,2,1),coloryellow;
J:=3*K-2*D,colorff00ff;
买: cross(sK,sD) and j-REF(j,1)>10 and REF(j,1)<8;
DRAWTEXT(买,H*4,'买'),COLORFF00FF;
{可能牛}
当日收阳H-L)/L>0.04{当天振幅大于7%}
AND (C-O)/O>=0.04{当天的K线实体长度大于7%}
AND (C-REF(C,1))/REF(C,1)>=0.01*V{当日涨幅超过5%};
DRAWTEXT(当日收阳,H*6,'阳'),COLORred;
买加阳:=买 and j-REF(j,1)>10 and REF(j,1)<8 and 当日收阳;
sk加阳:=sk>55 and 当日收阳;
{EXPMA}
MA1:=EMA(CLOSE,5);
MA2:=EMA(CLOSE,10);
MA3:=EMA(CLOSE,30);
MA4:=EMA(CLOSE,60);
SK阳多:sk加阳 and (ma1-ma4)/ma4<0.30 and (ma1>=ma2 and ma2>=ma3 ) and (ma1-ma4)/ma4<0.15 and (ma1>=ma2 and ma2>=ma3 ) ;
DRAWTEXT( sk加阳 and (ma1-ma4)/ma4<0.30 and (ma1>=ma2 and ma2>=ma3 ),H*2,'▲'),COLORred; |