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

请老师帮忙把一下通达信的指标改为博弈大师 [博易POBO]

咨询内容:

请老师帮忙把一下通达信的指标改为博弈大师

以下为60分钟周期显示,帮忙在优化一下最好其它周期也可以用,在此跪谢!
 
 HJ_1:=5;
HJ_2:=1;
HJ_3:=(OPEN+CLOSE+HIGH+LOW)/4;
乾1:IF(PERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1+5/100)),COLORLIGREEN,LINETHICK6;
坤1:IF(PERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1-5/100)),COLORLIRED,LINETHICK6;
平均价:IF(PERIOD!=4,DRAWNULL,SMA(HJ_3,5,1)),COLORWHITE;
乾2:IF(PERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1+10/100)),COLORGREEN,LINETHICK6;
坤2:IF(PERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1-10/100)),COLORRED,LINETHICK6;
DRAWBAND(乾1,RGB(0,139,69),乾2,RGB(0,139,69));
DRAWBAND(坤1,RGB(168,18,38),坤2,RGB(10,100,200));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWICON(CLOSE>OPEN AND LOW<=坤2,LOW,14);
DRAWICON(CLOSE<OPEN AND HIGH>=乾2,HIGH,13);
DRAWICON(REF(LOW,1)<LOW AND LOW<坤1,LOW,1);
DRAWICON(REF(HIGH,1)>HIGH AND HIGH>乾1,HIGH,2);

 

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

博易技术人员: HJ_1:=5;
HJ_2:=1;
HJ_3:=(OPEN+CLOSE+HIGH+LOW)/4;
乾1:SMA(HJ_3,HJ_1,HJ_2)*(1+5/100),COLORGREEN,LINETHICK6;
坤1:SMA(HJ_3,HJ_1,HJ_2)*(1-5/100),COLORRED,LINETHICK6;
平均价:SMA(HJ_3,5,1),COLORWHITE;
乾2:SMA(HJ_3,HJ_1,HJ_2)*(1+10/100),COLORGREEN,LINETHICK6;
坤2:SMA(HJ_3,HJ_1,HJ_2)*(1-10/100),COLORRED,LINETHICK6;


FILLRGN(乾1,乾1,乾2),COLOR458B00;
FILLRGN(乾2,乾1,乾2),COLOR458B00;

FILLRGN(坤1,坤2,坤1),COLOR2612A8;
FILLRGN(坤2,坤2,坤1),COLOR2612A8;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWICON(CLOSE>OPEN AND LOW<=坤2,LOW,14);
DRAWICON(CLOSE<OPEN AND HIGH>=乾2,HIGH,13);
DRAWICON(REF(LOW,1)<LOW AND LOW<坤1,LOW,1);
DRAWICON(REF(HIGH,1)>HIGH AND HIGH>乾1,HIGH,2);

您好,您的版本太老了,建议更换新版本。 HJ_1:=5;
HJ_2:=1;
HJ_3:=(OPEN+CLOSE+HIGH+LOW)/4;
乾1:IF(DATAPERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1+5/100)),COLORGREEN,LINETHICK6;
坤1:IF(DATAPERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1-5/100)),COLORRED,LINETHICK6;
平均价:IF(DATAPERIOD!=4,DRAWNULL,SMA(HJ_3,5,1)),COLORWHITE;
乾2:IF(DATAPERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1+10/100)),COLORGREEN,LINETHICK6;
坤2:IF(DATAPERIOD!=4,DRAWNULL,SMA(HJ_3,HJ_1,HJ_2)*(1-10/100)),COLORRED,LINETHICK6;

FILLRGN2(乾1,乾2,乾1,COLOR458B00,乾2,COLOR458B00);

FILLRGN2(坤1,坤2,坤1,COLOR2612A8,坤2,COLOR2612A8);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWICON(CLOSE>OPENANDLOW<=坤2,LOW,14);
DRAWICON(CLOSE<OPENANDHIGH>=乾2,HIGH,13);
DRAWICON(REF(LOW,1)<LOWANDLOW<坤1,LOW,1);
DRAWICON(REF(HIGH,1)>HIGHANDHIGH>乾1,HIGH,2);
 
 
画线在30分下。 来源 程序化久久网

 

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

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


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

相关文章

    没有相关内容