一个衰减变色KDJ的指标代码

楼主  收藏   举报   帖子创建时间:  2019-05-05 05:52 回复:0 关注量:456
老师,可否把这段代码编译为mt4可用代码啊?谢谢。



指标名称:超级KD
指标参数:
N  15
P1  5
P2  3
P3  3

指标源代码:
VAR1:=((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)))*(100);
VAR2:=SMA(VAR1,P1,1);
K:=SMA(VAR2,P2,1);
D:=SMA(K,P3,1);
STICKLINE((K >= D),K,D,6,0),COLOR0000A8;
STICKLINE((K >= D),K,D,5,0),COLOR0000C0;
STICKLINE((K >= D),K,D,4,0),COLOR0000E0;
STICKLINE((K >= D),K,D,3,0),COLOR0000F0;
STICKLINE((K >= D),K,D,2,0),COLOR0000D0;
STICKLINE((K >= D),K,D,1,0),COLOR8080FF;
STICKLINE((K <= D),K,D,6,0),COLOR008800;
STICKLINE((K <= D),K,D,5,0),COLOR009900;
STICKLINE((K <= D),K,D,4,0),COLOR00AA00;
STICKLINE((K <= D),K,D,3,0),COLOR00BB00;
STICKLINE((K <= D),K,D,2,0),COLOR00CC00;
STICKLINE((K <= D),K,D,1,0),COLOR00DD00;
{能不能加上上下箭头啊}
顶线:90,COLOR808080;
底线:10,COLOR808080;

7_66343_b44a053fff00f39.jpg
打赏