最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 同花顺能量定乾坤副图指标

    正文概述    2024-04-13 04:00:39  

    同花顺能量定乾坤副图指标

    源码

    LC:= REF(CLOSE,1);
    n:=14;
    A1:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
    DIFF:-1*(EMA(A1,26) - EMA(A1,12))/200;
    DEA:-1*(EMA(DIFF,9))/200,colorred;
    MACD:2000*(DIFF-DEA),COLORSTICK,LINETHICK2;
    S1:=MACD REF(MACD,1)AND MACD
    S2:=MACD REF(MACD,1)/2 AND MACD
    STICKLINE(MACD =0,MACD,0,8,1),colorred;
    STICKLINE(S1,0,MACD,8,1),COLOR00FFFF;
    STICKLINE(S2,0,MACD,8,0),COLORFFFFFF;
    STICKLINE(MACD REF(MACD,1)AND MACD 0,0,MACD,8,1),COLORFFFF00;
    Var4:=(2*CLOSE+HIGH+LOW)/4;
    Var5:=LLV(LOW,34);
    Var6:=HHV(HIGH,34);
    持股: EMA((Var4-Var5)/(Var6-Var5)*100,11),COLORFF00FF,LINETHICK2;
    必卖: EMA(0.667*REF(持股,1)+0.333*持股,4),COLORFFFF00,LINETHICK2;
    {分界线:30,CROSSDOT,colorwhite;}
    DRAWTEXT(CROSS(持股,必卖) AND 持股 22,7,'▓'),COLORCCCCFF,LINETHICK2;
    DRAWTEXT(CROSS(持股,必卖) AND 持股 25,18,'●'),colorred;
    DRAWTEXT(CROSS(持股,30) AND 必卖 持股,30,'□'),colorwhite,LINETHICK2;
    DRAWICON(CROSS(持股,30) AND 必卖 持股,35,8);
    DRAWTEXT(CROSS(持股,65) AND 必卖 持股,50,'◆'),COLORFF00FF;
    DRAWICON(CROSS(持股,65) AND 必卖 持股,70,7);
    DRAWTEXT(CROSS(持股,75) AND 必卖 持股,67,'○'),colorred,LINETHICK2;
    DRAWICON(CROSS(持股,75) AND 必卖 持股,75,12);
    DRAWICON(CROSS(必卖,持股) AND 必卖 75,85,11);
    逢低吸纳: IF(CROSS(持股,必卖) AND 持股 40,9,0),STICK,colorgreen,linethick4;
    逢高减磅: IF(CROSS(必卖,持股) AND 必卖 75,75,90),colorred,linethick2;
    资金:=3*SMA((C-LLV(L,89))/(HHV(H,89)-LLV(L,89))*100,5,1)
    -2*SMA(SMA((C-LLV(L,89))/(HHV(H,89)-LLV(L,89))*100,5,1),3,1);
    见顶线:=EMA(资金,2);
    股票:=(见顶线-REF(见顶线,1))/REF(见顶线,1)*100;
    减仓:STICKLINE(REF(见顶线,1) 91.2 AND 股票 0,92,80,3,0),coloryellow,linethick2;
    清仓: DRAWTEXT(CROSS(必卖,持股) AND 必卖 85,92,'●'),color00ff00,LINETHICK4;
    RSVp:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100-50;
    Kv:=SMA(RSVp,3,1);
    Dv:=SMA(Kv,3,1);
    Jv:=3*Kv-2*Dv;
    zdzk1:=EMA(Jv,6);
    zdzk2:=REF(zdzk1,1);
    做多:IF(zdzk1 =zdzk2,zdzk1+2,zdzk2),linethick2,colorred;
    做空:IF(zdzk2-zdzk1,zdzk2,zdzk1),linethick2,colorgreen;
    xw1:=IF(O =REF(O,1),0,MAX((H-O),(O-REF(O,1))));//------------
    xw2:=IF(O =REF(O,1),0,MAX((O-L),(O-REF(O,1))));
    xw3:=SUM(xw1,21);
    xw4:=SUM(xw2,21);
    xw5:=IF(xw3 xw4,(xw3-xw4)/xw3,IF(xw3=xw4,0,(xw3-xw4)/xw4));

    同花顺能量定乾坤副图指标

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺能量定乾坤副图指标 加入收藏