您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

麻烦老师把这个代码里的美国线改成K线好吗? [博易POBO]

咨询内容:

麻烦老师把这个代码里的美国线改成K线好吗?


S:=CROSS(CLOSE,EMA2(HIGH,30));
X:=CROSS(EMA2(LOW,30),CLOSE);
WS:=BARSLAST(S)+1;
WX:=BARSLAST(X)+1;
SS:=CROSS(SUM(S,WX),0.5);
XX:=CROSS(SUM(X,WS),0.5);
STICKLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),5,1),COLORMAGENTA;
STICKLINE(CLOSE<EMA2(LOW,30),EMA2(LOW,30),EMA2(HIGH,30),5,1),COLORBLUE;
STICKLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),EMA2(LOW,150),5,1),COLORRED;
STICKLINE(CLOSE<EMA2(LOW,150),EMA2(LOW,150),EMA2(HIGH,150),5,1),COLORGREEN;
PARTLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30)),COLORMAGENTA;
PARTLINE(CLOSE<EMA2(HIGH,30),EMA2(HIGH,30)),COLORBLUE;
PARTLINE(CLOSE>EMA2(LOW,30),EMA2(LOW,30)),COLORMAGENTA;
PARTLINE(CLOSE<EMA2(LOW,30),EMA2(LOW,30)),COLORBLUE;
PARTLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150)),COLORRED;
PARTLINE(CLOSE<EMA2(HIGH,150),EMA2(HIGH,150)),COLORGREEN;
PARTLINE(CLOSE>EMA2(LOW,150),EMA2(LOW,150)),COLORRED;
PARTLINE(CLOSE<EMA2(LOW,150),EMA2(LOW,150)),COLORGREEN;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),COLORGREEN;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0),COLORRED;
DRAWTEXT(SS,LOW,'多');
DRAWTEXT(XX,HIGH,'空');
 
麻烦老师把这个代码里的美国线改成K线好吗?
 

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: 您发的这个指标里并没有美国线,是不是复制错公式了? S:=CROSS(CLOSE,EMA2(HIGH,30));
X:=CROSS(EMA2(LOW,30),CLOSE);
WS:=BARSLAST(S)+1;
WX:=BARSLAST(X)+1;
SS:=CROSS(SUM(S,WX),0.5);
XX:=CROSS(SUM(X,WS),0.5);
STICKLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),COLORMAGENTA,1);
STICKLINE(CLOSE<EMA2(LOW,30),EMA2(LOW,30),EMA2(HIGH,30),COLORBLUE,1); 
STICKLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),EMA2(LOW,150),COLORLIGHTRED,1);
STICKLINE(CLOSE<EMA2(LOW,150),EMA2(LOW,150),EMA2(HIGH,150),COLORLIGHTGREEN,1);
PARTLINE(CLOSE>EMA2(HIGH,30),EMA2(HIGH,30),COLORMAGENTA);
PARTLINE(CLOSE<EMA2(HIGH,30),EMA2(HIGH,30),COLORBLUE);
PARTLINE(CLOSE>EMA2(LOW,30),EMA2(LOW,30),COLORMAGENTA);
PARTLINE(CLOSE<EMA2(LOW,30),EMA2(LOW,30),COLORBLUE);
PARTLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),COLORLIGHTRED);
PARTLINE(CLOSE<EMA2(HIGH,150),EMA2(HIGH,150),COLORLIGHTGREEN);
PARTLINE(CLOSE>EMA2(LOW,150),EMA2(LOW,150),COLORLIGHTRED);
PARTLINE(CLOSE<EMA2(LOW,150),EMA2(LOW,150),COLORLIGHTGREEN);
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,COLORLIGHTGREEN,0);
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,COLORRED,0);
DRAWLINE(OPEN>=CLOSE,H,OPEN>=CLOSE,L,COLORLIGHTGREEN);
DRAWLINE(CLOSE>=OPEN,H,CLOSE>=OPEN,L,COLORRED);
DRAWTEXT(SS,LOW,'多');
DRAWTEXT(XX,HIGH,'空');
 
那老师麻烦你那这个代码改成博易大师版的吧   来源 程序化久久网

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息或微信:cxhjy888 进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容