最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信MACD买卖线公式

    正文概述    2024-04-13 11:37:54  

    用法:MACD红柱,主力上穿买,分别为建仓,加仓,满仓,持仓;MACD绿柱,分别为减仓,再减,空仓。

    {买卖线}
    {N:2,100,50; N1:2,100,50; N3:2,100,50}
    DRAWTEXT_FIX(1,0.0,0.1,0,'主力上穿买下穿卖'),COLORRED,LINETHICK1;
    RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
    RSV1:=(C-MA(C,4))/MA(C,4)*100;
    VAR2:=REF(LOW,1);
    VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
    VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
    VAR5:=LLV(LOW,30);
    VAR6:=HHV(VAR4,30);
    VAR7:=IF(MA(CLOSE,58),1,0);
    VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
    VAR9:=IF(VAR8>100,100,VAR8);
    K:=SMA(RSV,5,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
    AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
    AA5:=SMA(AA4,13,8);
    走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
    AA6:=SMA(AA3,21,8);
    买观注:STICKLINE(走势-AA6<-65,0,5,15,1);
    卖观注:STICKLINE(走势-AA6>85,100,95,15,1),COLORFFFF00;
    吸筹:STICKLINE(VAR9>-120,50,50+(VAR9/2),8,1),COLORRED;
    CDMA:=EMA(EMA(RSV1,7),7)*8,NODRAW,COLORWHITE;
    STICKLINE(CDMA>=0 AND CDMA>=REF(CDMA,1),50,50+CDMA,2.5,0),COLORDD55CC;
    STICKLINE(CDMA>=0 AND CDMA<=REF(CDMA,1),50,50+CDMA,2.5,1),COLORDD55CC;
    STICKLINE(CDMA<=0 AND CDMA>=REF(CDMA,1),50,50+CDMA,2.5,1),COLOR00D080;
    STICKLINE(CDMA<=0 AND CDMA<=REF(CDMA,1),50,50+CDMA,2.5,0),COLOR00D080;
    主力:EMA(100*(C-LLV(LOW,30))/(HHV(H,30)-LLV(LOW,30)),3), COLORRED,LINETHICK2;
    散户:100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
    起涨线:10,COLORWHITE,LINETHICK1;
    加仓线:30,COLORFF00FF,LINETHICK1;
    满仓线:50,COLORYELLOW;
    持仓线: 65,COLOR00FF00;
    继涨线:80,COLORLIBLUE,LINETHICK1;
    关注顶:100,COLORFFFF00,LINETHICK2;
    关注底:0,COLORBROWN,LINETHICK3;;
     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信MACD买卖线公式 加入收藏