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

该文华使用谢谢22 [文华财经]

  • 咨询内容:  Z1:=STRCAT(HYBLOCK,'';Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,'';DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORRED;ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;ZD2:EMA(ZD1,25),LINETHICK2,COLORRED;DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));DRAWKLINE(H,O,L,C);STICKLINE(ZD1>LOW AND ZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORYELLOW;STICKLINE(ZD1>MIN(C,O) AND ZD1<MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));XG:=ZD1>HIGH AND 回调买 AND L<=ZD1;DRAWTEXT(XG,L,'买入',COLORRED;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);DY:=CURRBARSCOUNT=1 AND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<ZK1;DRAWTEXT(XG2 AND L<ZD1,L,'金钻起涨',COLORRED;DRAWTEXT_FIX(C>O,0.01,0.9,0,'更多指标就在微信公众号:程序化指标源码 ',COLORRED;DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIF1,9);AAA1:=(DIF1-DEA1)*2*60;AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);AAA下:=IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL);买:=13;入:=AAA1-REF(AAA1,1);正大:=CROSS(入,买);DIF2:=EMA(DCLOSE,10)-EMA(DCLOSE,72);DEA2:=EMA(DIF2,17);AAA:=(DIF2-DEA2)*2*60;入2:=AAA-REF(AAA,1);牛股:=CROSS(入2,13);正大牛股:=正大 AND 牛股;DRAWICON(正大牛股,L*0.99,1);VAR1:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR3:=SMA(VAR2,3,1);天:=100+(-ABS(VAR1)),COLORRED;下:=SMA(VAR3,2,1);无:=ABS(VAR1),COLORGREEN;敌:=50,COLORFFAA00,LINETHICK3;DRAWTEXT(CROSS(无,10) AND C>O,L,'lt;---天下无敌',COLORGREEN;LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;卖:=CROSS(90,操作线);DRAWICON(卖,H*1.04,2);绝底线:=5;STICKLINE(C/REF(C,1)>=1.098,C,O,2,0),COLORYELLOW;STICKLINE(C/REF(C,1)>=1.098,H,L,0,0),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,GNBLOCK);下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINETHICK2;STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN;

     

     来源:程序化99

  • 文华技术人员:

    请参考

    ZK1:(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1+(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)),DOT,COLORBLUE;
    ZD1:REFX1(MA(REFX1(MA(L,25),25/2),25),25/2)-(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1,LINETHICK2,COLORRED;
    ZD2:EMA(ZD1,25),LINETHICK2;
    FILLRGN(ZD1>ZD2,ZD1,ZD2,RGB(55,0,0));
    FILLRGN(ZD1<ZD2,ZD1,ZD2,RGB(0,91,0));
    DRAWKLINE1(H,O,L,C);
    N:=BARSLAST(DATE<>REF(DATE,1))+1;

    X:=CURRENTTIME;

    Q:MOD(INTPART(X/100),100),NODRAW;

    VV:=SUM(V,N);

    XX:=INTPART(X/10000);

    FROMOPEN:=IF(XX<12,60*(XX-9)-30+Q,120+60*(XX-13)+Q)+1;
    CURRBARSCOUNT:=DATACOUNT-BARPOS+1;

    STICKLINE(ZD1>LOW AND ZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORYELLOW;
    STICKLINE(ZD1>MIN(C,O) AND ZD1<MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;
    STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;
    STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;
    VAR23:=100*REFX1(MA(REFX1(MA((C-REF(C,1)),6),3),6),3)/REFX1(MA(REFX1(MA(ABS((C-REF(C,1))),6),3),6),3);
    回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
    XG:=ZD1>HIGH AND 回调买 AND L<=ZD1;
    DRAWTEXT(XG,L,'买入',COLORRED;
    JJ:=(HIGH+LOW+CLOSE)/3;
    QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
    CAPITAL:=GETPRICE1('通股本';
    QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
    QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
    QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
    QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
    DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK1;
    V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
    V5:=SMA(V2*120/FROMOPEN*5,2,1);
    V10:=SMA(V5,5,1);
    V20:=SMA(V10,5,1);
    DY:=CURRBARSCOUNT=1 AND C<REF(C,1);
    DY2:=REF(V2,1)-DY;
    XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<ZK1;
    DRAWTEXT(XG2 AND L<ZD1,L,'金钻起涨',COLORRED;

    DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA1:=EMA(DIF1,9);
    AAA1:=(DIF1-DEA1)*2*60;
    AAA上:=IF(AAA1>REF(AAA1,1),AAA1,NULL);
    AAA下:=IF(AAA1<REF(AAA1,1),AAA1,NULL);
    买:=13;
    入:=AAA1-REF(AAA1,1);
    正大:=CROSS(入,买);
    DIF2:=EMA(CLOSE,10)-EMA(CLOSE,72);
    DEA2:=EMA(DIF2,17);
    AAA:=(DIF2-DEA2)*2*60;
    入2:=AAA-REF(AAA,1);
    牛股:=CROSS(入2,13);
    正大牛股:=正大 AND 牛股;
    DRAWICON(正大牛股,L*0.99,1);
    VAR1:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;
    VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
    VAR3:=SMA(VAR2,3,1);
    天:=100+(-ABS(VAR1)),COLORRED;
    下:=SMA(VAR3,2,1);
    无:=ABS(VAR1),COLORGREEN;
    敌:=50,COLORFFAA00,LINETHICK3;
    DRAWTEXT(CROSS(无,10) AND C>O,L,'lt;---天下无敌',COLORGREEN;
    LC:=REF(CLOSE,1);
    操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
    卖:=CROSS(90,操作线);
    DRAWICON(卖,H*1.04,2);
    绝底线:=5;
    STICKLINE(C/REF(C,1)>=1.098,C,O,2,0),COLORYELLOW;
    STICKLINE(C/REF(C,1)>=1.098,H,L,0,0),COLORYELLOW;
    DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINETHICK2;
    STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN;

     

     

     来源: WWW.CXH99.COM

  • 文华客服:

    请把小脸给我删除,谢谢

     

  • 网友回复:

     请参考

     

    ZK1:(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1+(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)),DOT,COLORBLUE;
    ZD1:REFX1(MA(REFX1(MA(L,25),25/2),25),25/2)-(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1,LINETHICK2,COLORRED;
    ZD2:EMA(ZD1,25),LINETHICK2;
    FILLRGN(ZD1>ZD2,ZD1,ZD2,RGB(55,0,0));
    FILLRGN(ZD1<ZD2,ZD1,ZD2,RGB(0,91,0));
    DRAWKLINE1(H,O,L,C);
    N:=BARSLAST(DATE<>REF(DATE,1))+1;

    X:=CURRENTTIME;

    Q:MOD(INTPART(X/100),100),NODRAW;

    VV:=SUM(V,N);

    XX:=INTPART(X/10000);

    FROMOPEN:=IF(XX<12,60*(XX-9)-30+Q,120+60*(XX-13)+Q)+1;
    CURRBARSCOUNT:=DATACOUNT-BARPOS+1;

    STICKLINE(ZD1>LOW AND ZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORYELLOW;
    STICKLINE(ZD1>MIN(C,O) AND ZD1<MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;
    STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;
    STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;
    VAR23:=100*REFX1(MA(REFX1(MA((C-REF(C,1)),6),3),6),3)/REFX1(MA(REFX1(MA(ABS((C-REF(C,1))),6),3),6),3);
    回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
    XG:=ZD1>HIGH AND 回调买 AND L<=ZD1;
    DRAWTEXT(XG,L,'买入',COLORRED;
    JJ:=(HIGH+LOW+CLOSE)/3;
    QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
    CAPITAL:=GETPRICE1('通股本';
    QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
    QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
    QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
    QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
    DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK1;
    V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
    V5:=SMA(V2*120/FROMOPEN*5,2,1);
    V10:=SMA(V5,5,1);
    V20:=SMA(V10,5,1);
    DY:=CURRBARSCOUNT=1 AND C<REF(C,1);
    DY2:=REF(V2,1)-DY;
    XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<ZK1;
    DRAWTEXT(XG2 AND L<ZD1,L,'金钻起涨',COLORRED;

    DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA1:=EMA(DIF1,9);
    AAA1:=(DIF1-DEA1)*2*60;
    AAA上:=IF(AAA1>REF(AAA1,1),AAA1,NULL);
    AAA下:=IF(AAA1<REF(AAA1,1),AAA1,NULL);
    买:=13;
    入:=AAA1-REF(AAA1,1);
    正大:=CROSS(入,买);
    DIF2:=EMA(CLOSE,10)-EMA(CLOSE,72);
    DEA2:=EMA(DIF2,17);
    AAA:=(DIF2-DEA2)*2*60;
    入2:=AAA-REF(AAA,1);
    牛股:=CROSS(入2,13);
    正大牛股:=正大 AND 牛股;
    //DRAWICON(正大牛股,L*0.99,1);
    VAR1:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;
    VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
    VAR3:=SMA(VAR2,3,1);
    天:=100+(-ABS(VAR1)),COLORRED;
    下:=SMA(VAR3,2,1);
    无:=ABS(VAR1),COLORGREEN;
    敌:=50,COLORFFAA00,LINETHICK3;
    DRAWTEXT(CROSS(无,10) AND C>O,L,'lt;---天下无敌',COLORGREEN;
    LC:=REF(CLOSE,1);
    操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
    卖:=CROSS(90,操作线);
    //DRAWICON(卖,H*1.04,2);
    绝底线:=5;
    STICKLINE(C/REF(C,1)>=1.098,C,O,2,0),COLORYELLOW;
    STICKLINE(C/REF(C,1)>=1.098,H,L,0,0),COLORYELLOW;
    DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINETHICK2;
    STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN;

     

 

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

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

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

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


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

相关文章

    没有相关内容