等级: 新手上路
- 注册:
- 2021-7-17
- 曾用名:
|
老师好,请给下面公式报警声音,在出现,'九段升级'字时公式报警,软件跳出警示图片,谢谢
bi:="ZSLX@BI1"(新笔3旧笔4);
BH1:="ZSLX@BH1"(1);
GD:="ZSLX@BH1"(2);
bg:="ZSLX@BG1";
bd:="ZSLX@BD1";
ZG:="ZSLX@ZSG";
ZD:="ZSLX@ZSD";
ZSKS:="ZSLX@ZSKS";
ZSJS:="ZSLX@ZSJS";
ZSLX1:="ZSLX@ZSLX1";
ZSLXDOT:="ZSLX@ZSLXDOT";
DZG:="ZSLX@GDJB"(1);
DZD:="ZSLX@GDJB"(2);
DZSKS:="ZSLX@GDJB"(3);
DZSJS:="ZSLX@GDJB"(4);
DZSLX:="ZSLX@GDJB"(5);
DGZS:="ZSLX@GDJB"(6);
{K线中枢}
QYKXZS:="ZSLX@SCKXSJ";{输出笔高}
KXZSKS:="ZSLX@KXZS"(1);
KXZSJS:="ZSLX@KXZS"(2);
KXZG:="ZSLX@KXZS"(3);
KXZD:="ZSLX@KXZS"(4);
{当下中枢}
DXZSZG:="ZSLX@DXZS"(13);
DXZSZD:="ZSLX@DXZS"(14);
DXZSZSKS:="ZSLX@DXZS"(15);
DXZSZSJS:="ZSLX@DXZS"(16);
{当下中枢}
DDXZSZG:="ZSLX@DXZS"(130);
DDXZSZD:="ZSLX@DXZS"(140);
DDXZSZSKS:="ZSLX@DXZS"(150);
DDXZSZSJS:="ZSLX@DXZS"(160);
zh:="ZSLX@SCZZ"(笔段背切换);
ZSLX:=IF(笔段背切换=0,ZSLX1,DZSLX);
{当下笔中枢}
DRAWLINE( 隐藏笔中枢=0 AND DXZSZSKS ,DXZSZG,DXZSZSJS ,DXZSZG,0),LINETHICK2,CIRCLEDOT,COLORGREEN;
DRAWLINE(隐藏笔中枢=0 AND DXZSZSKS ,DXZSZD,DXZSZSJS ,DXZSZD,0),LINETHICK2,CIRCLEDOT,COLORGREEN;
STICKLINE(隐藏笔中枢=0 AND DXZSZSKS ,DXZSZD,DXZSZG,1,0),COLORGREEN;
STICKLINE(隐藏笔中枢=0 AND DXZSZSJS ,DXZSZD,DXZSZG,1,0),COLORGREEN;
{当下段中枢}
DRAWLINE(隐藏段中枢=0 AND DDXZSZSKS,DDXZSZG,DDXZSZSJS ,DDXZSZG,0),LINETHICK2,CIRCLEDOT,COLORGREEN;
DRAWLINE(隐藏段中枢=0 AND DDXZSZSKS ,DDXZSZD,DDXZSZSJS ,DDXZSZD,0),LINETHICK2,CIRCLEDOT,COLORGREEN;
STICKLINE(隐藏段中枢=0 AND DDXZSZSKS,DDXZSZD,DDXZSZG,1,0),CIRCLEDOT,COLORGREEN;
STICKLINE(隐藏段中枢=0 AND DDXZSZSJS,DDXZSZD,DDXZSZG,1,0),CIRCLEDOT,COLORGREEN;
////////
////////
STICKLINE(显示K线中枢=1 AND kxzg>0,kxzg,kxzd,20,0),LINETHICK6,COLORBLUE;{COLORBROWN}
DRAWRECT(显示K线中枢=1 AND kxzsks ,kxzg ,显示K线中枢=1 AND kxzsjs ,kxzd ,true,colorblue ,1),colorblue;
{画中枢}
DRAWLINE((隐藏笔中枢=0 OR 隐藏笔中枢=2) AND ZSKS,ZG,(隐藏笔中枢=0 OR 隐藏笔中枢=2) and ZSJS,ZG,0),COLORGREEN,CIRCLEDOT,LINETHICK3;
DRAWLINE((隐藏笔中枢=0 OR 隐藏笔中枢=2) AND ZSKS,ZD,(隐藏笔中枢=0 OR 隐藏笔中枢=2) and ZSJS,ZD,0),COLORGREEN,CIRCLEDOT,LINETHICK3;
STICKLINE((隐藏笔中枢=0 OR 隐藏笔中枢=2) AND ZSKS,ZG,ZD,0.5,0),LINETHICK3,COLORGREEN;
STICKLINE((隐藏笔中枢=0 OR 隐藏笔中枢=2) AND ZSJS,ZG,ZD,0.5,0),LINETHICK3,COLORGREEN;
{画中枢}
DRAWLINE((隐藏段中枢=0 OR 隐藏段中枢=2) AND DZSKS,DZG,(隐藏段中枢=0 OR 隐藏段中枢=2) AND DZSJS,DZG,0),LINETHICK2,COLORCYAN;{COLORMAGENTA}
DRAWLINE((隐藏段中枢=0 OR 隐藏段中枢=2) AND DZSKS,DZD,(隐藏段中枢=0 OR 隐藏段中枢=2) AND DZSJS,DZD,0),LINETHICK2,COLORCYAN;{COLORCYAN}
STICKLINE((隐藏段中枢=0 OR 隐藏段中枢=2) AND DZSKS,DZG,DZD,1,0),LINETHICK2,COLORCYAN;
STICKLINE((隐藏段中枢=0 OR 隐藏段中枢=2) AND DZSJS,DZG,DZD,1,0),LINETHIC12,COLORCYAN;
{中枢监视器}
DRAWLINE(隐藏笔中枢=0 and ZSKS,(ZG+ZD)/2,ZSJS,(ZG+ZD)/2,0),LINETHICK1,COLORYELLOW;
////////
{九段升级监控}
DRAWTEXT(ZSJS<>0 AND COUNT(BI<>0, BARSLAST(ZSKS<>0)+1) >=10,ZG,'九段升级'),COLORYELLOW;
DRAWTEXT(隐藏背离提示=0 AND zh=-3,L,'双背处'),COLORYELLOW;
DRAWTEXT(隐藏背离提示=0 AND zh=-2,L,'背驰'),COLORYELLOW;
DRAWTEXT(隐藏背离提示=0 AND zh=-1,L,'背离'),COLORYELLOW;
DRAWTEXT(隐藏背离提示=0 AND zh=3,L,'双背处'),COLORGREEN;
DRAWTEXT(隐藏背离提示=0 AND zh=2,L,'背驰'),COLORGREEN;
DRAWTEXT(隐藏背离提示=0 AND zh=1,L,'背离'),COLORGREEN;
|
|