yax22

DMI Yanga Indicator - @Yanga

178 1 33
DMI, modified by Yanga
Remove from Favorite Scripts Add to Favorite Scripts
//
// @author yanga
//
// This DMI indicator is revised and modified by Yanga
// 
// This script is released free of charge with no warranty
// Please leave a not to the author of this script if it is used
// whole or in part
//
study("DMI Yanga Indicator - @Yanga", shorttitle="DMI_Ya")
N = input(14, title="DMI period")
M = input(6, title="Moving Average")


MTR= sum(max(max(high-low,abs(high-(close[1]))),abs(low-(close[1]))),N)
HD = high-(high[1])
LD = (low[1])-low
DMP= sum(((HD>0) and (HD>LD) ? HD : 0),N)  
DMM= sum(((LD>0) and (LD>HD) ? LD : 0),N)
PDI= DMP*100/MTR
MDI= DMM*100/MTR
ADX= sma(abs(MDI-PDI)/(MDI+PDI)*100,M)
ADXR=(ADX+(ADX[M]))/2

 
plot(PDI, color=orange)
plot(MDI, color=lime)
plot(ADX, color=fuchsia)
plot(ADXR,color=black)
Hi,I have a question about this script? Is PDI = DI+ and DMM = DI- ? I was looking for a script only with "ADX and ADXR" and I found your script. Itis still okey for me as it has ADX and ADXR but I am not sure what exactly the PDI and and MDI. I appreciate if you could make it clear for me.
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out