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

请老师帮忙改成文华可用,谢谢! [文华财经]

  • 咨询内容: AAA:=(3*C+H+L+O)/6;

    VAR1:(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36,LINETHICK2,COLORRED;

    VAR2:=(HHV(VAR1,2)+HHV(VAR1,4)+HHV(VAR1,8))/3;

    VAR3:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,8))/3;

    VAR4:(HHV(VAR2,2)+HHV(VAR2,4)+HHV(VAR2,8))/3;

    VAR5:(LLV(VAR3,2)+LLV(VAR3,4)+LLV(VAR3,8))/3,COLORRED;

    VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,8))/3;

    {DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));}

    DRAWTEXT_FIX(C>O,0.6,0.6,1,'更多指标+V:HDWR256'),COLOR0FFFFF;

    IF((VAR1 <= REF(VAR1,1)),VAR1,DRAWNULL),COLORGREEN,LINETHICK3;

    IF((VAR1 >= REF(VAR1,1)),VAR1,DRAWNULL),COLORRED,LINETHICK3;

    STICKLINE(VAR4>VAR1,VAR4,VAR1,0,0),COLORBLUE;

    DRAWKLINE(H,O,L,C);

    DRAWTEXT(REF(VAR5,1)=REF(VAR1,1) AND VAR5<VAR1,L*0.99,'买入'),COLORRED;

    DRAWTEXT(REF(VAR6,1)=REF(VAR1,1) AND VAR6<VAR1,L*0.98,'↖加仓'),COLORYELLOW;

    DRAWTEXT(REF(VAR4,1)=REF(VAR1,1) AND VAR4>VAR1,H,'卖点'),COLORGREEN;

    ZT:=REF(C,1)*1.1-C<0.01 AND H=C;{涨停};

    突破:=CROSS(C,VAR4) AND ZT;

    DRAWTEXT(突破,L,'爆点');

    STICKLINE(突破,CLOSE,OPEN,3.2,0),COLOR0077FF;

    STICKLINE(突破,CLOSE,OPEN,2.5,0),COLOR0099FF;

    STICKLINE(突破,CLOSE,OPEN,1.9,0),COLOR00BBFF;

    STICKLINE(突破,CLOSE,OPEN,1.2,0),COLOR00DDFF;

    STICKLINE(突破,CLOSE,OPEN,0.3,0),COLOR00FFFF;

     

     来源:程序化99

  • 文华技术人员:  参考

    AAA:=(3*C+H+L+O)/6; VAR1:(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36,LINETHICK2,COLORRED;
    VAR2:=(HHV(VAR1,2)+HHV(VAR1,4)+HHV(VAR1,8))/3;
    VAR3:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,8))/3;
    VAR4:(HHV(VAR2,2)+HHV(VAR2,4)+HHV(VAR2,8))/3;
    VAR5:(LLV(VAR3,2)+LLV(VAR3,4)+LLV(VAR3,8))/3,COLORRED;
    VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,8))/3;

    IF((VAR1 <= REF(VAR1,1)),VAR1,NULL),COLORGREEN,LINETHICK3;
    IF((VAR1 >= REF(VAR1,1)),VAR1,NULL),COLORRED,LINETHICK3;
    STICKLINE(VAR4>VAR1,VAR4,VAR1,0,0),COLORBLUE;
    DRAWKLINE1(H,O,L,C);
    DRAWTEXT(REF(VAR5,1)=REF(VAR1,1) AND VAR5<VAR1,L*0.99,'买入'),COLORRED;
    DRAWTEXT(REF(VAR6,1)=REF(VAR1,1) AND VAR6<VAR1,L*0.98,'↖加仓'),COLORYELLOW;
    DRAWTEXT(REF(VAR4,1)=REF(VAR1,1) AND VAR4>VAR1,H,'卖点'),COLORGREEN;
    ZT:=REF(C,1)*1.1-C<0.01 AND H=C;

    突破:=CROSS(C,VAR4) AND ZT;
    DRAWTEXT(突破,L,'爆点');
    STICKLINE(突破,CLOSE,OPEN,3.2,0),COLOR0077FF;
    STICKLINE(突破,CLOSE,OPEN,2.5,0),COLOR0099FF;
    STICKLINE(突破,CLOSE,OPEN,1.9,0),COLOR00BBFF;
    STICKLINE(突破,CLOSE,OPEN,1.2,0),COLOR00DDFF;
    STICKLINE(突破,CLOSE,OPEN,0.3,0),COLOR00FFFF;

     

     来源: WWW.CXH99.COM

  • 文华客服: 这个也请老师改改,谢谢!


    V1:=MA(C,3)=HHV(MA(C,3),7);V2:=MA(C,3)>MA(C,5);V3:=MA(V,5)>MA(V,10)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;底部买多:CROSS(RSI20,11)*1,COLORRED;VAR3A:=3;VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);加仓:IF(FILTER(YXF=1,5),1,0),STICK,COLORFFFFFF,LINETHICK3; A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV (L,55))*100,5,1); FY:=EMA(A51,5); A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; QS:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));

     

  • 网友回复:  3楼可以直接在wh6或wh7上使用

 

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

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

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

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


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

相关文章

    没有相关内容