同花顺KD彩色副图指标 源码
2017-09-19 14:16:00来源:本站整理浏览:339
kd变形,用法同kd
加入了中期34日均线,有利于看盘
n:=8;
m:=3;
VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M),COLORFF00FF;
D:MA(K,M),colorliblue;
RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
中线k:SMA(RSV,5,1),colorred;
中线d:SMA(中线k,10,1),colorgreen;
底:18,colorcyan;
中线:50,colorgreen;
顶:85,colorlired;
STICKLINE(中线k>中线d,中线k,中线d,1,0),colorred;
STICKLINE(中线k<=中线d,中线k,中线d,1,0),colorgreen;
- 上一篇公式:同花顺MACD同KDJ金叉共振副图指标 源码
- 下一篇公式:同花顺九转主图指标 源码