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

    正文概述    2024-04-14 18:22:26  
    PVTT:=SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*VOL,0),coloryellow,linethick1;
    PVT3:=EMA(PVTT,3),coloryellow,linethick2;
    PVT6:=EMA(PVTT,6),colorred,linethick2;
    PVT12:=EMA(PVTT,12),colorgreen,linethick2;
    PVT24:=EMA(PVTT,24),colorgreen,linethick2;
    STICKLINE(PVT12>PVT24,-100,-90,11,0),colorgreen,LINETHICK1;
    STICKLINE(PVT6>PVT24,-89,-79,11,0),colorgreen,LINETHICK1;
    STICKLINE(PVT3>PVT24,-78,-68,11,0),colorgreen,LINETHICK1;
    STICKLINE(PVT6>PVT12,-67,-57,11,0),colorred,LINETHICK1;
    STICKLINE(PVT3>PVT12,-56,-46,11,0),colorred,LINETHICK1;
    STICKLINE(PVT3>PVT6,-45,-35,11,0),colorred,LINETHICK1;
    STICKLINE(PVT12>REF(PVT12,1),-34,-24,11,0),colorgreen,LINETHICK1;
    STICKLINE(PVT6>REF(PVT6,1),-23,-13,11,0),colorgreen,LINETHICK1;
    STICKLINE(PVT3>REF(PVT3,1),-12,-2,11,0),colorgreen,LINETHICK1;
    LLJ:=(C-REF(CLOSE,1))*V/C/1000;
    DIFF20:=EMA(LLJ,20),colorgreen,LINETHICK1;
    DIFF10:=EMA(LLJ,10),colorred,LINETHICK1;
    DIFF5:=EMA(LLJ,5),coloryellow,LINETHICK3;
    STICKLINE(DIFF20>0,2,12,11,0),colorred,LINETHICK1;
    STICKLINE(DIFF10>0,13,23,11,0),colorred,LINETHICK1;
    STICKLINE(DIFF5>0,24,34,11,0),colorred,LINETHICK1;
    STICKLINE(DIFF10>DIFF20,35,45,11,0),colorgreen,LINETHICK1;
    STICKLINE(DIFF5>DIFF20,46,56,11,0),colorgreen,LINETHICK1;
    STICKLINE(DIFF5>DIFF10,57,67,11,0),colorgreen,LINETHICK1;
    STICKLINE(DIFF20>REF(DIFF20,1),68,78,11,0),colorred,LINETHICK1;
    STICKLINE(DIFF10>REF(DIFF10,1),79,89,11,0),colorred,LINETHICK1;
    STICKLINE(DIFF5>REF(DIFF5,1),90,100,11,0),colorred,LINETHICK1;
    LC:=REF(CLOSE,1);
    RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
    TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
    HD:=(HIGH - REF(HIGH,1));
    LD:=(REF(LOW,1) - LOW);
    DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
    DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
    PDI:=((DMP * 100) / TR);
    MDI:=((DMM * 100) / TR);
    ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
    AV:=(RSI5 + ADX);
    DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
    WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
    NEWVOL:=(RSI5 - WR10);
    阶段底部:=(AV + NEWVOL);
    趋势线:=LLV(阶段底部,1)-100;
    DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26))*50;
    DEA:=EMA(DIFF,9);
    MACD:=2*(DIFF-DEA);
    KDEA:=SMA(MACD,5,2);
    MMLD:=2*(MACD-KDEA);
    KDEAA=SMA(MMLD,5,2);
    MMMLD:=2*(MMLD-KDEAA);
    KDEAAA=SMA(MMMLD,5,2);
    LD5:= 2*(MMMLD-KDEAAA);
    cKDEA=SMA(MACD,3,2);
    cMMLD:=3*(MACD-cKDEA);
    cKDEAA=SMA(cMMLD,3,2);
    cMMMLD:=4*(cMMLD-cKDEAA);
    cKDEAAA=SMA(cMMMLD,3,2);
    LD3:= 5*(cMMMLD-cKDEAAA);
    MM:=HHV(ABS(DIFF),10);
    M:=DIFF/MM*100;
    MMM:=HHV(ABS(DEA),10);
    A:=DEA/MMM*100;
    MMMM:=HHV(ABS(MACD),10);
    D:=MACD/MMMM*100;
    MMMMM:=HHV(ABS(LD3),10);
    L3:LD3/MMMMM*100;
    MMMMMM:=HHV(ABS(LD5),10);
    L5:LD5/MMMMMM*100;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺PVT分析副图指标 源码分享 加入收藏