利用kdj来看短线的顶底。根据台湾罗威kdj分析方法和18日和50日均线看趋势。
RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
k:SMA(RSV,M1,1);
d:SMA(k,M2,1);
a=K-D;
STICKLINE(a>0,a,0,10,1),colorred;
STICKLINE(a<0,0,a,10,1),colorblue;
b=k>80 AND REF(k,1)>80 AND REF(k,2)>80;
C=k<20 AND REF(k,1)<20 AND REF(k,2)<20;
d:=(MA(CLOSE,M3)-MA(CLOSE,M4))/MA(CLOSE,M4)*100;
DRAWICON(b,95,1);
DRAWICON(C,0,2);
STICKLINE(d>0,d+50,50,15,0),colorred;
STICKLINE(d<0,50,d+50,15,0),colorblue;