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

老师,看看声音报警 [文华财经]

  • 咨询内容:  老师看看这二个指标,麻烦您添加连续的声音报警,谢谢老师 LC := REF(CLOSE,1);BACKGROUNDSTYLE(1);RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,RGB(255,255,255);RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,RGB(0,255,0);IF(RSI1>80,RSI1,NULL),COLORYELLOW,LINETHICK3;添加声音报警IF(RSI1<20,RSI1,NULL),COLORYELLOW,LINETHICK3;添加声音报警DRAWCOLORLINE(RSI1>50,RSI1,COLORRED,COLORGREEN);DRAWCOLORLINE(RSI2>50,RSI2,COLORRED,COLORGREEN);50,RGB(0,128,255);
    DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),RGB(255,255,255);DEA  : EMA(DIFF,M),RGB(0,255,0);2*(DIFF-DEA),COLORSTICK;0,RGB(0,128,255);DRAWICON(CROSS(DIFF,DEA),0,'CO4',SOUND('';DRAWICON(CROSSDOWN(DIFF,DEA),0,'CO5',SOUND('';DRAWCOLORLINE(DIFF>0,DIFF,COLORRED,COLORGREEN);DRAWICON(CROSS(DIFF,0),0,'CO4',SOUND('';DRAWICON(CROSSDOWN(DIFF,0),0,'CO5',SOUND(''; 这个macd声音报警为什么不响,老师帮忙看看

     

     来源:程序化99

  • 文华技术人员:  您写法不对的,声音函数需要单独写一行
    盘中满足条件会有声音提示的,您放心

    这样看下: LC := REF(CLOSE,1);BACKGROUNDSTYLE(1);RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,RGB(255,255,255);RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,RGB(0,255,0);IF(RSI1>80,RSI1,NULL),COLORYELLOW,LINETHICK3;//添加声音报警IF(RSI1<20,RSI1,NULL),COLORYELLOW,LINETHICK3;//添加声音报警DRAWCOLORLINE(RSI1>50,RSI1,COLORRED,COLORGREEN);DRAWCOLORLINE(RSI2>50,RSI2,COLORRED,COLORGREEN);50,RGB(0,128,255);
    DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),RGB(255,255,255);DEA  : EMA(DIFF,M),RGB(0,255,0);2*(DIFF-DEA),COLORSTICK;0,RGB(0,128,255);DRAWICON(CROSS(DIFF,DEA),0,'CO4';CROSS(DIFF,DEA),SOUND('';DRAWICON(CROSSDOWN(DIFF,DEA),0,'CO5';CROSSDOWN(DIFF,DEA),SOUND('';DRAWCOLORLINE(DIFF>0,DIFF,COLORRED,COLORGREEN);DRAWICON(CROSS(DIFF,0),0,'CO4';CROSS(DIFF,0),SOUND('';DRAWICON(CROSSDOWN(DIFF,0),0,'CO5';CROSSDOWN(DIFF,0),SOUND('';

     

     来源: WWW.CXH99.COM

  • 文华客服:  老师,第一个rsi指标麻烦你在文字部分添加声音报警,您了谢谢

     

  • 网友回复:  请参考: LC := REF(CLOSE,1); BACKGROUNDSTYLE(1); RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,RGB(255,255,255); RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,RGB(0,255,0); IF(RSI1>80,RSI1,NULL),COLORYELLOW,LINETHICK3; RSI1>80,SOUND('';//添加声音报警 IF(RSI1<20,RSI1,NULL),COLORYELLOW,LINETHICK3; RSI1<20,SOUND('';//添加声音报警 DRAWCOLORLINE(RSI1>50,RSI1,COLORRED,COLORGREEN); DRAWCOLORLINE(RSI2>50,RSI2,COLORRED,COLORGREEN); 50,RGB(0,128,255);
    DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),RGB(255,255,255); DEA  : EMA(DIFF,M),RGB(0,255,0); 2*(DIFF-DEA),COLORSTICK; 0,RGB(0,128,255); DRAWICON(CROSS(DIFF,DEA),0,'CO4'; CROSS(DIFF,DEA),SOUND(''; DRAWICON(CROSSDOWN(DIFF,DEA),0,'CO5'; CROSSDOWN(DIFF,DEA),SOUND(''; DRAWCOLORLINE(DIFF>0,DIFF,COLORRED,COLORGREEN); DRAWICON(CROSS(DIFF,0),0,'CO4'; CROSS(DIFF,0),SOUND(''; DRAWICON(CROSSDOWN(DIFF,0),0,'CO5'; CROSSDOWN(DIFF,0),SOUND('';

 

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

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


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

相关文章

    没有相关内容