最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 老师基于此MACD给改革选股

    正文概述    2024-04-14 08:37:02  

    九毛八公式指标

    公式模块:

    这是本人自己用的,不过也是在理想淘出来的指标,希望老师给改成两个个选股第一是0下金叉选股,第二是0下二次金叉选股
    A:EMA(CLOSE,9)-EMA(CLOSE,18);
    B:EMA(A,7),LINETHICK1;
    macd:=2*(A-B);
    STICKLINE(MacD>=0,MACD,0,0,0),COLORF00FF0;
    STICKLINE(MACD<0,MACD,0,1,0),COLORF00FF0;
    STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLORFFFF00;
    STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFFFF00;
    IF(A<0,A,0),COLORRED,LINETHICK1;
    IF(A<0,0,A),COLORRED,LINETHICK1;
    IF(A<B,A,B),COLOR00FF00,LINETHICK1;
    IF(A>B,B,B),COLORWHITE,LINETHICK1;
    机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,0.5,0),1),COLORGREEN;
    LC:=REF(CLOSE,1);
    rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    E:=crOSS(83,RSI);
    STICKLINE( E,E,0.5,1,0),COLOR00FFFF;
    DRAWTEXT(E,0.85,' 逃顶'),COLORGREEN;
    低位金叉:CROSS(A,B) AND A<-0.1,COLORRED;
    STICKLINE(低位金叉,0,0.5,2,0),COLORRED;
    JCCOUNT:=COUNT(CROSS(A,B),BArslAST(B>=0));
    二次金叉:CROSS(A,B) AND B<0 AND COUNT(JCCOUNT=2,21)=1,COLORYELLOW;
    STICKLINE(二次金叉,0,0.2,2,0),COLORYELLOW;
    DRAWICON(二次金叉,B*0.9,25) ;
    DRAWICON(LLV(MACD,4)>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)>REF(MACD,3),MACD,2);
    DRAWICON(HHV(MACD,4)<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3),MACD,1);
    A:=EMA(CLOSE,9)-EMA(CLOSE,18);
    B:=EMA(A,7),LINETHICK1;
    MACD:=2*(A-B);
    低位金叉:=CROSS(A,B) AND A<-0.1;
    JCCOUNT:=COUNT(CROSS(A,B),BARSLAST(B>=0));
    低位二次金叉:=CROSS(A,B) AND B<0 AND COUNT(JCCOUNT=2,21)=1 AND MACD<0;
    低位金叉 OR 低位二次金叉;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 老师基于此MACD给改革选股 加入收藏