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

老师 帮我改在博易大师 谢谢 [博易POBO]

咨询内容: 老师 帮我改在博易大师 谢谢 LHS:=IFELSE(DATE>990202,0,1);
MA3:=MA(C,170);
DRAWGBK(MA3>C,RGB(0,0,0),RGB(9,60,1),0);
DRAWGBK(MA3<C,RGB(0,0,0),RGB(62,1,1),0);
DRAWGBK(MA3=0,RGB(0,0,0),RGB(0,0,0),0);
HH1:=IFELSE(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0)*LHS,LINETHICK2;
LL1:=IFELSE(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0)*LHS,LINETHICK2;
HH2:=VALUEWHEN(HH1>0,HH1)*LHS,LINETHICK2;
LL2:=VALUEWHEN(LL1>0,LL1)*LHS,LINETHICK2;
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0))*LHS,LINETHICK2;
K2:=VALUEWHEN(K1<>0,K1)*LHS,LINETHICK2;
G:=IFELSE(K2=1,HH2,LL2)*LHS,LINETHICK2;
G1:=VALUEWHEN(ISLASTBAR,G)*LHS,LINETHICK2;
DRAWNUMBER(L>0,G1,G1,0,COLORCYAN);
W1:=K2*LHS,LINETHICK2;
W2:=OPEN-CLOSE*LHS,LINETHICK2;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE)*LHS,LINETHICK2;
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE)*LHS,LINETHICK2;
DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCYAN);
DRAWLINE(W1=1,LOW,W1=1,LT,COLORCYAN);
DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);
DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);
STICKLINE(W1>0,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);
STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0);
STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORCYAN,0);
DRAWLINE(W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1),COLORGREEN),DOT;
DRAWLINE(W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1),COLORYELLOW),DOT;
DRAWSL(K2=1,G,0,1,0,COLORGREEN),DOT;
DRAWSL(K2=-3,G,0,1,0,COLORYELLOW),DOT;
DRAWTEXT(CROSS(W1,0),G,'卖'),COLORGREEN,ALIGN0,FONTSIZE16;
PLAYSOUND(CROSS(W1,0),'A');
DRAWTEXT(CROSS(0,W1),G,'买'),COLORFFDD00,ALIGN0,FONTSIZE16;
PLAYSOUND(CROSS(0,W1),'A');
N3:=BARSLAST(CROSS(W1>0,0.5))*LHS,LINETHICK2;
N4:=BARSLAST(CROSS(W1<=0,0.5))*LHS,LINETHICK2;
HH3:=IF(W1<=0,REF(HV(H,N4),N3),NULL),COLORYELLOW,DOT;
LL3:=IF(W1>0,REF(LV(L,N3),N4),NULL),COLORGREEN,DOT;
B:=CROSSUP(C,HH3)||REF(ISNULL(HH3),1)&&C>HH3;
S:=CROSSDOWN(C,LL3)||REF(ISNULL(LL3),1)&&C<LL3;
DRAWICON(CROSS(0,W1),L, 'ICO010'),COLORFF0000;
DRAWICON(CROSS(W1,0),H, 'ICO011'),COLOR00FFFF;
LC:= REF(CLOSE,1)*LHS,LINETHICK2;
RSI:=SMA(MAX(CLOSE-LC, 0), 6, 1)/SMA(ABS(CLOSE-LC), 6, 1)*100*LHS,LINETHICK2;
DRAWTEXT(FILTER(CROSS(RSI,30) AND (CLOSE>REF(HIGH,1.5)),5),LOW,'卖平'),COLORGREEN,FONTSIZE13;
DRAWTEXT(FILTER(CROSS(70,RSI) AND (CLOSE<REF(LOW,1.5)),5),HIGH,'买平'),COLORYELLOW,FONTSIZE13;
DRAWTEXT(LHS<1&&REF(ISLASTBAR,10),HIGH,'已过期');

 

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

博易技术人员: 您好,此类公式无法修改,很多函数不匹配 我自行修改了但是怎么输出数值为0呢
 
 
 LHS:=IFELSE(DATE>990202,0,1);
MA3:=MA(C,170);
//DRAWGBK(MA3>C,RGB(0,0,0),RGB(9,60,1),0);
//DRAWGBK(MA3<C,RGB(0,0,0),RGB(62,1,1),0);
//DRAWGBK(MA3=0,RGB(0,0,0),RGB(0,0,0),0);
HH1:=IFELSE(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0)*LHS,LINETHICK2;
LL1:=IFELSE(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0)*LHS,LINETHICK2;
HH2:=VALUEWHEN(HH1>0,HH1)*LHS,LINETHICK2;
LL2:=VALUEWHEN(LL1>0,LL1)*LHS,LINETHICK2;
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0))*LHS,LINETHICK2;
K2:=VALUEWHEN(K1<>0,K1)*LHS,LINETHICK2;
G:=IFELSE(K2=1,HH2,LL2)*LHS,LINETHICK2;
G1:=VALUEWHEN(ISLASTBAR,G)*LHS,LINETHICK2;
DRAWNUMBER(L>0,G1,G1,0),COLORCYAN;
W1:=K2*LHS,LINETHICK2;
W2:=OPEN-CLOSE*LHS,LINETHICK2;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE)*LHS,LINETHICK2;
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE)*LHS,LINETHICK2;
DRAWLINE(W1=1,HIGH,W1=1,HT),COLORCYAN;
DRAWLINE(W1=1,LOW,W1=1,LT),COLORCYAN;
DRAWLINE(W1=-3,HIGH,W1=-3,HT),COLORRED;
DRAWLINE(W1=-3,LOW,W1=-3,LT),COLORRED;
STICKLINE(W1>0,OPEN,CLOSE,5,1),COLORCYAN;
STICKLINE(W1<=0,OPEN,CLOSE,5,1),COLORRED;
STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,5,0),COLORRED;
STICKLINE(W2>0&&W1>0,OPEN,CLOSE,5,0),COLORCYAN;
DRAWLINE(W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1)),COLORGREEN,DASH;
DRAWLINE(W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1)),COLORYELLOW,DASH;
DRAWSL(K2=1,G,0,1,0),COLORGREEN,DASH;
DRAWSL(K2=-3,G,0,1,0),COLORYELLOW,DASH;
DRAWTEXT(CROSS(W1,0),G,'卖'),COLORGREEN,ALIGN0,FONTSIZE16;
//PLAYSOUND(CROSS(W1,0),'A');
DRAWTEXT(CROSS(0,W1),G,'买'),COLORFFDD00,ALIGN0,FONTSIZE16;
//PLAYSOUND(CROSS(0,W1),'A');
N3:=BARSLAST(CROSS(W1>0,0.5))*LHS,LINETHICK2;
N4:=BARSLAST(CROSS(W1<=0,0.5))*LHS,LINETHICK2;
HH3:=IF(W1<=0,REF(HHV(H,N4),N3),DRAWNULL),COLORYELLOW,DASH;
LL3:=IF(W1>0,REF(LLV(L,N3),N4),DRAWNULL),COLORGREEN,DASH;
B:=CROSS(C,HH3)||REF(IF(HH3=DRAWNULL,1,0),1)&&C>HH3;
S:=CROSS(LL3,C)||REF(IF(LL3=DRAWNULL,1,0),1)&&C<LL3;
DRAWICON(CROSS(0,W1),L,'ICO010'),COLORFF0000;
DRAWICON(CROSS(W1,0),H,'ICO011'),COLOR00FFFF;
LC:=REF(CLOSE,1)*LHS,LINETHICK2;
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100*LHS,LINETHICK2;
DRAWTEXT(FILTER(CROSS(RSI,30)AND(CLOSE>REF(HIGH,1.5)),5),LOW,'卖平'),COLORGREEN,FONTSIZE13;
DRAWTEXT(FILTER(CROSS(70,RSI)AND(CLOSE<REF(LOW,1.5)),5),HIGH,'买平'),COLORYELLOW,FONTSIZE13;
DRAWTEXT(LHS<1&&REF(ISLASTBAR,10),HIGH,'已过期'); 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


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

相关文章

    没有相关内容