修改后的KDJ指标 RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
a=SMA(RSV,M1,1);
b=SMA(a,M2,1);
e=3*a-2*b;
IF(a<0) a=0;
IF(a>100) a=100;
IF(b<0) b=0;
IF(b>100) b=100;
IF(e<0) e=0;
IF(e>100) e=100;
K:a;
D:b;
J:e;
DRAWTEXT(d<19,-5,'B'),colorgreen;
DRAWTEXT(d>80,80,'S'),colorlired;
DRAWTEXT(CROSS(MA(C,10),MA(C,5)),LOW,'S_less'),colorred;
DRAWTEXT(CLOSE>MA(CLOSE,15) AND CLOSE<OPEN AND (C-LLV(LOW,40))/LLV(LOW,40)<36/100,-8,'增'),colorligreen;
|
