通达信PVT指标分析指标副图源码


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/4,0),COLORGREEN,LINETHICK1;
STICKLINE(PVT3>PVT24,-78,-68,11/4,0),COLORGREEN,LINETHICK1;
STICKLINE(PVT6>PVT12,-67,-57,11/4,0),COLORRED,LINETHICK1;
STICKLINE(PVT3>PVT12,-56,-46,11/4,0),COLORRED,LINETHICK1;
STICKLINE(PVT3>PVT6,-45,-35,11/4,0),COLORRED,LINETHICK1;
STICKLINE(PVT12>REF(PVT12,1),-34,-24,11/4,0),COLORGREEN,LINETHICK1;
STICKLINE(PVT6>REF(PVT6,1),-23,-13,11/4,0),COLORGREEN,LINETHICK1;
STICKLINE(PVT3>REF(PVT3,1),-12,-2,11/4,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/4,0),COLORRED,LINETHICK1;
STICKLINE(DIFF10>0,13,23,11/4,0),COLORRED,LINETHICK1;
STICKLINE(DIFF5>0,24,34,11/4,0),COLORRED,LINETHICK1;
STICKLINE(DIFF10>DIFF20,35,45,11/4,0),COLORGREEN,LINETHICK1;
STICKLINE(DIFF5>DIFF20,46,56,11/4,0),COLORGREEN,LINETHICK1;
STICKLINE(DIFF5>DIFF10,57,67,11/4,0),COLORGREEN,LINETHICK1;
STICKLINE(DIFF20>REF(DIFF20,1),68,78,11/4,0),COLORRED,LINETHICK1;
STICKLINE(DIFF10>REF(DIFF10,1),79,89,11/4,0),COLORRED,LINETHICK1;
STICKLINE(DIFF5>REF(DIFF5,1),90,100,11/4,0),COLORRED,LINETHICK1;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR8:=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) / TR8);
MDI:=((DMM * 100) / TR8);
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;




来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图