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

[求助]请老师转为文华公式,谢谢 [文华财经]

  • 咨询内容:  A1:=EMA(C,12)-EMA(C,25);
    A2:=EMA(A1,6);
    获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK0;
    大黑码:(A2<0)*A2,COLORD4FF7F,LINETHICK0;
    坚绝做空:(A1<0)*A1,COLORB00058,LINETHICK0;
    买入持股:(A1>=0)*A1,COLORRED,LINETHICK0;
    STICKLINE(A2>=0,A2,0,5,0),COLORWHITE;
    STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F;
    STICKLINE(A1<0,A1,0,5,0),COLORB00058;
    STICKLINE(A1>=0,A1,0,5,0),COLORRED;
    VAR8:=VOL>2*MA(VOL,30);
    VAR9:="DMI.ADX"(12,6);
    VARA:="DMI.ADXR"(12,6);
    VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
    VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
    VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
    VARF:=TROUGHBARS(3,15,1)<4;VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
    VAR11:=IF(VARF=1,50,0);
    多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;0,COLORRED;
    STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),COLORF00FF0;
    STICKLINE(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW;DRAWTEXT(FILTER(VARF=1,3),25,'码出现',COLORRED ;
    STICKLINE(多空<-10,0,多空,0.85,0),COLORYELLOW;STICKLINE(多空>10,0,多空,0.95,0),COLORRED;

     

     来源:程序化99

  • 文华技术人员:  不同软件对函数的处理略有不同,加载效果略有差异是正常的,参考:
    N:=10;  A1:=EMA(C,12)-EMA(C,25); A2:=EMA(A1,6); 获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK1; 大黑码:(A2<0)*A2,COLORD4FF7F,LINETHICK1; 坚绝做空:(A1<0)*A1,COLORB00058,LINETHICK1; 买入持股:(A1>=0)*A1,COLORRED,LINETHICK1; STICKLINE1(A2>=0,A2,0,5,0),COLORWHITE; STICKLINE1(A2<0,A2,0,5,0),COLORD4FF7F; STICKLINE1(A1<0,A1,0,5,0),COLORB00058; STICKLINE1(A1>=0,A1,0,5,0),COLORRED; VAR8:=VOL>2*MA(VOL,30); TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N); HD := HIGH-REF(HIGH,1); LD := REF(LOW,1)-LOW; DMP:= SUM(IFELSE(HD>0 && HD>LD,HD,0),12); DMM:= SUM(IFELSE(LD>0 && LD>HD,LD,0),12); PDI: =DMP*100/TR; MDI: =DMM*100/TR; ADX: =MA(ABS(MDI-PDI)/(MDI+PDI)*100,6); ADXR:=(ADX+REF(ADX,6))/2; VAR9:=ADX; VARA:=ADXR; VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04; VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1); VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))); VARF:=TROUGHBARS(3,15,1,1)<4; VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2); VAR11:=IF(VARF=1,50,0); 多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE; 0,COLORRED; STICKLINE1(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),COLORF00FF0; STICKLINE1(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW; DRAWTEXT(FILTER(VARF=1,3),25,'码出现',COLORRED ; STICKLINE1(多空<-10,0,多空,0.85,0),COLORYELLOW; STICKLINE1(多空>10,0,多空,0.95,0),COLORRED;

     

     来源: WWW.CXH99.COM

  • 文华客服:  老师好,通达信看到的效果是


    文件名:qq图片20180911213621.png
    有根很直观的黄柱

     

  • 网友回复:  改了之后黄柱消失,有点像MACD了


    文件名:qq图片20180911213716.png

     

  • 网友回复:  最好能把黄柱黑马出现显示出来,谢谢老师了

 

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

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


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

相关文章

    没有相关内容