请老师帮把文华财经指标转换成博易大师的代码好吗? [博易POBO]
咨询内容:
VARA:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS: VARC,COLORWHITE;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
VAR1:=(HHV(HIGH,8)-LLV(LOW,8));
VAR2:=(HHV(HIGH,8)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,8));
VAR4:=VAR2/VAR1*100-70 ;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,30);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IFELSE(VAR9>100,VAR9-100,0);
VARAA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 && B-B1>=0,100,100,COLORWHITE,0);
STICKLINE(B>0 && B-B1<0,100,100,COLORCYAN,0);
STICKLINE(B>0 && B-B1>=0,79,80,COLORGREEN,0);
STICKLINE(B>0 && B-B1<0,79,80,COLORRED,0);
STICKLINE(B>0 && B-B1>=0,49,50,COLORYELLOW,0);
STICKLINE(B>0 && B-B1<0,49,50,COLORYELLOW,0);
STICKLINE(B>0 && B-B1>=0,19,20,COLORGREEN,0);
STICKLINE(B>0 && B-B1<0,19,20,COLORRED,0);
STICKLINE(B>0 && B-B1>=0,1,1,COLORWHITE,0);
STICKLINE(B>0 && B-B1<0,1,1,COLORCYAN,0);
STICKLINE(B-B1>0,B,B1,COLORRED,1);
STICKLINE(B-B1<0,B,B1,COLORCYAN,1);
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,8);
VA:=HHV(HIGH,20);
FB:=EMA((V1-V2)/(VA-V2)*100,16);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;
QS<8&&B-B1>0&&REF(B-B1<0,1);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS: VARC,COLORWHITE;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
VAR1:=(HHV(HIGH,8)-LLV(LOW,8));
VAR2:=(HHV(HIGH,8)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,8));
VAR4:=VAR2/VAR1*100-70 ;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,30);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IFELSE(VAR9>100,VAR9-100,0);
VARAA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 && B-B1>=0,100,100,10,0),COLORWHITE;
STICKLINE(B>0 && B-B1<0,100,100,10,0),COLORCYAN;
STICKLINE(B>0 && B-B1>=0,79,80,10,0),COLORGREEN;
STICKLINE(B>0 && B-B1<0,79,80,10,0),COLORRED;
STICKLINE(B>0 && B-B1>=0,49,50,10,0),COLORYELLOW;
STICKLINE(B>0 && B-B1<0,49,50,10,0),COLORYELLOW;
STICKLINE(B>0 && B-B1>=0,19,20,10,0),COLORGREEN;
STICKLINE(B>0 && B-B1<0,19,20,10,0),COLORRED;
STICKLINE(B>0 && B-B1>=0,1,1,10,0),COLORWHITE;
STICKLINE(B>0 && B-B1<0,1,1,10,0),COLORCYAN;
STICKLINE(B-B1>0,B,B1,10,1),COLORRED;
STICKLINE(B-B1<0,B,B1,10,1),COLORCYAN;
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,8);
VA:=HHV(HIGH,20);
FB:=EMA((V1-V2)/(VA-V2)*100,16);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;
QS<8&&B-B1>0&&REF(B-B1<0,1); 测试时,在STICKLINE(B>0&&B-B1>=0。。。。。。的 & 终止,无法运行下去了。 来源 程序化久久网
请老师帮把文华财经指标转换成博易大师的代码好吗?
文华公式如下:VARA:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS: VARC,COLORWHITE;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
VAR1:=(HHV(HIGH,8)-LLV(LOW,8));
VAR2:=(HHV(HIGH,8)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,8));
VAR4:=VAR2/VAR1*100-70 ;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,30);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IFELSE(VAR9>100,VAR9-100,0);
VARAA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 && B-B1>=0,100,100,COLORWHITE,0);
STICKLINE(B>0 && B-B1<0,100,100,COLORCYAN,0);
STICKLINE(B>0 && B-B1>=0,79,80,COLORGREEN,0);
STICKLINE(B>0 && B-B1<0,79,80,COLORRED,0);
STICKLINE(B>0 && B-B1>=0,49,50,COLORYELLOW,0);
STICKLINE(B>0 && B-B1<0,49,50,COLORYELLOW,0);
STICKLINE(B>0 && B-B1>=0,19,20,COLORGREEN,0);
STICKLINE(B>0 && B-B1<0,19,20,COLORRED,0);
STICKLINE(B>0 && B-B1>=0,1,1,COLORWHITE,0);
STICKLINE(B>0 && B-B1<0,1,1,COLORCYAN,0);
STICKLINE(B-B1>0,B,B1,COLORRED,1);
STICKLINE(B-B1<0,B,B1,COLORCYAN,1);
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,8);
VA:=HHV(HIGH,20);
FB:=EMA((V1-V2)/(VA-V2)*100,16);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;
QS<8&&B-B1>0&&REF(B-B1<0,1);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: VARA:=LLV(LOW,35);VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS: VARC,COLORWHITE;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
VAR1:=(HHV(HIGH,8)-LLV(LOW,8));
VAR2:=(HHV(HIGH,8)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,8));
VAR4:=VAR2/VAR1*100-70 ;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,30);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IFELSE(VAR9>100,VAR9-100,0);
VARAA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 && B-B1>=0,100,100,10,0),COLORWHITE;
STICKLINE(B>0 && B-B1<0,100,100,10,0),COLORCYAN;
STICKLINE(B>0 && B-B1>=0,79,80,10,0),COLORGREEN;
STICKLINE(B>0 && B-B1<0,79,80,10,0),COLORRED;
STICKLINE(B>0 && B-B1>=0,49,50,10,0),COLORYELLOW;
STICKLINE(B>0 && B-B1<0,49,50,10,0),COLORYELLOW;
STICKLINE(B>0 && B-B1>=0,19,20,10,0),COLORGREEN;
STICKLINE(B>0 && B-B1<0,19,20,10,0),COLORRED;
STICKLINE(B>0 && B-B1>=0,1,1,10,0),COLORWHITE;
STICKLINE(B>0 && B-B1<0,1,1,10,0),COLORCYAN;
STICKLINE(B-B1>0,B,B1,10,1),COLORRED;
STICKLINE(B-B1<0,B,B1,10,1),COLORCYAN;
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,8);
VA:=HHV(HIGH,20);
FB:=EMA((V1-V2)/(VA-V2)*100,16);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;
QS<8&&B-B1>0&&REF(B-B1<0,1); 测试时,在STICKLINE(B>0&&B-B1>=0。。。。。。的 & 终止,无法运行下去了。 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容