HPotter

Demarker

3995 vizualizações
1301
3995 0
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.
Remover dos Scripts Favoritos Adicionar para Scripts Favoritos
////////////////////////////////////////////////////////////
//  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: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Sinais Criptomoedas Calendário econômico Como Funciona Recursos gráficos Planos Regras da Casa Moderadores Soluções para sites e corretoras Widgets Soluções em Gráficos Obter Ajuda Solicitação de recurso Blog & Notícias FAQ Wiki Twitter
Perfil Configurações de perfil Conta e cobrança TradingView Coins Meus Tíquetes de Suporte Obter Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar