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

弹窗预警编写 [文华财经]

  • 咨询内容: 老师文华7下面指标只有声音,不显示那个合约多大级别发出的声音怎样修改,我的意思是出现压力,支撑预警发出声音

     LC := REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    VAR9:=CLOSE-REF(CLOSE,5);

    VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);

    VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);

    卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);

    DRAWICON(卖出<0,H+0.05,2);

    买线:=EMA(CLOSE,2);

    卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);

    B1:IF(CROSS(买线,卖线),L-0.02,NULL),CROSSDOT,LINETHICK4,COLORMAGENTA;
    S1:IF(CROSS(80,RSI)*30,H+0.02,NULL),CROSSDOT,LINETHICK4,COLORYELLOW;
    VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;

    S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,NULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
    A0:=(L+H+C*2)/4;
    A1:EMA(A0,14),COLORGREEN,LINETHICK2;
    A2:=EMA(A0,25),COLORGREEN,LINETHICK2;
    A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;

    A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;

    支撑:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),NULL),COLORMAGENTA{,LINETHICK2};

    压力:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),NULL),COLORCYAN{LINETHICK2};

    买入持股:IF(A1X>=0,A1,NULL),COLORRED,LINETHICK2;
    卖出空仓:IF(A1X<0 AND A2X<0,A1,NULL),COLORGREEN,LINETHICK2;
    STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
    STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
    STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
    STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
    CROSS(A1X,0)||CROSSDOWN(A1X,0),SOUND('A');
     

     

     来源:程序化99

  • 文华技术人员:

     参考

     

     LC := REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    VAR9:=CLOSE-REF(CLOSE,5);

    VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);

    VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);

    卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);

    DRAWICON(卖出<0,H+0.05,2);

    买线:=EMA(CLOSE,2);

    卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);

    B1:IF(CROSS(买线,卖线),L-0.02,NULL),CROSSDOT,LINETHICK4,COLORMAGENTA;
    S1:IF(CROSS(80,RSI)*30,H+0.02,NULL),CROSSDOT,LINETHICK4,COLORYELLOW;
    VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;

    S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,NULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
    A0:=(L+H+C*2)/4;
    A1:EMA(A0,14),COLORGREEN,LINETHICK2;
    A2:=EMA(A0,25),COLORGREEN,LINETHICK2;
    A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;

    A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;

    支撑:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),NULL),COLORMAGENTA{,LINETHICK2};

    压力:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),NULL),COLORCYAN{LINETHICK2};

    买入持股:IF(A1X>=0,A1,NULL),COLORRED,LINETHICK2;
    卖出空仓:IF(A1X<0 AND A2X<0,A1,NULL),COLORGREEN,LINETHICK2;
    STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
    STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
    STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
    STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
    CROSS(A1X,0)||CROSSDOWN(A1X,0),SPARK;
     

     

     来源: WWW.CXH99.COM

  • 文华客服:   LC := REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; VAR9:=CLOSE-REF(CLOSE,5); VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5); VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20); 卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100); DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2); 卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42); B1:IF(CROSS(买线,卖线),L-0.02,NULL),CROSSDOT,LINETHICK3,COLORMAGENTA; S1:IF(CROSS(80,RSI)*30,H+0.02,NULL),CROSSDOT,LINETHICK3,COLORYELLOW; VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3; S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,NULL),CIRCLEDOT,LINETHICK3,COLORGREEN; A0:=(L+H+C*2)/4; A1:EMA(A0,14),COLORGREEN,LINETHICK2; A2:=EMA(A0,25),COLORGREEN,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW; 支撑:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),NULL),COLORMAGENTA{,LINETHICK2}; 压力:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),NULL),COLORCYAN; 买入持股:IF(A1X>=0,A1,NULL),COLORRED,LINETHICK2; 卖出空仓:IF(A1X<0 AND A2X<0,A1,NULL),COLORGREEN,LINETHICK2; 支撑>=0||压力>=0,SOUND(''; CROSS(A1X,0)||CROSSDOWN(A1X,0),SPARK;
     老师吧支撑支撑>=0||压力>=0,SOUND('';这句去掉吗 老师 你刚改写的有声音吗

     

  • 网友回复:

     1楼给的源码里没有支撑>=0||压力>=0,SOUND('';这句,直接参考2楼回复就可以

     

    SPARK也有声音的

     

     

 

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

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

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

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


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

相关文章

    没有相关内容