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

晚上好,请问 [文华财经]

  • 咨询内容:  老师请帮把这些指标综合到一个指标。

    【红杏】:55线下股价上穿13线 
    MA13:=MA(C,13); 
    EMA13:=EMA(C,13); 
    EMA34:=EMA(C,34); 
    EMA55:=EMA(C,55); 
    A1:=EMA55>EMA34 AND EMA34>EMA13; 
    A2:=MA13>O; 
    A3:=CROSS(C,MA13); 
    红杏:=A1 AND A2 AND A3;

    注:在“红杏”这个信号的公式里,我没有设置13要走平或者起翘,并且设定空头排列的时候应用了“EMA(指数平滑移动平均线)”,而不是“MA(简单平均线),这样就不会漏掉新股(这里指日线图中还没有出现34或55的股票)。如果要求13线走平或起翘情况下的“红杏”,则公式如下: 
    MA13:=MA(C,13); 
    EMA13:=EMA(C,13); 
    EMA34:=EMA(C,34); 
    EMA55:=EMA(C,55); 
    A1:=EMA55>EMA34 AND EMA34>EMA13; 
    A2:=MA13>O; 
    A3:=EMA13>=REF(EMA13,2); 
    A4:=CROSS(C,MA13); 
    红杏:=A1 AND A2 AND A3 AND A4;


    【一阳穿】:一阳上穿135线 
    MA13:=MA(C,13); 
    MA34:=MA(C,34); 
    MA55:=MA(C,55); 
    A1:=O
    A2:=C>MA13 AND C>MA34 AND C>MA55; 
    A3:=(C-REF(CLOSE,1))/REF(CLOSE,1)*100 > 5; 
    一阳穿:=A1 AND A2 AND A3;


    【黑客红衣】:13线上穿55 
    MA13:=MA(C,13); 
    MA34:=MA(C,34); 
    MA55:=MA(C,55); 
    A1:=MA34MA13 AND C>MA55; 
    A2:=CROSS(MA13,MA55); 
    A3:=(O-MA55)/MA55*100<6 OR (C-MA13)/MA13*100<6; 
    黑客红衣:=A1 AND A2 AND A3;


    【多头列】:135线形成多头排列 
    MA13:=MA(C,13); 
    MA34:=MA(C,34); 
    MA55:=MA(C,55); 
    A1:=MA13>MA34 AND MA34>=MA55; 
    A2:=CROSS(MA34,MA55); 
    A3:=(MA13-MA55)/MA55*100 < 8; 
    A4:=(O-MA13)/MA13*100 < 6; 
    A5:=(C-MA13)/MA13*100 < 12; 
    A6:=C>MA55; 
    多头列:=A1 AND A2 AND A3 AND A4 AND A5 AND A6;


    【梅开二度】:55线上13上穿34 
    MA13:=MA(C,13); 
    MA34:=MA(C,34); 
    MA55:=MA(C,55); 
    A1:=MA13>MA55 AND MA34>MA55; 
    A2:=CROSS(MA13,MA34);
    A3:=C>MA13 AND C>MA34; 
    梅开二度:=A1 AND A2 AND A3;

    【揭竿起】:股价从135线上揭竿而起 
    MA13:=MA(C,13); 
    MA34:=MA(C,34); 
    MA55:=MA(C,55); 
    A1:=MA13>MA55; 
    A2:=C>MA13; 
    A3:=(O<=REF(C,1) AND (C-REF(C,1))/REF(C,1)*100>6) OR (O>REF(C,1) AND (C-O)/O*100>6); 
    A4:=(C-MA13)/MA13*100 < 12; 
    A5:=(O-MA13)/MA13*100 < 3; 
    A6:=(O-MA13)/MA13*100 > -3; 
    A7:=(O-MA55)/MA55*100 < 12; 
    A8:=(MA13-MA55)/MA55*100 < 12; 
    AA:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8; 
    B1:=MA13
    B2:=O>MA13 AND O>MA34 AND C>MA55; 
    B3:=(O<=REF(C,1) AND (C-REF(C,1))/REF(C,1)*100>6) OR (O>REF(C,1) AND (C-O)/O*100>6); 
    B4:=(O-MA55)/MA55*100 < 3; 
    B5:=(O-MA55)/MA55*100 > -3; 
    BB:=B1 AND B2 AND B3 AND B4 AND B5; 
    揭竿起:=AA OR BB;


    注:揭竿起这个信号比较抽象,编写稍有难度,考虑到多、空头的不同情况,只能让该公式尽量涉及又不至于遗漏,精确度较差,但在实盘监控的时候已经可以确保我们能够及时发现可能形成揭竿起的股票了。


    【蚂蚁】:连续5小阳 
    MA13:=MA(C,13); 
    MA34:=MA(C,34); 
    MA55:=MA(C,55); 
    A1:=MA13>MA55; 
    A2:=(C-MA13)/MA13*100 < 8; 
    A3:=O>REF(O,1) AND REF(O,1)>REF(O,2) AND REF(O,2)>REF(O,3) AND REF(O,3)>REF(O,4); 
    A4:=C>REF(C,1) AND REF(C,1)>REF(C,2) AND REF(C,2)>REF(C,3) AND REF(C,3)>REF(C,4); 
    A5:=C>=O AND REF(C,1)>=REF(O,1) AND REF(C,2)>=REF(O,2) AND REF(C,3)>=REF(O,3) AND REF(C,4)>=REF(O,4); 
    A6:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5; 
    AA:=A1 AND A2 AND A3 AND A4 AND A5 AND A6; 
    B1:=MA13MA55; 
    B2:=(C-MA55)/MA55*100 < 8; 
    B3:=O>REF(O,1) AND REF(O,1)>REF(O,2) AND REF(O,2)>REF(O,3) AND REF(O,3)>REF(O,4); 
    B4:=C>REF(C,1) AND REF(C,1)>REF(C,2) AND REF(C,2)>REF(C,3) AND REF(C,3)>REF(C,4); 
    B5:=C>=O AND REF(C,1)>=REF(O,1) AND REF(C,2)>=REF(O,2) AND REF(C,3)>=REF(O,3) AND REF(C,4)>=REF(O,4); 
    B6:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5; 
    AB:=B1 AND B2 AND B3 AND B4 AND B5 AND B6; 
    蚂蚁:=AA OR BB; 

     

     来源:程序化99

  • 文华技术人员:  需要时间分析,明日给您回复

     

     来源: WWW.CXH99.COM

  • 文华客服:  谢谢您,老师,我等着

     

  • 网友回复:  
    MA13:=MA(C,13);  EMA13:=EMA(C,13);  EMA34:=EMA(C,34);  EMA55:=EMA(C,55);  A1:=EMA55>EMA34 AND EMA34>EMA13;  A2:=MA13>O;  A3:=EMA13>=REF(EMA13,2);  A4:=CROSS(C,MA13);  红杏:=A1 AND A2 AND A3 AND A4;
    MA34:=MA(C,34);  MA55:=MA(C,55);  A11:=O; A22:=C>MA13 AND C>MA34 AND C>MA55;  A33:=(C-REF(CLOSE,1))/REF(CLOSE,1)*100 > 5;  一阳穿:=A11 AND A22 AND A33;
    A111:=MA34>MA13 AND C>MA55;  A222:=CROSS(MA13,MA55);  A333:=(O-MA55)/MA55*100<6 OR (C-MA13)/MA13*100<6;  黑客红衣:=A111 AND A222 AND A333;
    A17:=MA13>MA34 AND MA34>=MA55;  A27:=CROSS(MA34,MA55);  A37:=(MA13-MA55)/MA55*100 < 8;  A47:=(O-MA13)/MA13*100 < 6;  A57:=(C-MA13)/MA13*100 < 12;  A67:=C>MA55;  多头列:=A17 AND A27 AND A37 AND A47 AND A57 AND A67;
    A18:=MA13>MA55 AND MA34>MA55;  A28:=CROSS(MA13,MA34); A38:=C>MA13 AND C>MA34;  梅开二度:=A18 AND A28 AND A38;
    AB1:=MA13>MA55;  AB2:=C>MA13;  AB3:=(O<=REF(C,1) AND (C-REF(C,1))/REF(C,1)*100>6) OR (O>REF(C,1) AND (C-O)/O*100>6);  AB4:=(C-MA13)/MA13*100 < 12;  AB5:=(O-MA13)/MA13*100 < 3;  AB6:=(O-MA13)/MA13*100 > -3;  AB7:=(O-MA55)/MA55*100 < 12;  A8:=(MA13-MA55)/MA55*100 < 12;  AA:=AB1 AND AB2 AND AB3 AND AB4 AND AB5 AND AB6 AND AB7 AND A8;  B1:=MA13; B2:=O>MA13 AND O>MA34 AND C>MA55;  B3:=(O<=REF(C,1) AND (C-REF(C,1))/REF(C,1)*100>6) OR (O>REF(C,1) AND (C-O)/O*100>6);  B4:=(O-MA55)/MA55*100 < 3;  B5:=(O-MA55)/MA55*100 > -3;  BB:=B1 AND B2 AND B3 AND B4 AND B5;  揭竿起:=AA OR BB;
    A1B:=MA13>MA55;  A2B:=(C-MA13)/MA13*100 < 8;  A3B:=O>REF(O,1) AND REF(O,1)>REF(O,2) AND REF(O,2)>REF(O,3) AND REF(O,3)>REF(O,4);  A4B:=C>REF(C,1) AND REF(C,1)>REF(C,2) AND REF(C,2)>REF(C,3) AND REF(C,3)>REF(C,4);  A5B:=C>=O AND REF(C,1)>=REF(O,1) AND REF(C,2)>=REF(O,2) AND REF(C,3)>=REF(O,3) AND REF(C,4)>=REF(O,4);  A6B:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;  AA1:=A1B AND A2B AND A3B AND A4B AND A5B AND A6B;  B11:=MA13;  B21:=(C-MA55)/MA55*100 < 8;  B31:=O>REF(O,1) AND REF(O,1)>REF(O,2) AND REF(O,2)>REF(O,3) AND REF(O,3)>REF(O,4);  B41:=C>REF(C,1) AND REF(C,1)>REF(C,2) AND REF(C,2)>REF(C,3) AND REF(C,3)>REF(C,4);  B51:=C>=O AND REF(C,1)>=REF(O,1) AND REF(C,2)>=REF(O,2) AND REF(C,3)>=REF(O,3) AND REF(C,4)>=REF(O,4);  B61:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;  AB:=B11 AND B21 AND B31 AND B41 AND B51 AND B61;  蚂蚁:=AA1 OR AB; 

     

  • 网友回复: 谢谢您的帮忙

 

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

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


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

相关文章

    没有相关内容