同花顺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,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;


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

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

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

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