怎么编写止损后未达到指定条件不再开仓

    菜鸟 发表于 2020-06-08 20:44 ・985次浏览 1条跟帖 赢智 wh8 回复

    止损后再次符合(C,MA1+100*MINPRICE)和(C,MA1-100*MINPRICE)条件但也必须要C再次穿过MA1前提下才开仓,否则不开仓,怎么编写?谢谢!
    
    MA1:MA(C,10);
    CROSS(C,MA1+100*MINPRICE)&&ISTIMETOKLINEEND(30),BPK;
    CROSSDOWN(C,MA1-100*MINPRICE)&&ISTIMETOKLINEEND(30),SPK;
    AUTOFILTER;
    CHECKSIG(SPK,'A',0,'C',0,0);
    CHECKSIG(BPK,'A',0,'C',0,0);
    CROSS(C,MA1)||C>SKPRICE+500*MINPRICE,BP;
    CROSSDOWN(C,MA1)||C<BKPRICE-500*MINPRICE,SP;
    CHECKSIG(SP,'A',0,'C',0,0);
    CHECKSIG(BP,'A',0,'C',0,0);
    

    autojiaoyi.com 沙发

    MA1:MA(C,10);
    A:=EXIST(C<M1,BARSSP)||ISNULL(BARSSP);
    AA:=EXIST(C>M1,BARSBP)=1||ISNULL(BARSBP);
    CROSS(C,MA1+100*MINPRICE)&&ISTIMETOKLINEEND(30)&&A,BPK;
    CROSSDOWN(C,MA1-100*MINPRICE)&&ISTIMETOKLINEEND(30)&&AA,SPK;
    AUTOFILTER;
    CHECKSIG(SPK,'A',0,'C',0,0);
    CHECKSIG(BPK,'A',0,'C',0,0);
    CROSS(C,MA1)||C>SKPRICE+500*MINPRICE,BP;
    CROSSDOWN(C,MA1)||C<BKPRICE-500*MINPRICE,SP;
    CHECKSIG(SP,'A',0,'C',0,0);
    CHECKSIG(BP,'A',0,'C',0,0);
    
    回复

    本版积分规则

    发布新内容
    请关注微信公众号,获取最新指标公式
    加入收藏 我要分享
    分享到论坛或者博客

    复制
    热门指标策略
    快速回复 返回顶部 返回列表