您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

老师帮忙将博易的改成文华,谢谢 [文华财经]

  • 咨询内容:  VAR1:=EMA(CLOSE,8);
    VAR2:=EMA(CLOSE,13);
    VAR3:=EMA(CLOSE,21);
    VAR4:=EMA(CLOSE,55);
    VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
    VAR6:=(VAR5-REF(VAR5,15))/REF(VAR5,15)*100;
    VAR7:=(VAR5-REF(VAR5,15))/REF(VAR5,15)*100;
    VAR8:=EMA(VAR6,8);
    STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,5,0), COLORFF0000 ;
    STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,5,0), COLOR62B3FF;
    STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,10,0),  COLORRED;
    STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,5,0),COLORFF00FF ;
    STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,10,0),COLOR00FFFF ;
    STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,5,1),COLORGREEN;;
    VAR9:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)*100;
    VARA:=VAR9>1*REF(VAR9,1) AND VAR9<-26 AND VAR9>-40*1.5;
    VARB:=VOL/C*100;
    VARC:=LLV(LOW,50);
    VARD:=SUM(VOL,VARC);
    VARE:=HHV(HIGH,50);
    VARF:=SUM(VOL,VARE);
    VAR10:=(CLOSE-REF(OPEN,VARE))/REF(OPEN,VARE)*100;
    VAR11:=VARF/C*100;
    VAR12:=(CLOSE-REF(OPEN,VARC))/REF(OPEN,VARC)*100;
    VAR13:=VARD/C*100;
    VAR14:=MA(CLOSE,3);
    VAR15:=REF(CLOSE,2)*0.865;
    VAR16:=REF(CLOSE,13)*0.772;
    VAR17:=MIN(VAR15,VAR16);
    VAR18:=MA(CLOSE,13);
    超跌: IF((CLOSE-VAR17)/CLOSE<0.03 AND VAR10<-35 AND SUM(VARB,5)/5<1.8,1,0)*10,  COLORWHITE;
    DRAWTEXT(超跌,超跌,'底', COLORFFFF17 ;
    VAR19:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
    VAR1A:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
    VAR1B:=EMA(VAR1A,9);
    VAR1C:=2*(VAR1A-VAR1B);
    DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A<VAR1B,-10,'',  COLORWHITE;
    DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A>=VAR1B,5,'',   COLORWHITE;
    STICKLINE(VAR1A<-50 AND VAR19>7,0,-10,5,0),COLORFFFF00 ;
    DRAWICON(VAR6>0,0-0.07,4);
    DRAWICON(VAR6<0,0+0.07,5);

     

     来源:程序化99

  • 文华技术人员: 不同软件的函数处理机制不同,加载效果略有差异是正常的,请理解,参考:
    VAR1:=EMA(CLOSE,8);
    VAR2:=EMA(CLOSE,13);
    VAR3:=EMA(CLOSE,21);
    VAR4:=EMA(CLOSE,55);
    VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
    VAR6:=(VAR5-REF(VAR5,15))/REF(VAR5,15)*100;
    VAR7:=(VAR5-REF(VAR5,15))/REF(VAR5,15)*100;
    VAR8:=EMA(VAR6,8);
    STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,5,0), COLORFF0000 ;
    STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,5,0), COLOR62B3FF;
    STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,10,0),  COLORRED;
    STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,5,0),COLORFF00FF ;
    STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,10,0),COLOR00FFFF ;
    STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,5,1),COLORGREEN;
    VAR9:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)*100;
    VARA:=VAR9>1*REF(VAR9,1) AND VAR9<-26 AND VAR9>-40*1.5;
    VARB:=VOL/C*100;
    VARC:=LLV(LOW,50);
    VARD:=SUM(VOL,VARC);
    VARE:=HHV(HIGH,50);
    VARF:=SUM(VOL,VARE);
    VAR10:=(CLOSE-REF(OPEN,VARE))/REF(OPEN,VARE)*100;
    VAR11:=VARF/C*100;
    VAR12:=(CLOSE-REF(OPEN,VARC))/REF(OPEN,VARC)*100;
    VAR13:=VARD/C*100;
    VAR14:=MA(CLOSE,3);
    VAR15:=REF(CLOSE,2)*0.865;
    VAR16:=REF(CLOSE,13)*0.772;
    VAR17:=MIN(VAR15,VAR16);
    VAR18:=MA(CLOSE,13);
    超跌: IF((CLOSE-VAR17)/CLOSE<0.03 AND VAR10<-35 AND SUM(VARB,5)/5<1.8,1,0)*10,  COLORWHITE;
    DRAWTEXT(超跌,超跌,'底', COLORFFFF17 ;
    VAR19:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
    VAR1A:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
    VAR1B:=EMA(VAR1A,9);
    VAR1C:=2*(VAR1A-VAR1B);
    DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A<VAR1B,-10,'',  COLORWHITE;
    DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A>=VAR1B,5,'',   COLORWHITE;
    STICKLINE(VAR1A<-50 AND VAR19>7,0,-10,5,0),COLORFFFF00 ;
    DRAWICON(VAR6>0,0-0.07,4);
    DRAWICON(VAR6<0,0+0.07,5);  

 

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

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


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

相关文章

    没有相关内容