通达信PDI趋势指标公式

N:=14;
M:=9;
T:=120;
AN1:=20;
MTR:=SUM(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=SUM(IF(HD>0&&HD>LD,HD,0),N);
DMM:=SUM(IF(LD>0&&LD>HD,LD,0),N);
pdi: DMP*100/MTR;
mdi: DMM*100/MTR;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M) NODRAW ;
ADXR:(ADX+REF(ADX,M))/2 NODRAW;
X轴:20.00,COLORRED,LINETHICK2;
AA1:=REF(PDI,AN1)=LLV(PDI,2*AN1+1);
QY1:=BacKSET(AA1,AN1+1);
ACC1:=FILTER(QY1,AN1) AND PDI=LLV(PDI,AN1+1);
JQS:=crOSS(BACKSET(BARSTATUS=2,SUMBARS(ACC1,1)),0.5);
YQS:=CROSS(BACKSET(BARSTATUS=2,SUMBARS(ACC1,2)),0.5);
cyqS:=CROSS(BACKSET(BARSTATUS=2,SUMBARS(ACC1,3)),0.5);
TJ1:=CROSS(PDI,20) NODRAW;
TJ2:=BACKSET(TJ1,BArslAST(CROSS(PDI,20))+1);
TJ3:=FILTER(TJ2,BARSLAST(CROSS(PDI,20)));
TJ4:=CROSS(BACKSET(BARSTATUS=2,SUMBARS(TJ3,2)),0.5);
上穿距今:BARSLAST(CROSS(PDI,20)) NODRAW;
近趋势线:DRAWLINE(JQS,PDI,TJ4,20,1),COLORYELLOW,LINETHICK2;
远趋势线:DRAWLINE(YQS,PDI,TJ4,20,1),COLORMAGENTA,LINETHICK2;
超远趋势线:DRAWLINE(CYQS,PDI,TJ4,20,1),COLORRED,LINETHICK2;




未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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