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

指标模型语法修改 [文华财经]

  • 咨询内容: STICKLINE(C>0,0,100,15,0),COLOR7C221C;
    P:50;
    VAR1:=HHV(HIGH,9)-LLV(LOW,9);
    VAR2:=HHV(HIGH,9)-CLOSE;
    VAR3:=CLOSE-LLV(LOW,9);
    VAR4:=VAR2/VAR1*100-70;
    VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
    VAR6:=(2*CLOSE+HIGH+LOW)/4;
    VAR7:=SMA(VAR3/VAR1*100,2,1);
    VAR8:=LLV(LOW,34);
    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
    AA:=IF(VAR9>100,VAR9-100,0);
    BB:=HHV(HIGH,34);
    CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
    气温:EMA(0.64*REF(CC,1)+0.333*CC,4);
    DRAWBAND(气温,RGB(255,0,0),50,RGB(0,150,255));
    DRAWTEXT(CROSS(气温,20),气温,'春↑'),COLORGREEN;
    DRAWTEXT(CROSS(气温,40),气温,'夏↑'),COLORRED;
    DRAWTEXT(CROSS(气温,70),气温,'秋↓'),COLORYELLOW;
    DRAWTEXT(CROSS(70,气温),气温,'冬↓'),COLORWHITE;
    RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    WEN:=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);
    J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);
    W1:=SMA(RSV2,3,1);W2:=SMA(W1,3,1);
    强弱界线:49,POINTDOT,LINETHICK3,COLOR9966CC;
    见顶信号:100,COLORCCFF00;
    出点准备: IF(CROSS(J2,J1) AND J2>85,70,100),LINETHICK2,COLOR00FF00;
    趋势线: WEN,LINETHICK2;
    买点准备:IF(趋势线<=10,30,0),LINETHICK2,COLORYELLOW;
    G1:W1,LINETHICK2,COLORWHITE;
    G2:W2,LINETHICK2,COLORCYAN;
    STICKLINE(趋势线>88,100,趋势线,3,1),COLORGREEN;
    STICKLINE(趋势线<=10,0,趋势线,3,1),COLORYELLOW;
    STICKLINE(COUNT(趋势线<REF(趋势线,1) AND 趋势线<10,2)=2 ,0,20,3,0),COLORRED;
    STICKLINE(CROSS(J2,J1) AND J2>85,100,80,3,0),COLORGREEN;
    DRAWICON(CROSS(趋势线,49),趋势线,1);
    DRAWICON(FILTER(CROSS(G2,G1) AND G2>81,10),G2*1.05,2);
    DRAWTEXT(CROSS(趋势线,49),47,'转强'),COLORRED;
    DRAWTEXT(CROSS(49,趋势线),52,'转弱'),COLORGREEN;

     

  • 文华技术人员: STICKLINE(C>0,0,100,15,0),COLOR7C221C;
    P:50;
    VAR1:=HHV(HIGH,9)-LLV(LOW,9);
    VAR2:=HHV(HIGH,9)-CLOSE;
    VAR3:=CLOSE-LLV(LOW,9);
    VAR4:=VAR2/VAR1*100-70;
    VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
    VAR6:=(2*CLOSE+HIGH+LOW)/4;
    VAR7:=SMA(VAR3/VAR1*100,2,1);
    VAR8:=LLV(LOW,34);
    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
    AA:=IF(VAR9>100,VAR9-100,0);
    BB:=HHV(HIGH,34);
    CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
    QW:EMA(0.64*REF(CC,1)+0.333*CC,4);
    DRAWBAND(QW,RGB(255,0,0),50,RGB(0,150,255));
    DRAWTEXT(CROSS(QW,20),QW,'C↑'),COLORGREEN;
    DRAWTEXT(CROSS(QW,40),QW,'X↑'),COLORRED;
    DRAWTEXT(CROSS(QW,70),QW,'Q↓'),COLORYELLOW;
    DRAWTEXT(CROSS(70,QW),QW,'D↓'),COLORWHITE;
    RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    WEN:=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);
    J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);
    W1:=SMA(RSV2,3,1);W2:=SMA(W1,3,1);
    QLFJ:49,POINTDOT,LINETHICK3,COLOR9966CC;
    JDXH:100,COLORCCFF00;
    CDZB: IF(CROSS(J2,J1) AND J2>85,70,100),LINETHICK2,COLOR00FF00;
    QSX: WEN,LINETHICK2;
    MDZB:IF(QSX<=10,30,0),LINETHICK2,COLORYELLOW;
    G1:W1,LINETHICK2,COLORWHITE;
    G2:W2,LINETHICK2,COLORCYAN;
    STICKLINE(QSX>88,100,QSX,3,1),COLORGREEN;
    STICKLINE(QSX<=10,0,QSX,3,1),COLORYELLOW;
    STICKLINE(COUNT(QSX<REF(QSX,1) AND QSX<10,2)=2 ,0,20,3,0),COLORRED;
    STICKLINE(CROSS(J2,J1) AND J2>85,100,80,3,0),COLORGREEN;
    DRAWICON(CROSS(QSX,49),QSX,1);
    DRAWICON(FILTER(CROSS(G2,G1) AND G2>81,10),G2*1.05,2);
    DRAWTEXT(CROSS(QSX,49),47,'ZQ'),COLORRED;
    DRAWTEXT(CROSS(49,QSX),52,'ZL'),COLORGREEN;

     

  • 文华客服:

    自己改的,语法测试通不过,请帮忙修改一下,谢谢!

    STICKLINE(C>0,0,100,15,0),COLOR7C221C;
    P:50;
    VAR1:=HHV(HIGH,9)-LLV(LOW,9);
    VAR2:=HHV(HIGH,9)-CLOSE;
    VAR3:=CLOSE-LLV(LOW,9);
    VAR4:=VAR2/VAR1*100-70;
    VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
    VAR6:=(2*CLOSE+HIGH+LOW)/4;
    VAR7:=SMA(VAR3/VAR1*100,2,1);
    VAR8:=LLV(LOW,34);
    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
    AA:=IF(VAR9>100,VAR9-100,0);
    BB:=HHV(HIGH,34);
    CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
    QW:EMA(0.64*REF(CC,1)+0.333*CC,4);
    RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    QSX:=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);
    QSX>QW,BPK;
    QSX<QW,SPK;

     

  • 网友回复:

    STICKLINE(OPEN-CLOSE>0,OPEN,CLOSE,COLORCYAN,0);

    IF函数改为IFELSE(X,A,B)若X条件成立或数值非0,则返回A,否则返回B。

    不支持汉字编写,请改为半角全拼大写英文状态;

    不支持LINETHICK2函数,您删除即可;

     

    请您按照上面的要点加以修改,如果仍有问题,请及时跟帖交流;

     

 

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

可联系技术人员 QQ: 1145508240  有需要帮忙请点击这里留言!!!进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容