最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • KDJ的MACD(源码 副图 大智慧 贴图)

    正文概述    2024-04-13 22:24:58  

    {KDJ的MACD}
     RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
     K:=SMA(RSV,3,1);
     D:=SMA(K,3,1);
     J:=3*K-2*D;
     DIFF:EMA(J,8) - EMA(J,16),COLOR00FF00,LAYER0;;
     DEA:EMA(DIFF,5),COLORFF9900,LAYER0;;
     MACD:2*(DIFF-DEA), COLORSTICK;;
     0,COLORff9900,DOTLINE;
     FILLRGN(DIFF,DEA,DIFF>DEA,RGB(80,0,80),DIFF

     TYP:FORCAST(((2*C+H+L)/4*0.618+C*0.382),3),color00FFFF,linethick0;{FORCAST}
     AAX:=(TYP-ma(TYP,9))/ma(TYP,9)*100;
     VARM:=MIN(COUNT(TYP,0),9);
     AAX1:=EMA(AAX,VARM) *VARM;
     AAX2:=MA(AAX1,3);
     AAX3:=MA(AAX1,5);
    卖:AAX3>10  AND AAX1 减仓:filter(卖,5) ,PRECIS0,linethick0;
     VERTLINE(减仓>0,2),LAYER0,COLOR00ffFF;

     drawtext(减仓,10*1.6,'◆'),ALIGN2,colorcyan;   
     drawtext(减仓,10*1.5,'◇'),ALIGN1,color00FF00;   
     drawtext(减仓,10*1.59,'◆'),ALIGN0,colorcyan;

     DRAWTEXTABS(5,5,'■现在KDJ的参数是:N=9,M1=3,M2=3;'),COLOR00FFFF,LINETHICK3,LAYER0;
     DRAWTEXTABS(5,25,'■【KDJ】的【MACD】的参数是:LONG=8,LONG=16,M=5;'),COLOR0099FF,LINETHICK3,LAYER0;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » KDJ的MACD(源码 副图 大智慧 贴图) 加入收藏