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

指标改为wh6使用的 [文华财经]

  • 咨询内容:  {变色彩带}
    VAR1:=(2*CLOSE+HIGH+LOW)/4;
    操盘线: (EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,5)+EMA(VAR1,8)+EMA(VAR1,11)+EMA(VAR1,13))/6.4,COLORFFFF00,LINETHICK2,CIRCLEDOT;
    IF(操盘线>REF(操盘线,1),操盘线,DRAWNULL),COLOR0000FF,LINETHICK2,CIRCLEDOT;
    最新:C,COLORFFFFFF,CIRCLEDOT,NODRAW;
    IF(C>=REF(C,1),C,DRAWNULL),COLORRED,CIRCLEDOT,NODRAW;
    AA10:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
    BB10:=BETWEEN(C/AA10,C+H,C-H);
    DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);
    DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);
    CC1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
    DD0:=DMA(CLOSE,CC1);
    EE:=(1-14/100)*DD0;
    底:BETWEEN(C,EE*0.98,EE*1.01),STICK,COLORFFFFFF;
    DRAWTEXT_FIX(C>O,0.01,0.9,0,),COLORRED;
    DRAWTEXT(底>0,0.7,'  底'),COLOR00FFFF;
    DRAWICON(底>0,底,23);
    {VOL}
    AA:=V/CONST(HHV(V,90))*100;
    买1:STICKLINE(C>=O,AA+50,50,2,1),COLOR0000FF;
    STICKLINE(C<O OR(C=O AND C<REF(C,1)) ,AA+50,50,2,1),COLORFFFF00;
    {KDJ}
    RSV:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
    K:SMA(RSV,3,1),COLORBLUE,LINETHICK1;
    D:SMA(K,3,1),COLORBLACK,LINETHICK1;
    J:3*K-2*D,COLOR00FFFF,LINETHICK2;
    DRAWBAND(K,RGB(758,8,18),D,RGB(0,200,200));
    IF(K<REF(K,1),K,DRAWNULL),COLOR919100,LINETHICK1;
    IF(D<REF(D,1),D,DRAWNULL),COLOR919100,LINETHICK1;
    IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK2;
    IF(K>REF(K,1),K,DRAWNULL),COLOR4444FF,LINETHICK1;
    IF(D>REF(D,1),D,DRAWNULL),COLOR4444FF,LINETHICK1;
    IF(J>REF(J,1),J,DRAWNULL),COLOR1E1EFF,LINETHICK2;
    VAR11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    VAR12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
    VAR13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    VAR4:=(VAR11+2*VAR12+3*VAR13)/7;
    VAR5:=MA(VAR4,1);
    预警:STICKLINE(VAR5<=-8,68,50,1,0),COLORYELLOW;
    底部准备: IF(VAR5<-8,75,50),LINETHICK1,COLORCYAN;
    底部预警: IF(VAR5<-8,82,50),LINETHICK1,COLOR000091;
    QQ:= CLOSE>REF(CLOSE,1)*1.02;
    BB:=SMA(MAX(CLOSE-REF(CLOSE,1),0),21,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),21,1)*1000;
    GG:=MA(BB-LLV(BB,27),5);
    AA0:=(REF(H,4)-REF(L,1))/C*100>10;
    RB:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100/2+22)*1;
    QB:=((EMA(AMOUNT,13) /EMA(VOL,13)) / 100);
    ZH:=(((((CLOSE -QB) / QB) * 100) < (0)) AND ZXNH);
    CD:=ZH AND (CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100<RB-2;
    底买:AA0 AND QQ AND CD>0,STICK,COLORRED;
    DRAWTEXT(底买,0.7,'   底买'),COLORFFFFFF;
    DRAWICON(底买>0,底买,23);
    多头排列:=MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,60)
    AND  MA(C,60)>REF(MA(C,60),1);
    倍量:=VOL>1.1*REF(VOL,1);
    回调入:REF(DOWNNDAY(C,3),2) AND REF(C,1)<REF(C,2)  AND C>=O AND 多头排列 AND 倍量,STICK,COLORRED;
    DRAWTEXT(回调入,0.7,'   回调入'),COLORYELLOW;
    DRAWICON(回调入>0,回调入,13);M2:=EMA(C,2);
    M18:=EMA(C,18);
    买点:=IF(CROSS(M18,M2),5,0* 10000),COLORFF00FF,LINETHICK2;
    RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
    VARB2:=(RSVV/2+22)*1;
    Q:=EMA(VOL,13);
    Y0:=EMA(AMOUNT,13);
    S:=((Y0 /Q) / 100);
    X:=(((CLOSE -S) / S) * 100);
    F:=((X < (0)) AND ZXNH);
    XQ:=F AND RSVV<VARB2-2;
    阴买:买点 AND XQ ,STICK,COLOR00FF00;
    DRAWTEXT(阴买>0,0.6,'    阴买'),COLOR00FF00;
    DRAWICON(阴买>0,阴买,23); 

     

     来源:程序化99

  • 文华技术人员: 您1楼指标 ZXNH 变量没有定义,请自行补充定义下
    不同软件函数机制处理不同,加载效果可能略有差异,其余部分改写参考
     {变色彩带}
    VAR1:=(2*CLOSE+HIGH+LOW)/4;
    操盘线: (EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,5)+EMA(VAR1,8)+EMA(VAR1,11)+EMA(VAR1,13))/6.4,COLORFFFF00,LINETHICK2,CIRCLEDOT;
    IF(操盘线>REF(操盘线,1),操盘线,NULL),COLOR0000FF,LINETHICK2,CIRCLEDOT;
    最新:C,COLORFFFFFF,CIRCLEDOT,NODRAW;
    IF(C>=REF(C,1),C,NULL),COLORRED,CIRCLEDOT,NODRAW;AMOUNT:=AVPRICE*V;AA10:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
    BB10:=BETWEEN(C/AA10,C+H,C-H);
    DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);
    DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);
    CC1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
    DD0:=DMA(CLOSE,CC1);
    EE:=(1-14/100)*DD0;
    底:BETWEEN(C,EE*0.98,EE*1.01),STICK,COLORFFFFFF;
    //DRAWTEXT_FIX(C>O,0.01,0.9,0,),COLORRED;
    DRAWTEXT(底>0,0.7,'nbsp; 底',COLOR00FFFF;
    DRAWICON(底>0,底,23);
    AA:=V/REFX1(HHV(V,90),10000)*100;
    STICKLINE(C>=O,AA+50,50,2,1),COLOR0000FF;
    STICKLINE(C<O OR (C=O AND C<REF(C,1)) ,AA+50,50,2,1),COLORFFFF00;
    {KDJ}
    RSV:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
    K:SMA(RSV,3,1),COLORBLUE,LINETHICK1;
    D:SMA(K,3,1),COLORBLACK,LINETHICK1;
    J:3*K-2*D,COLOR00FFFF,LINETHICK2;
    //DRAWBAND(K,RGB(758,8,18),D,RGB(0,200,200));FILLRGN(K>D,K,D,RGB(758,8,18));FILLRGN(K<D,K,D,RGB(0,200,200));
    IF(K<REF(K,1),K,NULL),COLOR919100,LINETHICK1;
    IF(D<REF(D,1),D,NULL),COLOR919100,LINETHICK1;
    IF(J<REF(J,1),J,NULL),COLORFFFF00,LINETHICK2;
    IF(K>REF(K,1),K,NULL),COLOR4444FF,LINETHICK1;
    IF(D>REF(D,1),D,NULL),COLOR4444FF,LINETHICK1;
    IF(J>REF(J,1),J,NULL),COLOR1E1EFF,LINETHICK2;
    VAR11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    VAR12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
    VAR13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    VAR4:=(VAR11+2*VAR12+3*VAR13)/7;
    VAR5:=MA(VAR4,1);
    STICKLINE(VAR5<=-8,68,50,1,0),COLORYELLOW;
    底部准备: IF(VAR5<-8,75,50),LINETHICK1,COLORCYAN;
    底部预警: IF(VAR5<-8,82,50),LINETHICK1,COLOR000091;
    QQ:= CLOSE>REF(CLOSE,1)*1.02;
    BB:=SMA(MAX(CLOSE-REF(CLOSE,1),0),21,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),21,1)*1000;
    GG:=MA(BB-LLV(BB,27),5);
    AA0:=(REF(H,4)-REF(L,1))/C*100>10;
    RB:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100/2+22)*1;
    QB:=((EMA(AMOUNT,13) /EMA(VOL,13)) / 100);
    ZH:=(((((CLOSE -QB) / QB) * 100) < (0)) AND ZXNH);
    CD:=ZH AND (CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100<RB-2;
    底买:AA0 AND QQ AND CD>0,STICK,COLORRED;
    DRAWTEXT(底买,0.7,'nbsp;  底买',COLORFFFFFF;
    DRAWICON(底买>0,底买,23);
    多头排列:=MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,60)
    AND  MA(C,60)>REF(MA(C,60),1);
    倍量:=VOL>1.1*REF(VOL,1);
    回调入:REF(EVERY(C<REF(C,1),3),2) AND REF(C,1)<REF(C,2)  AND C>=O AND 多头排列 AND 倍量,STICK,COLORRED;
    DRAWTEXT(回调入,0.7,'nbsp;  回调入',COLORYELLOW;
    DRAWICON(回调入>0,回调入,13);M2:=EMA(C,2);
    M18:=EMA(C,18);
    买点:=IF(CROSS(M18,M2),5,0* 10000),COLORFF00FF,LINETHICK2;
    RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
    VARB2:=(RSVV/2+22)*1;
    Q:=EMA(VOL,13);Y0:=EMA(AMOUNT,13);
    S:=((Y0 /Q) / 100);
    X:=(((CLOSE -S) / S) * 100);
    F:=((X < (0)) AND ZXNH);
    XQ:=F AND RSVV<VARB2-2;
    阴买:买点 AND XQ ,STICK,COLOR00FF00;
    DRAWTEXT(阴买>0,0.6,'买',COLOR00FF00;
    DRAWICON(阴买>0,阴买,23);

     

     来源: WWW.CXH99.COM

  • 文华客服: 不能用的     39行出错

     

  • 网友回复:  您帮忙定义一下谢谢啦

     

  • 网友回复:

     

  • 网友回复:ZXNH 指标我们也不知道是如何定义的,需要您咨询一下指标提供者,之后我们再帮您对应改写

 

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

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


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

相关文章

    没有相关内容