当前位置:→ 公式网 > 公式解答 > 正文 

    问:请老师在通达信指标出现“白柱”及“绿柱”各时做个预警?

    0;
    0;
    VAR1L:=(C+H+O+L)/4;
    买入2:=XMA(VAR1L,30)*(1-100/1000);
    AAP:=DRAWTEXT(CROSS(C,买入2) OR (L<买入2),LOW*0.95,'B');
    C2P:=REF(C,1);
    涨停:=IF((C-C2P)*100/C2P>=(10-0.05*100/C2P),1,0);
    BBP:=STICKLINE(涨停,OPEN,CLOSE,2,0);
    XG1:=COUNT(AAP,1)=1 AND COUNT(BBP,1)=1;
    DRAWTEXT(XG1,0,'买错也要买')COLORYELLOW;
    STICKLINE(买入2>LOW AND 买入2<HIGH,0,1,3,0),COLORWHITE;
    STICKLINE(买入2>MIN(C,O) AND 买入2<MAX(C,O),0,1,3,0),COLORGREEN;
    STICKLINE(买入2>HIGH,0,1,3,0),COLORGREEN;
     

    {公式在线提供:www.gszx.com.cn}答案:

    VAR1L:=(C+H+O+L)/4;
    买入2:=XMA(VAR1L,30)*(1-100/1000);
    买入2>LOW AND 买入2<HIGH AND 买入2>MIN(C,O) AND 买入2<MAX(C,O) AND 买入2>HIGH;


    {自己测试一下}

     

     

     

     

    互动内容:
    昵称: 验证码:验证码 

关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识