相關標簽:
?
變動平滑
變動平滑{隨機指標}
?
?
原理解析:
?
?來源:程序化99( www.kzuj.com.cn )
源碼:
?
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100-50;
K:SMA(RSV,3,1),COLORBLUE;
D:SMA(K,3,1),COLORYELLOW;{變動平滑}
零線:0;
JX:=(H+L+2*C)/4;
BD:=200*(JX-REF(JX,4))/REF(JX,4),COLORSTICK;
三日:EMA(BD,3),COLORRED,LINETHICK2;
五日:EMA(BD,5),COLORGREEN,LINETHICK2;
TMACD:=4*(三日-五日);
STICKLINE(TMACD<REF(TMACD,1),0,TMACD,0,0 ),COLORGREEN;
STICKLINE(TMACD>=REF(TMACD,1),0,TMACD,0,0 ),COLORRED;STICKLINE(三日>REF(三日,1),-50,-49,4,0),COLORRED;
STICKLINE(TMACD>REF(TMACD,1) AND REF(TMACD,2)>REF(TMACD,1) ,-50,-40,0.00001,0),COLORRED;
STICKLINE(CROSS(TMACD,0) ,-50,-40,0.0001,0),COLORRED;STICKLINE(三日<REF(三日,1),50,49,4,0),COLORGREEN;
STICKLINE(TMACD<REF(TMACD,1) AND REF(TMACD,2)<REF(TMACD,1) ,50,40,0.00001,0),COLORGREEN;
STICKLINE(CROSS(0,TMACD) ,50,40,0.0001,0),COLORGREEN;
?
公式導入教程: 【通達信公式源碼導入方法教程】 【同花順公式源碼導入方法教程】 【大智慧新一代公式源碼導入方法教程】
?