原理解析:
源碼:
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,3,1);
趨勢:3*K-2*D,COLORWHITE,LINETHICK1;
IF(趨勢>=REF(趨勢,3),趨勢,DRAWNULL),COLORRED,LINETHICK3;
IF(趨勢< REF(趨勢,1),趨勢,DRAWNULL),COLORLIBLUE,LINETHICK1;
{階段底:EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,COLORRED,LINETHICK2;}
DRAWLINE(D>=HHV(D,13),D,D<=LLV(D,13),D,1),COLOR00FF00;頂:100,COLOR00FF00;
強:80,COLORLIBLUE;
趨:50,COLORBROWN,DOTLINE;
底:20,COLORFFFF00;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' www.kzuj.com.cn '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;