HPotter

Demarker

Demarker is an indicator similar to DM+ developed by Welles Wilder.
The DM+ (a part of Directional Movement System which includes both
DM+ and DM- indicators) indicator helps determine if a security is
"trending." The differences between the indicators are in the somewhat
different calculation methods.
Remove from Favorite Scripts Add to Favorite Scripts
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 03/07/2014
// Demarker is an indicator similar to DM+ developed by Welles Wilder.
// The DM+ (a part of Directional Movement System which includes both 
// DM+ and DM- indicators) indicator helps determine if a security is
// "trending." The differences between the indicators are in the somewhat
// different calculation methods.
////////////////////////////////////////////////////////////
study(title="Demarker", shorttitle="Demarker")
Length = input(13, minval=1)
nValue1 =  sum(iff(high > high[1] , high - high[1] , 0), Length)
nValue2 = sum(iff(low > low[1], 0,low[1] - low), Length)
nValue3 = sum(nValue1 + nValue2, Length)
nVal1Avr = nValue1 / Length
nVal2Avr = nValue3 / Length
nRes = nVal1Avr / nVal2Avr
plot(nRes, color=blue, title="Demarker")
DONATE/TIP

BTC: 1Lo1GoTNsPbrjGAgPgF4MYZPhBFdoVHaTm
United States
United Kingdom
India
Deutschland
España
France
Việt Nam
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
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 Support Priority Support Report Issue Ideas Published Followers Following Private Messages Chat Sign Out