Saturday 5 August 2017

Ergodic Trading System


SMI Ergodic Indicator. O SMI Ergodic Indicator é o mesmo que o índice de força verdadeira TSI desenvolvido por William Blau, exceto o SMI inclui uma linha de sinal O SMI usa dupla movimentação médias de preço menos preço anterior em 2 quadros de tempo A linha de sinal, que é Um EMA do SMI, é traçado para ajudar a desencadear sinais de negociação Guias ajustáveis ​​também são dadas para ajustar esses sinais O usuário pode alterar o fechamento de entrada, método EMA, comprimentos de período e valores guia Esta definição do indicador s é mais expressa no código condensado Dado no cálculo abaixo. Como negociar Usando SMI Ergodic Indicator. Adjust as guias superior e inferior para controlar a quantidade ea qualidade dos sinais de negociação Além dos guias, se o SMI atravessa a linha de sinal uma mudança na tendência é prevista Se O SMI está acima da guia superior e cruza abaixo da linha de sinal um sinal de venda será gerado Inversamente, se o SMI está abaixo da guia inferior e cruza acima da linha de sinal um sinal de compra será Ser dada A linha 0 divide os touros acima dos ursos abaixo. Como Acessar em MotiveWave. Go para o menu superior, escolha Study Oscillators SMI Ergodic Indicator. ou ir para o menu superior, escolha Add Study começar a digitar neste nome de estudo até Você vê que ele aparece na lista, clique no nome do estudo, clique em OK. Importante Aviso As informações fornecidas nesta página são estritamente para fins informativos e não devem ser interpretadas como conselhos ou solicitação para comprar ou vender qualquer segurança. Divulgação e Declaração de Desresponsabilização de Desempenho. Preço definido pelo usuário, padrão é preço de fechamento método média móvel definido pelo usuário, padrão é EMA prevP previousPrice abs valor absoluto ma média móvel, índice atual barra número MT maisThan LT lessThan. Turtle Trading System. The Turtle sistema de negociação regras e explicações abaixo é um Sistema de seguimento de tendência clássico Usando vários sistemas clássicos de tendência que publicamos o Estado de Sabedoria de Tendência Relatório seguinte em uma base mensal O relatório foi construído para refletir e acompanhar o desempenho genérico de tendência seguindo como uma estratégia de negociação. O índice composto é composto de um Mistura de sistemas semelhantes ao sistema Turtle simulados em prazos múltiplos e uma carteira de futuros, selecionados a partir da gama de 300 mercados de futuros em mais de 30 trocas que a Wisdom Trading pode oferecer aos clientes acesso à carteira é global, diversificada e equilibrada nos principais setores. Nós publicamos atualizações para o relatório a cada mês. O sistema de comércio de tartaruga explicado. O sistema de negociação de tartaruga comércios em bre Akouts semelhante a um sistema Donchian Dual Channel Existem duas figuras breakout, uma fuga mais longa para a entrada e uma fuga mais curta para a saída O sistema também usa opcionalmente uma entrada de comprimento duplo onde a entrada mais curta é usada se o último comércio foi um comércio perdedor . O sistema da tartaruga usa um batente baseado na escala média verdadeira ATR. Note que o conceito da tartaruga de N foi substituído pelo termo mais comum e equivalente da média verdadeira escala ATR. Este parâmetro diz a negociar Blox se ou não negociações no sentido curto . Se este parâmetro estiver definido como False desmarcado e desabilitado, o Trading Blox olha para a última entrada de entrada para esse instrumento e determina se ele teria sido um vencedor, na verdade, ou teoricamente Se O último comércio foi, ou teria sido um vencedor, então o próximo comércio é ignorado, independentemente da direção longa ou curta. A última fuga é considerada a última fuga nesse mercado, independentemente de ou não tha T breakout particular foi realmente tomadas, ou foi ignorado por causa desta regra Negociação Blox olha para trás apenas em breakouts regular, e não Entry Failsafe Breakouts. A direção da última breakout - longo ou curto - é irrelevante para o funcionamento desta regra, como É a direção do comércio atualmente sendo considerado. Assim, uma fuga longa perdedora ou uma fuga curta perdedora, seja hipotética ou real, permitiria que a nova fuga subsequente fosse tomada como uma entrada válida, independentemente da sua direção longa ou curta. Alguns comerciantes Acreditam que duas vitórias grandes e consecutivas são improváveis, ou que um comércio rentável é mais provável de seguir um comércio perdedor Trading Blox permite que você teste essa idéia, definindo este parâmetro para False. A comércio é introduzido quando o preço atinge a alta ou a Baixa dos dias X precedentes, conforme ajustado pelo Deslocamento de Entrada Por exemplo, Desvio de Entrada 20 significa que uma posição longa é tomada se o preço atinge a alta de 20 dias Uma posição curta é tomada se o preço atinge a baixa de 20 dias. Tente Failsafe Breakout dias. Este parâmetro trabalha em conjunto com Trade se Last is Winner, e é usado apenas se Trade if Last é Winner False como é mostrado na captura de tela parcial acima. Por exemplo, considere o seguinte conjunto de parâmetros e valores. Com essas configurações, se uma entrada de fuga de 20 dias foi sinalizada recentemente, mas foi ignorada porque o comércio anterior era um vencedor, na verdade, ou teoricamente, então, se o preço ultrapassar acima ou abaixo do máximo de 55 dias, Entrada é iniciada para essa posição, independentemente do resultado do comércio anterior. Entry Failsafe Breakout evita que você perca tendências muito forte devido à ação da regra de Trade if Last Winner. Se definido como zero, este parâmetro não tem efeito Se entrada Offset em ATR é definido como 1 0, uma posição longa isn t entrou até que o preço atinge o preço de breakout normal, mais 1 0 ATR Do mesmo modo, uma posição curta won t ser entrado até que o preço atinge o preço breakout normal, menos 1 0 ATR Ou Um valor positivo ou negativo E pode ser especificado para este parâmetro Um valor positivo efetivamente atrasa a entrada até o ponto especificado após o limiar de fuga escolhido um valor negativo entraria antes do limite de fuga escolhido. Este parâmetro define o preço ao qual adições a uma posição existente são feitas As Tartarugas entraram Posições unitárias nas faixas e adicionadas a essas posições em intervalos ATR de 1 2 após a iniciação comercial A adição de posições existentes é muitas vezes referida como pyramiding. Seguindo a entrada inicial breakout, a Trading Blox continuará a adicionar uma Unidade ou Units, na Caso de uma grande mudança de preço em um único dia, em cada intervalo definido pela Unidade Adicionar em ATR, à medida que o preço progride favoravelmente, até o número máximo permitido de Unidades, conforme especificado pelas várias regras de Unidades Max explicadas abaixo. Durante a simulação histórica Testes, o preço de entrada teórico é ajustado para cima ou para baixo por Deslizamento Percentual e / ou Deslizamento Mínimo, para obter o preço de enchimento simulado Então cada int Erval baseia-se no preço de enchimento simulado da ordem anterior. Assim, se uma ordem inicial de fuga escorregou por 1 2 ATR, a nova ordem seria movida para considerar o deslizamento ATR de 1 2, mais o intervalo de adição normal da unidade especificado pela Unidade Adicionar em ATR. A exceção a esta regra é quando várias Unidades são adicionadas em um único dia durante uma negociação em andamento. Por exemplo, com Unidade Adicionar em ATR 0 5, a ordem inicial breakout é colocado e incorrer no deslizamento de 1 2 ATR Vários dias mais tarde, Mais duas unidades são adicionadas no mesmo dia. Nesse caso, o preço da ordem das 2ª e 3ª Unidades é ajustado de 1 2 ATR para 1 ATR completo após o breakout, com base no derrapamento incorrido pela 1ª Unidade Normalmente, em O caso em que várias Unidades foram adicionadas cada uma em um dia separado, o preço da ordem de cada Unidade é ajustado pelo deslize cumulativo em N de todas as Unidades que o precederam na negociação em andamento. Este parâmetro define a distância do preço de entrada Até à paragem inicial, em termos de ATR ATR é uma medida da volatilidade diária e as paradas do sistema de comércio de tartaruga são baseadas em ATR, isto significa que o sistema da tartaruga iguala o tamanho da posição através dos vários mercados baseados na volatilidade. De acordo com as réguas originais da tartaruga, as posições longas foram paradas para fora se o preço Caiu 2 ATR do preço de entrada Inversamente, as posições curtas foram paradas para fora se o preço subiu 2 ATR do preço de entrada. À semelhança do Parada de partida Breakout, que se move para cima ou para baixo com o X-dia alta ou baixa, a parada definida por Uma paragem na ATR é uma paragem dura que é fixada acima ou abaixo do preço de entrada após a entrada Uma vez definida, não varia ao longo do comércio, a menos que sejam adicionadas unidades, caso em que as unidades anteriores são aumentadas pelo montante especificado Por unidade Adicionar ATR. Trades são liquidados quando o preço atinge a parada definida pelo Stop no ATR, o Entry Breakout para a direção oposta, ou o Exit Breakout veja acima, o que estiver mais próximo do preço no momento. nisso Ial de entrada para o dia de entrada de comércio é baseado no preço do pedido Isso é para facilitar a colocação do stop uma vez que o pedido é preenchido Note que o stop é ajustado com base no preço de enchimento real para o dia seguinte. Trades em andamento são saídos quando O preço atinge a alta ou a baixa dos X dias anteriores, conforme ajustado pelo Deslocamento de Saída Este conceito é idêntico ao Breakout de Entrada, mas a lógica é revertida Os negócios longos são encerrados quando o preço desce abaixo da baixa do dia X e Os negócios curtos são saídos quando o preço quebra acima do ponto baixo do X-dia. A fuga de saída move-se para cima ou para baixo com preço protege contra excursões de preço adversas, e serve também como um batente de arrasto que aja para travar em um lucro quando a tendência inverte. As operações são liquidadas quando o preço atinge a parada definida pelo Stop no ATR, o Entry Breakout na direção oposta, ou o Exit Breakout veja acima, o que estiver mais próximo do preço no momento. Se ajustado para zero, este parâmetro não tem Efeito Se Exit Offset em ATR é definida como 1 0, uma posição longa não é saida até que o preço atinge o preço breakout normal, menos 1 0 ATR Do mesmo modo, uma posição curta não será saida até que o preço atinge o preço breakout normal, mais 1 0 ATR Ou um positivo Ou negativo para este parâmetro Um valor positivo efetivamente atrasa a saída até que o ponto especificado após o limiar de fuga escolhido um valor negativo saia antes do limite de fuga escolhido. Unidades de Instrumento Máximo. Este parâmetro define o número máximo de Unidades que podem ser Por exemplo, Max Instrumento Unidades 4 significa que não mais do que 4 Unidades de Café pode ser realizada em um momento que isso inclui a Unidade inicial, mais 3 Unidades adicionadas. Versão deste System. We pode fornecê-lo com uma versão personalizada deste sistema para atender aos seus objetivos de negociação diversificação de seleção de carteira, prazo, capital inicial Podemos ajustar e testar qualquer parâmetro para o seu requir Além de sistemas de negociação pública, oferecemos aos nossos clientes vários sistemas de negociação proprietária com estratégias que vão desde a tendência de longo prazo a seguir a curto prazo, Reversão Nós também fornecemos serviços de execução completa para uma solução de negociação de estratégia totalmente automatizado. Por favor, clique na imagem abaixo para ver o nosso desempenho de sistemas de negociação. CFTC-exigida divulgação de risco para resultados hipotéticos. Resultados de desempenho hipotético têm muitas limitações inerentes, alguns dos quais são descritos Abaixo Nenhuma representação está sendo feita que qualquer conta é ou é susceptível de alcançar lucros ou perdas semelhantes aos mostrados de fato, há freqüentemente nítidas diferenças entre os resultados de desempenho hipotético e os resultados reais subsequentemente alcançados por qualquer programa de negociação particular. Uma das limitações Resultados hipotéticos de desempenho é que eles geralmente são preparados com o benefício Além disso, a negociação hipotética não envolve risco financeiro e nenhum registro de negociação hipotético pode explicar completamente o impacto do risco financeiro na negociação real. Por exemplo, a capacidade de suportar perdas ou aderir a um determinado programa de negociação, apesar das perdas comerciais São pontos importantes que podem igualmente afectar negativamente os resultados comerciais efectivos. Existem numerosos outros factores relacionados com os mercados em geral ou com a implementação de qualquer programa específico de negociação que não possam ser totalmente contabilizados na preparação de resultados hipotéticos de desempenho e que possam afectar negativamente Afetam os resultados de negociação real. Wisdom Trading é um NFA-registrado Introdução Broker Oferecemos serviços de corretagem global de commodities, consultoria de futuros gerenciados, negociação de acesso direto e serviços de execução de sistema de negociação para indivíduos, empresas e profissionais da indústria. Relacionamentos com vários grandes Merchants da Comissão em todo o mundo Várias relações de compensação nos permitem oferecer aos nossos clientes uma ampla gama de serviços e excepcionalmente ampla gama de mercados Nossas relações de compensação fornecer aos clientes com 24 horas de acesso a futuros, commodities e mercados de câmbio em todo o mundo.2017 Wisdom Trading Futures Negociação envolve um risco substancial de perda e não é adequado para todos os investidores O desempenho passado não é indicativo de resultados futuros. MetaTrader 5 - Trading Systems. William Blau s Indicadores e sistemas de negociação em MQL5 Parte 1 Indicadores. Technical trading só pode ser explorado se bom Ferramentas estão disponíveis As ferramentas de um bom trader são experiência, julgamento e uma hierarquia matemática fornecida pelo bom programa de computador comercial William Blau. A primeira parte do artigo Indicadores e Sistemas de Comércio em MQL5 por William Blau Parte 1 Indicadores é uma descrição de indicadores E osciladores, descritos por William Blau no livro Momentum, Direction e Divergence. Catores e osciladores, descritos neste artigo, são apresentados como um código fonte em linguagem MQL5 e anexado no arquivo. A idéia-chave de análise por William Blau. A análise técnica por William Blau consiste em quatro fases. Usando os dados da série de preços Q barras o indicador é calculado e traçado no gráfico O indicador não reflete a tendência geral do movimento de preço e não permite determinar os pontos de reversão de tendência. O indicador é alisado várias vezes usando o método EMA pela primeira vez com o período r , A segunda vez com o período s, ea terceira vez com o período ua indicador suavizado é plotado Um indicador suavizado com bastante precisão e reproduz as flutuações de preços com um atraso mínimo Permite determinar a tendência do movimento de preços e os pontos de reversão e elimina a O indicador suavizado é normalizado, um indicador suavizado normalizado é plotado. A normalização permite que o valor indicador seja interpretado como o Erbought ou oversold do mercado. Um indicador alisado normalizado é alisado uma vez pelo período do método de EMA ul um oscilador é construído - o histograma do indicador e a linha de sinal, os níveis de overbought e oversold do mercado são adicionados O oscilador permite que nós distingam Os estados de sobre-venda sobre-vendidos do mercado, os pontos de reveral e o fim de uma tendência. O artigo descreve os seguintes grupos de indicadores. Para cada grupo dos indicadores são apresentados. O índice do indicador liso. O índice do indicador suavizado normalizado. O oscilador, baseado no índice do índice alisado normalizado. Uma análise detalhada da aproximação de William Blau no aspecto da análise técnica do gráfico de preço. Uma descrição detalhada do algoritmo e do código de cada indicador dos indicadores Momentum-baseados Como um método de suavização William Blau usa o exponencialmente suavizado média móvel EMA A média móvel exponencial é calculado adicionando a t O valor anterior da Média Móvel, uma certa percentagem do preço actual. Ao utilizar a EMA, os preços mais recentes têm um peso maior. A função de cálculo de EMA. EMA k, n - média móvel movimentada exponencialmente do período n para o Momento do período k. preço k - o preço no momento do período k. A descrição dos quatro tipos de médias móveis e os métodos de sua utilização em análise técnica ver também iMA podem ser encontradas no MetaTrader 5 Help Analytics Technical Indicators Trend A biblioteca de funções para calcular as médias móveis está localizado no Nós estamos preocupados com o ExponentialMAOnBuffer, que preenche o buffer de matriz de saída com valores EMA do preço de matriz de entrada No entanto, a implementação do ExponentialMAOnBuffer Apresentado no tem a desvantagem de que não funciona com o período n 1.Ver no código fonte. No entanto, William Blau em seu livro usa o período de suavização n 1 como a ausência o F smoothing. Therefore, o código da função ExponentialMAOnBuffer passou por algumas alterações. e obtemos o ExponentialMAOnBufferWB O código desta função está localizado no arquivo. O arquivo também tem o seguinte as funções. A função PriceName retorna o tipo de preço como Uma string. A função CalculatePriceBuffer calcula a matriz de preço desse tipo de preço. O tipo de preço aplicado eo período de tempo do gráfico de preços. William Blau considera os preços de fechamento do período Diário Os indicadores, desenvolvidos neste artigo, permitem que você escolha o preço Tipo de preço ver constantes de preços o período de tempo do gráfico de preços depende do período de tempo do indicador ver quadro cronogramas.1 O Índice de Força Verdadeira. - Indicador da taxa q-período Momentum suavizado q-período Momentum. - Forças verdadeiras Índice Normalizado suavizado q-Momentum período. - Oscilador Ergódico baseado no Índice de Força Verdadeira. A descrição do indicador técnico incorporado Momentum e sua utilização está em análise técnica pode ser encontrada na seção de Ajuda do MetaTrader 5 Analíticos Indicadores Técnicos Osciladores Momentum ver também iMomentum Em contraste com o Momentum padrão IMomentum the Momentum de William Blau calcula o Momentum como a mudança de preço absoluto. Um exemplo da implementação MQL5 do TSI de Indicador de Força Verdadeira de William Blau é apresentado no artigo MQL5 Create Your Own Indicator.1 1 1 Análise técnica usando o indicador Momentum. O objeto da análise técnica é o gráfico de preços do instrumento financeiro Cada elemento do gráfico é uma barra de preço A barra de preço tem as seguintes características tempo de abertura preço de abertura preço máximo preço mínimo preço de fechamento volumes de negociação e outros A barra de preços é formada E reflete o comportamento dos preços durante um período de tempo discreto específico chart timeframe. The tarefa do techn A análise do gráfico de preços é para determinar a tendência atual do movimento de preços, revelar os picos de preços e fundos e prever a direção da mudança de preço no próximo período de tempo A complexidade do presente, é que o preço, enquanto se deslocam dentro Os limites de sua tendência básica, faz flutuações multidirecionais criando um chamado preço-ruído. O que William Blau propôs A primeira diferença o impulso William Blau calculou o Momentum como um relativo à mudança de preço fechando para cada período de tempo do dia E criou o indicador Momentum Do ponto de vista matemático, a função Momentum é a primeira derivada do preço. Fig 1 1 Momentum Indicador q-moment Momentum. O Momentum exibe flutuações de preço de um dia de período mostra a velocidade ea magnitude da direção da Mas não reflete a tendência geral do movimento de preços, e não determina os pontos de reversão de tendência. A segunda diferença é a mudança smoot A média móvel do Momentum a soma cumulativa das flutuações diárias de preços reproduz quase exatamente tanto as variações principais quanto as variações locais dos preços das curvas Fig. 1 2 a nas sub-janelas I e II apresentam as médias móveis Momentum suavizadas com os períodos 20 e 300, Respectivamente. Quanto mais elevado for o período da Média Móvel, mais precisamente o Momentum suavizado aproxima reproduz as flutuações da curva de preços Do ponto de vista matemático a função de suavizar o Momentum é a função integral do momento, ou a função restaurada Do preço. Fig 1 2 a Momentum Indicador alisado q-Momentum. Fig período 1 2 b Momentum Indicador alisado q-Momentum período. Na Fig 1 2 a, na janela principal, o EMA-suavizado com períodos de 5, 20, 100 indicadores são apresentados Um ligeiro aumento no período da média móvel leva a um lag ea média móvel praticamente se torna incapaz de reproduzir as flutuações da curva de preços. A terceira diferença é t Resmoothing A primeira suavização do Momentum define a tendência principal do movimento de preço, bem como os pontos de reversão, mas não elimina o ruído Para eliminar o ruído de preço um re-alisamento é necessário com um pequeno período da média móvel. Fig. 1 2 b, na sub-janela I apresenta a média móvel do indicador Momentum suavizado com o período 20, as sub-janelas II e III apresentam os períodos Momentum de dupla e tripla suavização de média móvel de 5, 3 A suavização repetida elimina o preço Ruído, mas acrescenta um ligeiro deslocamento da curva um lag. A quarta diferença a diferença em um sinal de tendências de mudança A suavização de Momentum com um pequeno período de média pode levar a uma divergência do Momentum suavizada com a tendência da curva de preços. Na Fig. 1 2 a, observa-se a discrepância na subventa I, e na Fig. 1 2 b - nas sub-janelas I, II, III a direção das variações de preços diverge da direção da mudança no Momento suavizado Tais diferenças Muitas vezes indica uma mudança de tendência. Do ponto de vista matemático, a divergência é uma função do período de suavização. A confiabilidade da interpretação dessas diferenças como um sinal de tendências de mudança pode ser melhorada se considerarmos a divergência apenas para as áreas de sobrecompra ou sobrevenda Ver 1 2 1.1 1 2 Definição do Momentum. O Momentum é uma mudança de preço relativo. O sinal do Momentum mostra a direção da mudança de preço um Momentum positivo - o preço aumentou durante o período, um negativo - o preço tem diminuído mais O período A magnitude do Momentum - é a velocidade relativa da mudança de preço primeira derivada do preço. Fig 1 3 Definição do Momentum. Formula do Momentum. price - fechamento de preços do período atual. preço 1 - preço de fechamento Do período anterior. William Blau examina o impulso como a diferença do preço de fechamento do período atual eo preço de fechamento do período anterior William Blau, em seu cálculo de como Usamos os preços de dois períodos do período corrente e dos períodos anteriores. Introduzimos na fórmula para calcular o momento um indicador de período, q - é o número de períodos de tempo envolvidos no cálculo. Por William Blau q 2.Formula de Q-período Momentum. q - número de barras, usado no cálculo da momentum. price - preço de fechamento do período atual. price q-1 - preço do fechamento q-1 períodos ago. In a fórmula resultante, o nosso período dois Momentum corresponde a um período relativo Momentum de William Blau. Formula de um q-período suavizado Momentum. price - preço de fechamento - a base de preços do chart. q preço - número de barras, usado no cálculo do Momentum. mtm preço, Q preço-preço q-1 - q-período Momentum. EMA mtm preço, q, r - o primeiro alisamento - o EMA r, aplicado ao período q Momentum. EMA EMA r, s - o segundo alisamento - o EMA s , Aplicada ao resultado da 1ª suavização. EM EMA r, s, u - terceira suavização - a EMA u, aplicada ao Resultado da segunda suavização.1 1 3 Mtm preço, q, r, s, u - indicador de taxa de impulso Especificação. O nome Momentum q-período Momentum suavizado q-Momentum período por William Blau. Input parâmetros. q - o período para o qual O Momentum é calculado default q 2.r - period da 1ª EMA, aplicada à Momentum default r 20.s - período da 2ª EMA, aplicada ao resultado da 1ª suavização por defeito 5.u - período Da 3ª EMA, aplicada ao resultado da 2ª suavização por defeito, u 3.PreçoApplied - tipo de preço default AppliedPrice PRICECLOSE. Additionally. displayed em uma janela separada. lanzamentos da renderização da representação gráfica - a cor, a espessura, a linha Se o r, s ou u são iguais a 1, a suavização EMA não é usada Por exemplo, se você definir o preço Mtm, 2,20,5,1, nós Obter um impulso duplamente suavizado, mas se você definir o preço Mtm, 2,1,1,1, obtemos um momento não liso. O tamanho mínimo da matriz de preços q-1 rs u-3 1.1 2 A Verdadeira Força Hs Índice 1 2 1 Análise técnica utilizando o Índice de Força Verdadeira. Continuado Ver o começo na Seção 1 1 1.A quinta normalização Trazendo através da normalização de valores do Momentum suavizado para uma escala única mapeando para o intervalo -1, 1, Permite-nos determinar os estados de sobrecompra ou sobre-venda do mercado Multiplicação repetida dos valores do momento suavizado normalizado um fator de 100 converte a série numérica no mapeamento de intervalo de porcentagem para o intervalo -100, 100.Fig 1 4 Momentum Suavizado Normalizado. Uma discrepância como um sinal de tendências em mudança pode ser considerada confiável se o impulso suavizado normalizado estiver no estado de sobre-compra ou sobre-venda.1 2 2 A definição do Índice de Força Verdadeira. Indicador do Momentum normalizado Momentum normalizado Momentum Trazendo os valores do Momentum suavizado para um mapeamento de escala única para o intervalo -1, 1 é fornecido com a normalização de cada v Alue do Momentum suavizado a soma cumulativa das flutuações de preço do q-período suavizadas pelo valor do Momentum suavizado, tomado em valor absoluto. Multiplicando por um coeficiente de 100 altera o intervalo do display para -100, 100 por cento Normalização permite a A interpretação do valor de TSI como um nível de overbought positivo ou oversold negativo market. The fórmula do Índice True Strength. price - preço de fechamento - a base de preços do preço chart. q - período do Momentum. mtm preço, q preço - price q-1 - momento q-momentum. Mtm preço, q - o valor absoluto do período q Momentum. Mtm preço, q, r, s, u - três vezes suavizado q-Momentum. EMA período r - o primeiro alisamento - o EMA do período r, aplicado a 1 Q-moment Momentum 2 valor absoluto do período q Momentum. EMA EMA r, s - o segundo alisamento - o EMA s, aplicada ao resultado da primeira suavização. EMA EMA EMA r, s, u - a terceira suavização - EMA u, aplicada ao resultado da segunda suavização.1 2 3 TSI preço, q, r, s, u - o índice de força verdadeira Specification. The nome O índice de força verdade normalizado suavizado q-Momentum momento relativo por William Blau. Input Parâmetros. q - período para o qual o impulso é calculado default q 2.r - período da 1ª EMA, aplicado ao Momentum default r 20.s - período da 2ª EMA, aplicado ao resultado da 1ª suavização Por padrão s 5.u - período do 3º EMA, aplicado ao resultado do 2º alisamento por padrão, u 3.PreçoApplied - tipo de preço default AppliedPrice PRICECLOSE. Additionally. displayed in a se Parate window. change o estilo de renderização da representação gráfica - a cor, espessura, estilo de linha a guia Cores. O padrão opcional de dois níveis é -25 e 25 - adicione remover um nível alterar o valor, a descrição de nível, alterar o estilo de renderização dos níveis na guia Níveis. Alterar o menor por padrão -100 e o superior por padrão 100 limites do Escala da janela de indicador único a escala tab. Limitations. r 0, s 0, u 0 Se r, s ou u são iguais a 1, então no período EMA correspondente, o alisamento não será executado. Preços array q-1 rs u-3 1.1 3 Oscilador ergódico.1 3 1 Análise técnica utilizando o Oscilador Ergódico. Continuado Ver o início em Secs 1 1 1, 1 2 1.Sixas as áreas de um mercado de sobrecompra e sobrevenda Intervalo de unidades - 1, 1 ou um intervalo de porcentagem -100 100, dentro do qual ocorrem mudanças nos valores do impulso suavizado normalizado, permite definir as áreas sobre-compradas ou sobrevendidas. A classe de índices de análise técnica, que caracterizam o estado de sobrecompra ou Mercado de sobrevenda, é chamado o oscilador Para cada oscilador, os níveis ar Determinados, na aproximação a qual os sinais de um mercado do overbought ou oversold são recebidos Os osciladores são ineficazes em mercados tendendo, porque o mercado pode estar em um overbought condições oversold para um período arbitrariamente longo. Sétimo A linha de sinal Para obter um sinal Sobre o fim de uma tendência e uma tendência de inversão de um movimento de preços, uma linha de sinal é usado O sinal de compra é recebido quando a linha principal cruza a linha de sinal de baixo para cima O sinal de venda é recebido quando a linha principal cruza o Linha de sinal de cima para baixo No caso em que há uma linha principal - este é um índice de força verdade ergódico, então um re-alisamento do ergódico forma uma linha de sinal O procedimento de re-alisamento é igual ao último processo de alisamento ergódico. Eventura a tendência do movimento de preços A tendência do movimento de preços é ascendente tendência ascendente, quando a linha principal ergódica passa acima da linha de sinal A tendência do movimento de preços é tendência descendente para baixo, quando o li principal Ne ergódico passa sob a linha de sinal. Fig 1 5 Ergodic Oscillator.1 3 2 Definição do Ergodic Oscillator. Ergodic - ergódico - True Strength Index TSI preço, q, r, s, u. O SignalLine - uma linha de sinal - o EMA Ul, aplicado ao ergodic. ul - um período EMA de uma linha de sinal - de acordo com William Blau, o valor ul deve ser igual ao período do último significativo 1 da EMA ergódica Por exemplo, se você estiver usando uma dupla suavização Preço Ergódico, q, r, s, u Preço Ergódico, 2,20,5,1, então por William Blau ul s 5,1 3 3 Ergódico preço, q, r, s, u, ul - ergódico oscilador Especificação. Nome Ergodic Oscillator Baseado em um índice de força verdadeiro por William Blau. Input parâmetros. gráfico gráfico 0 - Ergódico um índice de força verdadeira. q - o período para o qual o momento é calculado padrão q 2.r - período da 1ª EMA, aplicado ao Momentum default r 20.s - período da 2ª EMA, aplicado ao resultado da 1ª suavização por defeito 5.u - período da 3ª EMA, aplicado ao resultado da 2ª suavização Por padrão, u 3. gráfico gráfico 1 - o sinal line. ul - período EMA linha de sinal, é aplicado ao ergódico por padrão ul 3.AppliedPrice - tipo de preço padrão AppliedPrice PRICECLOSE. Additionally. displayed em uma window. change separada a renderização Estilo de cada gráfica parcelas - a cor, espessura, estilo de linha a cores tab. two níveis por padrão -25 e 25 - adicionar remover um nível, alterar o valor, descrição de nível, alterar o estilo de renderização de níveis o nível tab. change o Inferior por padrão -100 e o superior por padrão 100 limites da escala da única janela de indicador a escala tab. Limitations. r 0, s 0, u 0 Se r, s ou u são iguais a 1, a suavização EMA é not used. ul 0 If ul 1, then the Signal Line and Ergodic lines are the same. the minimum size of the prices array q-1 rsu ul-4 1.1 4 The Code detailed description.1 4 1 - indicator Mtm price, q,r, s,u - momentum. The code of the indicator Mtm price, q,r, s,u. Let s consider the code in detail.1 4 1 1 Indicator settings Mtm price, q,r, s,u. What to read about the settings of the indicator in the MQL5 Reference. Copyright Description of the indicator. Settings only through the property preprocessor directive The opyright parameters copyright and link , version the parameter version and a description of the mql5-program parameter description are displayed in the Properties of the indicator window the Properties tab, box Additional. Include file. Preprocessor replaces the Include line with the contents of the file Angle brackets indicate that the file will be taken from the terminal data folder For more information see Including files. On the contents of the file see the introduction. Indicator settings in general. The custom Indicator - is few graphic plots Graphic plot of the indicator can be displayed either in the main window of the price chart or in a separate window Each graphic plot has a certain drawing method, color, style, and thickness. The data for the rendering of the graphic plot is taken from the indicator buffers each graphic plot corresponds from one to five indicators buffers We use an indicator array as an indicator buffer. To set up the indicator, it is necessary to see Fig 1 6.Specify the window for displaying the indicators. Specify the number of graphic plots. Specify the number of indicator buffers. Declaration of the indicator arrays. Set up a link indicator array - indicator buffer - graphic plot. Describe the properties of each graphic plot. Specify the display precision of the indicator values. Specify for each graphical construction, the number of initial bars without the rendering of the graphic plot. Set up the horizontal levels, and describe the properties of each horizontal level not present. Set the scale restrictions for the separate indicator window not present. Specify the short name of the indicator. Fig 1 6 Momentum Indicator Mtm price, q,r, s,u. Indicator settings are performed. The difference in the methods of setting up the indicator is that the settings through the property directive are available before the indicator is attached to the price chart, while the settings through special functions are available after the indicator is attached to the price chart The configuration of the settings is performed from the Properties window of the indicator. The settings a window for displaying the indicator 1.The configuration is mandatory and is only possible through the property preprocessor directive There are two options of indicator display. In the main window of the price chart - indicatorchartwindow. In a separate window - indicatorseparatewindow. Settings The number of buffers 3 and graphic plots 2.The configuration is mandatory and is possible only through the property preprocessor directive The number of indicator buffers parameter indicatorbuffers and the number of graphic plots parameter indicatorplots is not limited. Settings Indicator Arrays 4.Indicator arrays are declared at global level as one-dimensional dynamic arrays of type double. Settings Setting up the link 5 between the indicator arrays, indicator buffers, and graphic plots. The code is written in the function OnInit of the event handler Init. The link of the indicator buffer with the corresponding one-dimensional array is set up with the function SetIndexBuffer. The indicator buffer is a one-dimensional dynamic array of double type, the size of which is controlled by the client terminal, so that it always corresponded to the number of bars on which the indicator is calculated The indexation of indicator buffers starts from 0.An indicator buffer can store three types of data INDICATORDATA INDICATORCOLORINDEX INDICATORCALCULATIONS Each graphic plot, depending on the method of its display, can be corresponded to by one to five indicator buffers one to four indicator buffer values data type INDICATORDATA , and one color buffer data type INDICATORCOLORINDEX. Indicator buffers with the INDICATORCALCULATIONS data of type are designed for intermediate calculations After binding, the indicator arra y will have indexation just like in conventional arrays see below in Section 1 4 1 2.Settings Properties of graphic plots 6.For the configuration of each set of graphic plots, the following things are specified. Drawing Type see all 18 types in the ENUMDRAWTYPE enumeration. Line Style see the possible styles enumerated in ENUMLINESTYLE. There are two possible ways to configure.1 Through the property preprocessor directive implemented this way. The code is written in the OnInit function of the Init event handler Specification of the PlotIndexSet function. To refine the display of the selected type of graphic plot, we use the property IDs of graphic plot, listed in the ENUMPLOTPROPERTY enumeration. The indexing of graphic plots starts from 0 Regarding the preferableness of configuring through a property directive see above in the Indicator Preferences section Some properties of graphic plots the color, style, line width are available for change from the Properties window the Colors tab of the indicator. Settings The precision of the display of the indicator values 7.The code is written in the OnInit function of the Init event handler The specification of the function of indicator settings configuration IndicatorSet. Identifiers of indicator properties are listed in the ENUMCUSTOMINDPROPERTY enumeration. The precision of the display of the indicator values is given only by the IndicatorSetInteger function, the ID of the indicator properties INDICATORDIGITS ENUMCUSTOMINDPROPERTYINTEGER enumeration. In an example where the values of the indicator buffers, which are intended to render, under display next to the short name of the indicator, in a pop-up message, when the mouse pointer is placed over the indicator line - will be rounded up to Digits - number of digits after the decimal point in the price of the instrument, to which the indicator is attached. Settings Number of initial bars without rendering 8.The data for rendering the q-period Momentum of William Blau is formed in fou r steps. Step 1 On the basis of the data from the PriceBuffer prices array, the Momentum the period q is calculated The values of the q-period Momentum are placed into the MtmBuffer array Since the indexation of the prices array starts from 0, the significant data in the prices array also start at index 0, then the significant data in the MtmBuffer array start with the index q-1.Step 2 Significant data in the MtmBuffer array is smoothed smoothing period r The values of the smoothed q-period Momentum are placed in the EMAMtmBuffer array Since the indexation of the MtmBuffer array starts from 0, the significant data in the MtmBuffer array starts with the index q-1 , then the significant data in the EMAMtmBuffer array start with the index q-1 r-1.The 3rd and 4th steps Similar considerations are given for determining from which bar starts the meaningful data in the DEMAMtmBuffer array smoothing period s and in the MainBuffer array smoothing period u See Fig 1 7.Fig 1 7 The meaningful data o f the Mtm price, q,r, s,u indicator. On a global level the variables are declared. The values of the variables - is the index of the bar, from which begins the meaningful data, in the corresponding to the variable indicator array Variable values are calculated in the function OnInit event handler Init and will be used in the OnCalculate function of the Calculate event handler. The number of initial bars without the showing at the graphic plot is specified using the PlotIndexSetInteger function, the identifier of the indicator property PLOTDRAWBEGIN enumerations ENUMPLOTPROPERTYINTEGER. Configuration The short name of the indicator 11.The code is written in the OnInit function of the Init event handler The short name of the indicator is specified only by using the IndicatorSetString function, identifier of the indicator properties INDICATORSHORTNAME ENUMCUSTOMINDPROPERTYSTRING enumeration The PriceName function returns the name of the price type depending on the value of AppliedPrice input pa rameter The code of the PriceName function is located in the file see Introduction. Input parameters. For more information see input variables Input parameters are available for change from the Properties window the Inputs tab of the indicator.1 4 1 2 The calculation of the indicator Mtm price, q,r, s,u. Calculation The algorithm. The algorithm for calculating the indicator Mtm price, q,r, s,u. Check whether there is enough data to calculate the indicator. The calculation of the prices array according to the specified price type - formation of the PriceBuffer array. The determination of the index bar, from with which to begin continue the calculation of the q-period Momentum. The calculation of the q-period momentum - the filling of the MtmBuffer array. The first smoothing by the EMA method period r - the filling of the EMAMtmBuffer array. The second smoothing by the EMA method period s - the filling of the DEMAMtmBuffer array. The third smoothing by the EMA method period u - the filling of the MainB uffer array - the calculation of values for the rendering of the graphic plot 0.Calculation The function OnCalculate. The calculation of the indicator values is performed in the OnCalculate function of the Calculate event handler We use the second form of OnCalculate function call. The ratestotal argument is the number of bars of the price chart, which are rendered and are available to the indicator for processing The prevcalculated - is the number of bars of the price chart that have been processed by the indicator at the time of the start of the current OnCalculate function call. The OnCalculate function returns the number of bars of the price chart that have been processed by the indicator at the time of the end of the current call This function returns the ratestotal parameter and must be constructed in such a way, that on the very first call, all of the unprocessed bars of the price chart, would be processed. That is, if on the first call of the OnCalculate function, the parameter pre vcalculated is equal to 0, then the on the second call, the parameter prevcalculated is either equal to ratestotal or ratestotal 1 and starting from the second call, the OnCalculate function handles counts only the last bar For further clarification with an example, see here. Indicator buffers and Time , Open , High , Low , Close , TickVolume , Volume , and Spread arrays have a default direction of indexing from left to right, from the beginning to the end of the array, from the oldest to the latest data The index of the first element is equal to 0 The size of the indicator buffer is controlled by the client terminal, so that it always corresponded to the number of bars on which the indicator is calculated. Calculation Check whether there is enough data to calculate the indicator 1.The global variable ratestotalmin is the minimum size of the input timeseries of the indicator, calculated in the OnInit function of the Init event handler. Calculation The prices arrays PriceBuffer 2.To fill t he PriceBuffer prices array, the CalculatePriceBuffer function is used The code of the CalculatePriceBuffer function is located in the file see introduction Price type is specified in the input parameter AppliedPrice. Calculation The definition of the bar index, from with which to begin continue the calculation of the q-period Momentum 3.The pos local variable is the index of the bar, from which the indicator will be calculated on the current call of the OnCalculate function Let s combine the calculation of the pos variable with the stage of preparing the MtmBuffer array to the calculation the stage of zeroing the insignificant elements of the MtmBuffer array. Calculation q-period Momentum 4.The q-period Momentum is calculated as a difference between the current period PriceBuffer i , and the price q-1 of the previous periods PriceBuffer i - q-1.Calculation smoothing by the EMA method 5-7.The ExponentialMAOnBuffer function is decribed in the introduction On the example of the calculation of the r-period moving 1st EMA the ExponentialMAOnBuffer function fills the EMAMtmBuffer output array with the values of EMA r of the MtmBuffer input array with insignificant data up to the index begin1-1 inclusive, are filled with zero values.1 4 2 - indicator TSI price, q,r, s,u - the true strength index. The code of the indicator TSI price, q,r, s,u is built on the bases of changes and additions to the code. Let us consider in detail only the modifications and additions to the code.1 4 2 1 The configurations of the indicator TSI price, q,r s, u alterations and additions to the code. Indicator settings in general. The configurations of the indicator TSI price, q,r, s,u differ from the configurations of the indicator Mtm price, q,r, s,u see Fig 1 8.Specify the window for displaying the indicators no chang e. Specify the number of graphical structures no change. Specify the number of indicator buffers the number of buffers has increased. Declaration of the indicator arrays added to the arrays. Assign th e arrays buffer plots the indicator array - indicator buffer - graphic plot restructuring. Describe the properties of each graphic plot label has been changed. Specify the accuracy of the display of the indicator values changed accuracy. Specify, for each graphic plot, the number of initial bars without showing on the graphic plot no change. Set the horizontal levels and describe the properties of each horizontal level new. Set limits for the scale of the separate indicator window new. Specify the short indicator name name changed. Fig 1 8 True Strength Index TSI price, q,r, s,u indicator. Configurations changes. In the code the following minor modifications are made.1 The short description of the mql5-program is changed.2 in configuration 6 The number of graphic plots has not increased, the drawing method DRAWLINE - line , the line color Blue , the line style STYLESOLID - solid line , and the line width 1 remained unchanged, but the label for the graphic plot 0 has changed.3 in configuration 7 T he accuracy of the display of the indicator values is changed.4 in configuration 11 the short name of the indicator is changed. Configurations horizontal levels 9.To configure the horizontal levels, the following must be specified for each level. The value on the vertical axis. The description of the level optional Horizontal layers have a single style of rendering. Color for the display of the line. Line style see the possible styles enumerated in ENUMLINESTYLE. The thickness of the line. There are two possible ways to configure.1 Using the property preprocessor directive Implemented this way.2 Using the group of the IndicatorSet functions. The code is written in the OnInit function of the Init event handler Indexation of the horizontal levels starts from 0 To refine the display of the horizontal level, the identifiers of the properties of the INDICATORLEVEL index are used, which are listed in the ENUMCUSTOMINDPROPERTY enumeration. The description of each level is set only using the IndicatorS etString function, the identifier of the indicator property INDICATORLEVELTEXT ENUMCUSTOMINDPROPERTYSTRING enumeration The description of the level is placed directly above the level, on the left. You can add remove horizontal levels, change the values, the description of each level, and the style of level rendering from the Properties window the Levels tab of the indicator. Configurations Limits of the scale of the separate indicator window 10.There are two possible ways to configure.1 Using the property preprocessor directive Implemented this way.2 Using the IndicatorSetDouble function, the identifiers of the properties of the indicators INDICATORMINIMUM and INDICATORMAXIMUM ENUMCUSTOMINDPROPERTYDOUBLE enumeration. The code is written in the OnInit function of the Init event handler The lower and upper bounds of the scale of a separate indicator window are available for change from the Properties window the Scale tab of the indicator. Configurations changes The indicator buffers 3-5.The changes in the configuration indicator array - indicator buffer - graphic plot.1 in configuration 3 The number of buffers increased.2 in configuration 4 Added indicator arrays that are needed to calculate the absolute value of the q-period Momentum. the purpose of the MainBuffer array is changed.3 in configuration 5 The connection of indicator array - indicator buffer - graphic plot is changed.1 4 2 2 The calculation of the indicator TSI price, q,r, s,u alterations and additions to the code. Calculation The algorithm. The algorithm for calculating the TSI price, q,r, s,u indicator. Check whether there is enough data to calculate the indicator. The calculation of the prices array according to the specified price type - formation of the PriceBuffer array. The determination of the index bar, from with which to begin continue the calculation of the q-period Momentum. The calculation of the q-period Momentum, and its absolute value - the filling of MtmBuffer and AbsMtmBuffer arrays. The first smoothing by the EMA method period r - the filling of EMAMtmBuffer and EMAAbsMtmBuffer arrays. The second smoothing by the EMA method period s - the filling of DEMAMtmBuffer and DEMAAbsMtmBuffer arrays. The third method smoothing by the EMA method period u - the filling of TEMAMtmBuffer and TEMAAbsMtmBuffer arrays. The determination of the index bar, from with which to begin continue the calculation of the true strength index. The calculation of the the true strength index - the filling of the MainBuffer array - the calculation of values for graphic plot 0.The essence of the changes in the algorithm briefly. a see paragraph 4-7 parallel to the calculation of the q-period momentum group of arrays MtmtBuffer the calculation of the absolute value of the q-period Momentum AbsMtmBuffer group of arrays is performed. b see Section 8-9 calculation of TSI is added. Calculation the q-period Momentum its absolute value 3-7.Calculation The True Strength Index 8-9.1 4 3 - Ergodic price, q,r, s,u, ul - Ergodic Oscilla tor. The code of the Ergodic price, q,r, s,u, ul indicator is based on changes of the code of. Let us consider in detail only the modifications and additions to the code.1 4 3 1 Configurations of the indicator Ergodic price, q,r, s,u, ul alterations and additions to the code. Indicator settings in general. The configurations of the indicator Ergodic price, q,r, s,u, ul differ from the configurations of the indicator TSI price, q,r, s,u See Fig 1 9.Specify the window for displaying the indicators no change. Specify the number of graphic plots a graphic plot is added. Specify the number of indicator buffers the number of buffers has increased. Declaration of the indicator arrays added to the array. Set up a relation the indicator array - indicator buffer - graphic plot restructuring. Describe the properties of each graphic plot properties altered, a graphic plot is added. Specify the display precision of the indicator values no change. Specify for each graphical structure the number of initial bars without the showing at the graphic plot added a graphic plot. Set the horizontal levels, and describe the properties of each horizontal level no change. Set the limit of the separate scale of the indicator window no change. Specify the short indicator name name changed. Fig 1 9 Ergodic price, q,r, s,u, ul indicator. Configurations changes. The code has been changed in the following ways.1 The short description of the mql5-program is changed.2 An input parameter has been added.3 in configuration 11 change is made to the short name of the indicator. Configurations changes Graphic plots 2, 6.1 in configuration 2 Added one more graphic plot Signal Line.2 in configuration 6 a Changed the properties of the first graphic plot 0 Ergodic. Previously, as a way to display the line, we used the identifier DRAWLINE , now we use a histogram from the zero line DRAWHISTOGRAM of the ENUMDRAWTYPE enumeration. Changed the color for displaying the lines and the lines width. b Added a graphic plot 1 Signal Signal Line. Configurati ons changes The indicator buffers 3-5.The changes in the configuration indicator array - indicator buffer - graphical structure.1 in configuration 3 The number of buffers increased.2 in configuration 4 Added an indicator array, which is required to calculate and render the signal line values.3 in configuration 5 The relation indicator array - indicator buffer - graphical structure is changed. Settings Number of initial bars without rendering 8.The number of initial bars without the rendering of the graphic plot 0 Ergodic has not changed The method of calculation is set forth in Section 1 4 1 1.The methods of calculating the number of initial bars without the rendering of the graphic plot 1 Signal is the same The SignalBuffer array is the result of the smoothing of the significant data of the array MainBuffer the smoothing period ul. Since the indexation of the MainBuffer array starts from 0 and the significant data in the MainBuffer array start with the index q-1 r-1 s-1 u-1 , the signif icant data in the SignalBuffer array start with the index q-1 r-1 s-1 u-1 ul-1.The global variable begin5 is declared. Calculation complete, additionally see section 1 4 1 1.1 4 3 2 The calculation of the Ergodic price, q,r, s,u, ul indicator alterations and additions to the code. Calculation The algorithm. The algorithm for calculating the indicator Ergodic price, q,r, s,ul. Check whether there is enough data to calculate the indicator. The calculation of the prices array according to the specified price type - filling of the PriceBuffer array. The determination of the index bar, from with which to begin continue the calculation of the q-period Momentum. The calculation of the q-period momentum, and its absolute value - the filling of MtmBuffer and AbsMtmBuffer arrays. The first smoothing by the EMA method period r - the filling of EMAMtmBuffer and EMAAbsMtmBuffer arrays. The second smoothing by the EMA method period s - the filling of DEMAMtmBuffer and DEMAAbsMtmBuffer arrays. The third method smoo thing by the EMA method period u - the filling of TEMAMtmBuffer and TEMAAbsMtmBuffer arrays. The determination of the index bar, from with which to begin continue the calculation of the True Strength Index. The calculation of the Ergodic True Strength Index - the filling of the MainBuffer array - the calculation of values for rendering the graphic plot 0.The calculation of the signal line - the smoothing of the Ergodic by the EMA method period ul - the filling of the SignalBuffer array - the calculation of values for the rendering of the graphic plot 1.The essence of the changes in the algorithm briefly a see Section 1 the requirement for the minimum size of the indicator input timeseries has changed b see paragraph 10 the calculation of the Signal Line has changed. Calculation change Check whether there is enough data to calculate the indicator 1.There are no changes In the algorithm. The values of the global variable ratestotalmin has cahnged the minimum size of the input timeseries of t he indicator calculated in the OnInit function at the Initialization event. Calculation signal line 10.2 Stochastic Momentum. The considered indicators see the attachment are divided into two groups. I Indicators, based on the Stochastic. - Stochastic q-period Stochastic smoothed q-period Stochastic. - Stochastic Index normalized smoothed q-period Stochastic. - Stochastic TS-oscillator based on the index of the Stochastic. II Indicators, based on the Stochastic Momentum. - Stochastic Momentum q-period Stochastic Momentum smoothed q-period Stochastic Momentum. - Stochastic Momentum Index normalized smoothed q-period Momentum. - Stochastic SM-Oscillator based on the Stochastic Momentum Index.2 1 Indicators based on the Stochastic. The User s Guide to the MetaTrader client terminal , in the section Analysis Technical Indicators Oscillators Stochastic Oscillator provides a description of the built-in client terminal MetaTrader 5 of the technical indicators of the Stochastic Oscillator and the ways of its use in technical analysis see also iStochastic.2 1 1 George Lane s Stochastic Oscillator. Stochastic stochastic oscilliator Stochastic, Stochastic Oscillator - is an indicator, which shows the price, in relation to the price fluctuation for the previous q periods The author and popularizer of the indicator is George Lane. Fast Stochastic sometimes called K. Slow Stochastic Signal Line , sometimes called D. The formula of Stochastic by George Lane. K - Fast Stochastic. D - Slow Stochastic Signal Line. price - price closing of the current period. q - the number of time periods of the prices chart used in calculation of the Stochastic. HH q - the maximum value for the previous q periods of the highest prices for the period q. LL q - the minimum value for the previous q periods of the lowest price for the period q. SMA K, ul - the simple moving average of order ul, applied to the fast stochastic K. According to the interpretation of George Lane the basic idea is that during the trend of a price increase upward trend , the price tends to stop, close to the previous maximums With the trend of price decrease downward trend , the price tends to stop, close to the previous minimums.2 1 2 William Blau s Stochastic Oscillator. Fig 2 1 William Blau s indicators, based on the Stochastic.2 1 2 1 Stochastic. Stochastic - is the distance from the price closing of the current period to the lowest point of the range of price fluctuations, for the previous q periods The value of the q-period stochastic shows by how much the price is shifted, relative to the lowest point of the q-period range of price fluctuations The values of the q-period Stochastic are positive or equal to zero. Fig 2 2 Definition of the Stochastic. The formula of the q-period Stochastic. price - price closing of the current period. q - the number of time periods of the prices graph, involved in the calculation of the stochastic. LL q - the minimum value, for the previous q periods, of the lowest price for the period q. The formula of the smoothed q-period Stochastic. price - price of closing - the price base of the price chart. q - the number bars, used in the calculation of the Stochastic. stoch price, q price-LL q - q-period Stochastic. EMA stoch price, q,r - first smoothing - EMA of period r, applied to the q-period stochastic. EMA EMA r, s - the second smoothing - EMA of period s, applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - EMA of period u, applied t o the result of the 2nd smoothing. TStoch price, q,r, s,u - Stochastic Specification. Name Stochastic Indicator q-period Stochastic smoothed q-period Stochastic , according to William Blau. Input parameters. q - period, for which the stochastic is calculated by default q 5.r - period of the 1st EMA, applied to the Stochastic by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. changes of the rendering of the graphical plotting - the color, thickness, line style the Colors tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, the EMA smoothing is not used. the minimum size of the prices array q-1 r s u-3 1.2 1 2 2 The Stochastic Index. The Stochastic Index indicator is the normalized smoothed q-period Stochastic. The values of the smoothed q-period Stochastic are mapped to a percentage format the interval 0, 100 Each value of the smoothed q-period Stochastic is normalized by the value of the q-period price range The normalization allows to interpret the value of the smoothed normalized q-period Stochastic as the degree of the overbought oversold states of the market. The formula of the Stochastic Index. price - price of closing - the price base of the price chart. q - the number bars, used in the calculation of the Stochastic. LL q - the minimum value of the lowest price for the period q. HH q - the maximum value of the highest price for the period q. stoch q price-LL q - q-period Stochastic. TStoch price, q,r, s,u - three times smoothed q-period Stochastic. HH q - LL q - q-period Price Range. EMA r - the first smoothing - the EMA r , applied to. to the q-period Stochastic. to the q-period Price Range. EMA EMA r, s - the second smoothing - the EMA s , applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - EMA u , applied to the result of the 2nd smoothing. TStochI price, q,r, s,u - Stochastic Index Specification. Name Stochastic Index normalized smoothed q-period Stochastic , according to William Blau. Input parameters. q - period, for which the stochastic is calculated by default q 5.r - period of the 1st EMA, applied to the Stochastic by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. change the rendering style of the graphic plot - the color, thickness, line style the Colors tab. optional Two-levels by default 40 and 60 - add remove a level change the value and description of the level, change the style of the rendering of the levels the Levels tab. change the lower by default 0 , and the upper by default 100 limits of the scale of the separate indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, then in the corresponding EMA period, smoothing will not be performed. the minimum size of the prices array q-1 r s u-3 1.2 1 2 3 Stochastic Oscillator. The definition of the Stochastic Oscillator. TSStochastic - Fast Stochastic, k - Stochastic Index TStochI price, q,r, s,u. SignalLine - Slow Stochastic Signal Line , d - EMA of period ul, applied to the Fast Stochastic k. ul - period EMA signal line - according to William Blau, the ul value must be equal to the period of the last significant 1 EMA fast stochastic. TSStochastic price, q,r, s,u, ul - Stochastic Oscillator Specification. Name Stochastic Oscillator based on the Stochastic Index , accor ding to William Blau. Input parameters. graphic plot 0 - Fast Stochastic stochastic index , k. q - period, for which the Stochastic is calculated by default q 5.r - period of the 1st EMA, applied to Stochastic by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.graphic plot 1 - Slow Stochastic Signal Line , d. ul - period EMA Signal Line, applied to the Fast Stochastic by default ul 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. change the rendering style of each graphical plotting - the color, thickness, line style the Colors tab. two levels by default 40 and 60 - add remove a level change the value and description of the level change the style of the rendering of the levels the Levels tab. change the lower by default 0 , and the upper by default 100 limits of the scale of the separate indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, the EMA smoothing is not used. ul 0 If ul 1, then the Slow Stochastic Signal line and the Fast Stochastic lines are the same. the minimum size of the prices array q-1 r s u ul-4 1.2 1 2 4 Continuity. William Blau s Stochastic Oscillator includes the Stochastic Oscillator by George Lane In order for the TSStochastic William Blau to correspond to the standard Stochastic Oscillator George Lane , implemented in MetaTrader 5, the following must be specified. Fig 2 3 William Blau Stochastic Oscillator contains George Lane s Stochastic Oscillator.2 1 2 5 The code of the Stochastic Oscillator. On the example of the indicator TSStochastic price, q,r, s,u, ul.1 The relation between the indicator arrays, indicator buffers, and graphic plots.2 The calculation algorithm for the q-period Stochastic and the q-period Price Range.2 2 Indicators, based on the Stochastic Momentum. Fig 2 4 William Blau s indicators, based on the Stochastic Momen tum.2 2 1 Stochastic Momentum. The Stochastic Momentum Stochastic Momentum, SM - is the distance from the price of the current period to the middle of the price range over the previous q periods The value of the q-period Stochastic Momentum shows the position of price in the price range. The sign of the q-period stochastic momentum shows the price position, relative to the middle of the q-period price range a positive Stochastic Momentum - the price is above the midpoint, a negative - the price is below the midpoint. Fig 2 5 The definition of the Stochastic Momentum. The formula of the q-period Stochastic Momentum. price - price closing of the current period. q - the number of bars, used in calculation of the Stochastic Momentum. LL q - the minimum value of the lowest price for the period q. HH q - the maximum value of the highest prices for the period q.1 2 LL q HH q - the middle of the q-period price range. The formula of the smoothed q-period Stochastic Momentum. price - price of closing - th e price base of the price chart. q - the number of bars, used in the calculation of the Stochastic momentum. sm price, q price-1 2 LL q HH q - the q-period Stochastic Momentum. EMA sm price, q,r - the first smoothing - the EMA r , applied to the q-period Stochastic Momentum. EMA EMA r, s - the second smoothing - the EMA s , applied to the result of the 1st smoothing. EMA EMA EMA sm q, r,s, u - the third smoothing - the EMA u , applied to the result of the 2nd smoothing.2 2 1 2 SM price, q,r, s,u - Stochastic Momentum Specification. Name Stochastic Momentum Indicator q-period stochastic momentum, smoothed q-period stochastic momentum , according to William Blau. Input parameters. q - the period by which the stochastic momentum is calculated by default q 5.r - period of the 1-st EMA, applied to the Stochastic Momentum by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. changes of the rendering of the graphical plotting - the color, thickness, line style the Colors tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, the EMA smoothing is not used. the minimum size of the prices array q-1 r s u-3 1.2 2 2 The Stochastic Momentum Index. The Stochastic Momentum Index SMI - is an indicator of a normalized stochastic rate normalized smoothed q-period stochastic momentum The values of the q-period smoothed Stochastic Momentum is given in the percentage format interval of display -100, 100.Each value of the smoothed q-period Stochastic Mmomentum is normalized by the value of half of the q-period range of price fluctuations Normalization allows for the interpretation of the value of SMI as a degree of an overbought level positive value or oversold level negative of the market. The formula of the Stochastic Momentum Index. price - price of closing - the price base of the price chart. LL q - the minimum value of the lowest price for the period q. HH q - the maximum value of the highest prices for the period q. sm price, q price-1 2 LL q HH q - the q-period Stochastic Momentum. SM price, q,r, s,u - three times smoothed q-period Stochastic Momentum. HH q - LL q - q-period price range.1 2 LL q HH q - the middle of the q-period price range.1 2 HH q - LL q - half of the q-period of the price range. EMA r - the first smoothing - EMA r , applied to 1 the q-period Stochastic Momentum 2 half of the q-period Price Range. EMA EMA r, s - the second smoothing - EMA s , applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - EMA u , applied to the result of the 2nd smoothing.2 2 2 2 SMI price, q,r, s,u - Stochastic Momentum Index Specification. Name Stochastic Momentum Index normalized smoothed q-period Stochastic Momentum according to William Blau. Input parameters. q - the period by which the Stochastic Momentum is calculated by d efault q 5.r - period of 1-st EMA, applied to Stochastic Momentum by default r 20.s - period of the 2nd EMA, applied to the results of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the results of the 2nd smoothing by default, u 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. change the rendering style of the graphical plotting - the color, thickness, line style the Colors tab. optional Two-levels by default -40 and 40 - add remove a level change the value and description of the level, change the style of the rendering of levels the Levels tab. change the lower by default -100 and the upper by default 100 limits of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, then in the corresponding EMA period, smoothing will not be performed. the minimum size of the prices array q-1 r s u-3 1.2 2 3 The Stochastic Oscillator. The definition of the Stochastic Oscillator. SMStochastic - Stochastic Momentum Index SMI price, q,r, s,u. SignalLine - Signal Line - EMA of period, ul, applied to the Stochastic Momentum Index. ul - period EMA signal line - according to William Blau, the ul value must be equal to the period of the last significant 1 EMA index of the stochastic rate.2 2 3 1 SMStochastic price, q,r, s,u, ul - Stochastic Oscillator Specification. The name Stochastic Oscillator based on the Stochastic Momentum , accord ing to William Blau. Input parameters. graphic plot 0 - the Stochastic Momentum Index. q - the period by which the stochastic momentum is calculated by default q 5.r - period of the 1st EMA, applied to the Stochastic Momentum by default r 20.s - period of the 2nd EMA, applied to result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to result of the 2nd smoothing by default, u 3.graphic plot 1 - the signal line. ul - period EMA signal line, with regards to the index of the stochastic rate by default ul 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. change the rendering style of each graphical plotting - the color, thickness, line style the Colors tab. two levels by default -40 and 40 - add remove a level change the value and description of the level, change the rendering style of levels the Levels tab. change the lower by default -100 and the upper by default 100 limits of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, then in the corresponding EMA period, smoothing will not be performed. ul 0 If ul 1, then the signal line coincides with the index of the stochastic rate. the minimum size of the prices array q-1 r s u ul-4 1.2 2 4 The code of the Stochastic Oscillator. The SMStochastic price, q, r, s, u, ul.1 The relation between the indicator arrays, indicator buffers, and graphic plots.2 The algorithm of calculation of the q-period Stochastic Momentum and half of the q-period price range.3 The indicator of deviation from the trend. The considered indicators see the attachment are divided into two groups. I Indicators, based on a deviation from the market trend. - An indicator of an Average Deviation from the trend mean deviation, moving average deviation. - Ergodic MDI oscillator based on the mean deviation. II Indicators, based on the Moving Averages Convergence Divergence. - Moving Averages Convergence Divergence MACD smoothed MACD. - Ergodic MACD-Oscillator based on the MACD indicator.3 1 Indicators, based on the deviation from the market trends. Fig 3 1 William Blau s indicators are based on a deviation from the market trends.3 1 1 The Mean Deviation Indicator. The mean deviation from the trend is the distance between the price and the EMA exponentially smoothed moving average of period r, applied to the price. The trend of market development the EMA r , applied to the price is used to determine the upward trend exponential increase , or downtrend exponential decrease of prices. The moving average smooths out the price curve, but a slight increase of the moving average period leads to a lag, which is clearly visible at the points of price reversal see additionally 1 1 1, Fig 1 2 The value of the average deviation from the trend shows the distance to the EMA r , applied to the price. The sign of the average deviation from the trend shows the position of the price, relative to the EMA r applied to the price a positive deviation from the trend - the price is higher than the exponent, negative - the price is lower than the exponent. The formula for the mean deviation from the trend. price - price of the current period. EMA price, r - the market trend - EMA of the r period, applied to the price. See in the User s Guide to the client terminal MetaTrader , in the section Anatyics Technical Indicators Trend Indicators. A similar index is used by Alexander Elder in his Bears Power and Bulls Power indicators See in the User s Guide to the MetaTrader client terminal in the section Analysis Technical Indicators Oscillators. The indicator of the mean deviation from the trend Mean Deviation Index, MDI - is a smoothed average deviation from the market trend. The formula of the indicator of the mean deviation from the trend. price - price of closing - the price base of the price chart. EMA price, r - the market trend - the first smoothing of the EMA r , applied to the price. md price, r price-EMA price, r - the mean deviation from the trend - the deviation of the price from the EMA r , applied to the price. EMA md price, r , s - the second smoothing - the EMA s , applied to the mean deviation from the trend. EMA EMA md price, r,s, u - the third smoothing - the EMA u , applied to the result of the second smoothing.3 1 1 3 MDI price, r,s, u - Mean Deviation Index Specification. Name The indicator of the mean deviation from the market mean deviation a smoothed mean deviation , according to William Blau. Input parameters. r - period of the 1st EMA, applied to the price by default r 20.s - period of the 2nd EMA, applied to mean deviation by default, s 5.u - period of the 3rd EMA, applied to result of the 2nd smoothing by default, u 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. changes of the rendering of the graphical plotting - the color, thickness, line style the Colors tab. Limitations. s 0, u 0 If s or u are equal to 1, the EMA smoothing is not used. the minim um size of the prices array r s u-3 1.3 1 2 Ergodic MDI-oscillator. Definition of the Ergodic MDI-oscillator. ErgodicMDI - Ergodic - Mean Deviation Index MDI price, r,s, u.The SignalLine - a Signal line - EMA of period ul, applied to the Ergodic. ul - an EMA period of a Signal line - according to William Blau, the ul value must be equal to the period of the last significant 1 of the EMA ergodic.3 1 2 2 ErgodicMDI price, r,s, u,ul - Ergodic MDI-oscillator Specification. Name The Ergodic MDI-oscillator based on the Mean Deviation Index , according to William Blau. Input parameters. graphic plot 0 - Ergodic the indicator of the mean deviation from the trend. r - period of the 1st EMA, applied to the price by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default, s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.graphic plot 1 - Signal Line. ul - period EMA signal line, applied to the Ergodic by default ul 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. change the style of the rendering of each graphical structure - the color, width, line style the Colors tab. Limitations. s 0, u 0 If s or u are equal to 1, the EMA smoothing is not used. ul 0 If ul 1, then the Signal line and the Ergodic lines are the same. the minimum size of the prices array r s u ul-4 1.3 1 3 The code of the Ergodic oscillator. As example, let s consider the ErgodicMDI price, r,s, u,ul indicator.1 The relation between the indicator arrays, indicator buffers, and graphic plots.2 The algorithm for calculating the mean deviation.3 2 Indicators, based on the Moving Average Convergence Divergence. Fig 3 2 Indicators by William Blau are based on the Moving Averages Convergence Divergence.3 2 1 The indicator of Moving Averages Convergence Divergence. The Moving Average Convergence Divergence Moving Average Convergence Divergence, MACD - is the difference between two exponentially smoothed moving averages the fast EMA s the slow EMA r , applied to the price. The sign MACD shows the position of the Fast EMA s , relative to the slow EMA r a positive MACD - EMA s is above the EMA r , a negative MACD - EMA s is below EMA r Change of the MACD by the absolute value an increase MACD indicates the discrepancy between the moving averages, a decrease MACD indicates a convergence of the moving averages. The formula of the Moving Average Convergence Divergence. price - price closing of the current period. EMA price, r - Slow EMA r , applied to the price. EMA price, s - Fast EMA s , applied to the price. The MACD indicator show the relationship between the fast and the slow exponential averages smoothed convergence divergence of the moving averages. The formula of the MACD indicator. price - price of closing - the price of the price chart. EMA price, r - the first smoothing - the slow exponential of the EMA r , applied to the price. EMA price, s - the second smoothing - the fast EMA s , s, applied to th e price. macd r, s EMA price, s - EMA price, r - the MACD. EMA macd r, s,u - the third smoothing - the EMA u , applied to the MACD a fast EMA price, s and a slow EMA price, r.3 2 1 1 MACD price, r,s, u - the Moving Average Convergence Divergence indicator Specification. Name The MACD indicator MACDsmoothed MACD , according to William Blau. Input parameters. r - period of the 1st EMA slow , applied to the price by default r 20.s - period of the 2nd EMA fast , applied to the price by default s 5.u - period of the 3rd EMA, applied to the moving averages convergence divergence by default u 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. changes of the rendering of the graphical plotting - the color, thickness, line style the Colors tab. Limitations. s r limit by the requirements of the theory, is not checked on the program level. u 0 If u 1, smoothing is not performed. the minimum size of the prices array max r, s u-2 1.3 2 2 Ergodic MACD-oscillator. Th e definition of the Ergodic MACD-oscillator. ErgodicMACD - Ergodic - is an indicator of moving averages convergence divergence MACD price, r,s, u.The SignalLine - a Signal Line - an EMA ul , applied to the ergodic. ul - an EMA period of a signal line - according to William Blau, the ul value must be equal to the period of the last significant 1 of the EMA ergodic. The User s Guide to the MetaTrader client terminal , in the Analytics Technical Indicators Oscillators MACD section, describes the technical indicator Convergence Divergence of the moving averages MACD built-in in the MetaTrader 5 client terminal, and how to use it in technical analysis see also iMACD. In contrast to the standard MACD, William Blau uses the exponentially smoothed moving average in the standard MACD the simple moving average is used.3 2 2 1 ErgodicMACD price, r,s, u,ul - Ergodic MACD-oscillator Specification. Name Ergodic MACD-oscillator based on the moving averages convergence divergence indicator , according to Willia m Blau. Input parameters. graphic plot 0 - Ergodic the moving averages convergence divergence. r - period of the 1st EMA slow , applied to the price by default r 20.s - period of the 2nd EMA fast applied to the price by default s 5.u - period of the 3rd EMA, applied to the moving averages convergence divergence by default u 3.graphic plot 1 - the Signal Line. ul - period EMA signal line, is applied to the ergodic by default ul 3.AppliedPrice - price type default AppliedPrice PRICECLOSE. Additionally. displayed in a separate window. change the style of the rendering of each graphical structure - the color, width, line style the Colors tab. Limitations. s r limit by the requirements of the theory, is not checked on the program level. u 0 If u 1, smoothing is not performed. ul 0 If ul 1, then the signal line coincides with the ergodic. the minimum size of the prices array max r, s u ul-3 1.3 2 3 The code of the Ergodic MACD-Oscillator. As example, let s consider the ErgodicMACD price, r,s, u,ul indicator .1 The link between the indicator arrays, indicator buffers, and graphic plots.2 The algorithm of moving averages convergence divergence. In calculating the Ergodic MDI-oscillator and the MACD-Oscillator, according to William Blau, the normalization is not used for reference see pp 1 2 1, 1 3 1 Therefore, the Ergodic MDI-Oscillator and the MACD-Oscillator cannot be used to interpret the degree of the overbought or the oversold market. For example, the recommendations for using the MACD indicator signals from the User s Guide to the MetaTrader client terminal of the Analytics Technical Indicators Oscillators MACD section. The MACD is also useful as an overbought oversold indicator When the shorter moving average pulls away dramatically from the longer moving average i e the MACD rises , it is likely that the security price is overextending and will soon return to more realistic levels. in this case, from the aspect of technical analysis.4 Candlestick Momentum. The considered indicators see t he attachment are divided into two groups. - is the Candlestick Momentum indicator momentum of the q-period candlestick smoothed q-period Candlestick Momentum. The Indexes normalized smoothed q-period Candlestick Momentum. - the Candlestick Momentum Index normalization by the absolute value of the q-period Candlestick Momentum. - the Candlestick Index the normalized by the length q-period Candlestick. The ergodic oscillator of the candlestick. - the Ergodic CMI-Oscillator based on the Candlestick Momentum Index. - the Ergodic CSI-Oscillator based on the Candlestick Index. Fig 4 1 Indicators by William Blau, based on the Candlestick Momentum normalized by the absolute value of the q-period Candlestick Momentum. Fig 4 2 Indicators by William Blau, based on the Candlestick Momentum normalized by the length of the q-period Candlestick.4 1 The Candlestick Momentum.4 1 1 The definition of the Candlestick Momentum. The Momentum see p 1 1 - is the difference between the current price usually, today s closing price and the previous price usually yesterday s closing price The momentum can reflect the price change at any time period of the price graph. The Candlestick Momentum according to William Blau - is the difference between the closing price and the opening price, within the same period within one candlestick The sign of the Candlestick Momentum shows the direction of the price change a positive Candlestick Momentum - the price has increased over the period, a negative - the price has decreased over th e period. The formula of the Candlestick Momentum. close - the closing price of the current period of the candlestick. open - the opening price of the current period of the candlestick. From the standpoint of universality, let s extend the definition of the candlestick momentum. The Candlestick Momentum can reflect the price change for any time period of the price chart. The price base the closing price, opening price can be arbitrary. Fig 4 3 The definition of the q-period Candlestick. The formula of the q-period Candlestick Momentum. q - is the number of bars of the price chart, used in calculation of the Candlestick Momentum. price1 - price closing at the end of period q. price2 q-1 - price opening at the beginning of period q. The formula of the smoothed q-period Candlestick Momentum. q - the number of bars of the price chart, used in calculation the q-period of Candlestick Momentum. price1 - price closing at the end of period q. price2 - price opening at the beginning of period q. cmtm price1,pri ce2,q price1-price2 q-1 - q-period Candlestick Momentum. EMA cmtm price1, price2, q , r - the first smoothing - EMA r , applied to the q-period Candlestick Momentum. EMA EMA r, s - the second smoothing - EMA s , applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - EMA u , applied to the result of the 2nd smoothing.4 1 2 CMtm price1,price2,q, r,s, u - Candlestick Momentum indicator Specification. Name The Candlestick Momentum indicator smoothed q-period Candlestick Momentum , according to William Blau. Input parameters. q - the period of Candlestick Momentum by default q 1.r - period of the 1st EMA, applied to the q-period Candlestick Momentum by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.AppliedPrice1 - price type closing by default AppliedPrice PRICECLOSE. AppliedPrice2 - price type opening by default AppliedPrice PRIC EOPEN. Additionally. displayed in a separate window. changes of the rendering of the graphical plotting - the color, thickness, line style the Colors tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, the EMA smoothing is not used. the minimum size of the prices array q-1 r s u-3 1.4 2 Normalized Candlestick Momentum.4 2 1 Candlestick Momentum Index. The Candlestick Momentum Index CMI - is the normalized q-period Candlestick Momentum. The values of the smoothed momentum of the q-period Candlestick are given as a percentage mapping interval -100, 100 Each value of the smoothed momentum of the q-period Candlestick is normalized by the value of the smoothed q-period Candlestick Momentum, taken in the absolute value Normalization allows the CMI value to be interpreted as a degree of an overbought positive value or oversold negative value market level. The formula for the Candlestick Momentum Index. q - the number of time periods of the price graph, involved in calculating the momentum of the q-period of the candlestick. price1 - price closing at the end of period q. price2 - price opening at the beginning of period q. cmtm price1,pric2,q price1-pric2 q-1 , - q-period Candlestick Momentum. cmtm price1,pric2,q - absolute value of the q-period Candlestick Momentum. CMtm price, q,r, s,u - three times smoothed q-period Candlestick Momentum. EMA r - first smoothing - the EMA r , applied to 1 the q-period Candlestick Momentum 2 the absolute value of the q-period Candlestick Momentum. EMA EMA r, s - the second smoothing - the EMA s , applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - the EMA u , applied to the result of the 2nds smoothing.4 2 1 1 CMI price1,price2,q, r,s, u - Candlestick Momentum Index Specification. Name q-period Candlestick Momentum Index normalized smoothed q-period Candlestick Momentum normalization by the absolute value of the q-period Candlestick Momentum , according to William Blau. Input parameters. q - the period of the Candlestick Momentum by default q 1.r - period of the 1st EMA, applied to q-period Candlestick Momentum by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.AppliedPrice1 - price type closing by default AppliedPrice PRICECLOSE. AppliedPrice2 - price type opening by default AppliedPrice PRICEOPEN. Additionally. displayed in a separate window. change the rendering style of the graphical plotting - the color, thickness, line style the Colors tab. optional two-levels default is -25 and 25 - add remove a level change the value, the level description, change the rendering style of the levels the Levels tab. change the lower by default -100 and the upper by default 100 limits of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, then in the corresponding EMA period, smoothing will not be performed. the minimum size of the prices array q-1 r s u-3 1.4 2 2 The Candlestick Index. The Candlestick index CSI - is an indicator of the normalized q-period Candlestick Momentum normalized smoothed q-period Candlestick Momentum The values of the smoothed q-period Candlestick Momentum are given as a percentage of the scale mapping interval -100, 100.Each value of the smoothed q-period Candlestick Momentum is normalized by the value of the q-period price range or by the length of the q-period candlestick Normalization allows to interpret the value of CSI as a degree of an overbought positi ve value or oversold negative value market level. The formula of the Candlestick Index. q - the number of bars of the price chart, used in calculation of the q-period Candlestick Momentum. price1 - price closing at the end of period q. price2 - price opening at the beginning of period q. cmtm price1,pric2,q price1-price2 q-1 - q-period Candlestick Momentum. LL q - the minimum value of the lowest price for the period q. HH q - the maximum value of the highest price for period q. HH q - LL q - q-period price range the length of the q-period candlestick. CMtm price1,pric2,q, r,s, u - three times smoothed q-period Candlestick Momentum. EMA r - the first smoothing - the EMA r , applied to 1 the q-period Candlestick Momentum, 2 the q-period Price Range or the length of the q - period candlestick. EMA EMA r, s - the second smoothing - the EMA s , applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - the EMA u , applied to the result of the 2nd smoothing.4 2 2 1 CSI price1, price2,q, r,s, u - Candlestick Index Specification. Name q-period Candlestick Index normalized smoothed q-period Candlestick Momentum normalization by the length of the q-period candlestick , according to William Blau. Input parameters. q - the period for which the q-period Candlestick Momentum is calculated by default q 1.r - period of the 1st EMA, applied to the q-period candlestick Momentum by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.AppliedPrice1 - price type closing by default AppliedPrice PRICECLOSE. AppliedPrice2 - price type opening by default AppliedPrice PRICEOPEN. Additionally. displayed in a separate window. change the rendering style of the graphical plotting - the color, thickness, line style the Colors tab. optional two-levels default is -25 and 25 - add remove a level change the value, the level description, change the rendering style of the levels the Levels tab. change the lower by default -100 and the upper by default 100 limits of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, the EMA smoothing is not used. the minimum size of the prices array q-1 r s u-3 1.4 3 The Ergodic Oscillators of the candlestick.4 3 1 The Ergodic CMI-oscillator. The definition of the Ergodic CMI-oscillator. ErgodicCMI - Ergodic - Candlestick Momentum Index CMI price1,price2,q, r,s, u.The SignalLine - a Signal Line - EMA ul , applied to the Ergodic. ul - an EMA period of a signal line - according to William Blau, the ul value must be equal to the period of the last significant 1 of the EMA ergodic. ErgodicCMI price1,pric2,q, r,s, u,ul - ergodic CMI-oscillator Specification. Name Ergodic CMI-Oscillator based on the Candlestick Momentum Index , according to Wil liam Blau. Input parameters. graphic plot 0 - Ergodic Candlestick Momentum Index. q - the period of Candlestick Momentum by default q 1.r - period of the 1st EMA, applied to q-period Candlestick Momentum by default r 20.s - period of the 2nd EMA, applied to result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to result of the 2nd smoothing by default, u 3.graphic plot 1 - the Signal Line. ul - period of Signal Line, applied to the Ergodic by default ul 3.AppliedPrice1 - price type closing by default AppliedPrice PRICECLOSE. AppliedPrice2 - price type opening by default AppliedPrice PRICEOPEN. Additionally. displayed in a separate window. change the rendering style of each graphical plotting - the color, thickness, line style the Colors tab. two levels by default -25 and 25 - add remove a level, change the value, level description, change the rendering style of levels the Levels tab. change the lower by default -100 and the upper by default 100 limits of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, then in the corresponding EMA period, smoothing will not be performed. ul 0 If ul 1, then the signal line coincides with the ergodic. the minimum size of the prices array q-1 r s u ul-4 1.The code of the Ergodic CMI-oscillator. As example, let s consider the ErgodicCMI price1,price2,r, s,u, ul indicator.1 The relation between the indicator arrays, indicator buffers, and graphic plots.2 Algorithm of calculating cmtm and cmtm.4 3 2 The Ergodic CSI-oscillator. The Ergodic CSI-oscillator is defined as follows. ErgodicCSI - Ergodic - Candlestick index CSI price1,price2,q, r,s, u.The SignalLine - a Signal Line - the EMA u l, applied to the Ergodic. ul - an EMA period of a Signal Line - according to William Blau, the ul value must be equal to the period of the last significant 1 of the EMA ergodic.4 3 2 1 ErgodicCSI price1,pric2,q, r,s, u,ul - ergodic CSI-oscillator Specification. Name Ergodic CSI-Oscillator based on the Candlestick Index , according to William Blau. Input parameters. graphic plot 0 - Ergodic Candlestick Index. q - the period for which the q-period Candlestick Momentum is calculated by default q 1.r - period of the 1st EMA, applied to the q-period Candlestick Momentum by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.graphic plot 1 - the Signal Line. ul - period EMA signal line, is applied to the Ergodic by default ul 3.AppliedPrice1 - price type closing by default AppliedPrice PRICECLOSE. AppliedPrice2 - price type opening by default AppliedPrice PRICEOPEN. Additionally. displayed in a separate window. change the rendering style of each graphical plotting - the color, thickness, line style the Colors tab. two levels by default -25 and 25 - add remove a level, change the value, level description, change the rendering style of levels the Levels tab. chan ge the lower by default -100 and the upper by default 100 boundaries of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, then in the corresponding EMA period, smoothing will not be performed. ul 0 If ul 1, then the signal line coincides with the ergodic. the minimum size of the prices array q-1 r s u ul-4 1.4 3 2 2 The code of the Ergodic CSI-oscillator. On the example of the indicator ErgodicCSI price1, price2,r, s,u, ul.1 The relation between the indicator arrays, indicator buffers, and graphic plots.2 The algorithm of calculation for the cmtm and the q-period price range.5 Directional Trend. The considered indicators see attachment. - is an indicator of the Virtual Close q-period Composite High-Low Momentum the smoothed q-period Composite High-Low Momentum. - the Directional Trend Index normalized smoothed q-period Composite High-Low Momentum. - the Ergodic DTI-oscillator based on the Directional Trend Index. Fig 5 1 Directional Trend Index Indicators.5 1 The Composite High-Low Momentum.5 1 1 Defining the momentum of the up-trend and down-trend. One of the definitions of the trend If the values of the maximum prices increase, then there is an upward trend If the values of the minimum prices are decreasing, then there is a downward trend. A group of Momentum indicators, discussed in Section 1, can be used tp calculate the momentum for the maximums of the prices. and for the minimum prices. The up-trend Momentum or the High Momentum Up HMU is the positive difference between the maximum price of the current period, and the maximum price at the beginning of the q-period price range The value of the q-period Momentum of the up-trend shows a relative velocity of the growth of the maximum price for the current period, compared to the maximum price at the beginning of the q-period range of price fluctuations. The formula of the q-period m omentum of the up-trend. q - is the number of time periods of the price graph, involved in the calculation of the up-trend momentum. High - the maximum price for the current period. High q 1 - maximum price q-1 periods ago. The down-trend momentum or the Low Momentum Down LMD - this is a positive difference between the minimum price of the current period, and the lowest price for the beginning of the q-period range of price fluctuations The value of the q-period momentum of the down-trend shows the relative velocity of the decrease of the minimum price of the current period, compared with the lowest price for the beginning of the q-period price range. The formula of the q-period down-trend Momentum. q - is the number of time periods of the price chart, used in the calculation of the down-trend momentum. Low - the minimum price for the current period. Low q-1 - the minimum price q-1 periods ago. A Composite High-Low Momentum High-Low Momentum, HLM - is the difference between the q-period Momentu m of the up-trend and the q-period Momentum of the down-trend The sign of the composite High-Low Momentum indicates the trend of price changes a positive HLM - a trend of price increase upward trend , and a negative - the trend of price decrease downward trend. q - the number of time periods of the price graph, involved in the calculation of the momentums of the up-trend and down-trend. HMU q - the momentum of the up-trend for the period q. LMD q - the momentum of the down-trend for the period q. The formula of the smoothed q-period Composite High-Low Momentum Virtual Close. q - the number of time periods of the price graph, involved in the calculation of the momentums of the up-trend and down-trend. HMU q - the momentum of the up-trend for the period q. LMD q - the momentum of the down-trend for the period q. HLM q HMU q - LMD q - the q-period Composite High-Low Momentum. EMA HLM q , r - the first smoothing - the EMA r , applied to the q-period Composite High-Low Momentum. EMA EMA r, s - the sec ond smoothing - the EMA s , applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - the EMA u , applied to the result of the 2ndsmoothing. The curve of the graph of the accumulated sum of complex momentums for the maximums and minimums is called a virtual close.5 1 2 HLM q, r,s, u - Virtual Close Indicator Specification. Name Indicator of the virtual Close q-period Composite High-Low Momentum a smoothed q-period Composite High-Low Momentum , according to William Blau. Input parameters. q - the period for which the HLM by default q 2 is calculated. r - period of the 1st EMA, applied to the HLM by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.Additionally. displayed in a separate window. changes of the rendering of the graphical plotting - the color, thickness, line style the Colors tab. Limitations. r 0, s 0, u 0 If r, s, or u ar e equal to 1, then in the corresponding EMA period, smoothing will not be performed. the minimum size of the prices array q-1 r s u-3 1.5 2 Directional Trend Index.5 2 1 The definition of the Directional Trend Index. The Directional Trend Index Directional Trend Index, DTI - is an indicator of a normalized q-period Composite High-Low Momentum normalized smoothed HLM The values of the smoothed HLM are given as a percentage of the scale interval of display -100, 100.Each value of the smoothed HLM is normalized by the value of a smoothed HLM, taken as an absolute value Normalization allows the DTI value to be interpreted as a degree of an overbought positive value or oversold negative value market level. The formula of the Directional Trend Index. q - the number of time periods of the price graph, involved in the calculation of the momentums of the up-trend and down-trend. HLM q HMU q - LMD q - a complex q-period momentum for the maximums and minimums. HLM q - absolute value HLM q. HLM q, r,s, u - three times smoothed HLM q. EMA r - the first smoothing - the EMA r , applied to 1 to the HLM q 2 to the absolute value of the HLM q. EMA EMA r, s - the second smoothing - the EMA s , applied to the result of the 1st smoothing. EMA EMA EMA r , s , u - the third smoothing - the EMA u , applied to the result of the 2nd smoothing.5 2 2 DTI q, r,s, u - Directional Trend Index Specification. Name Directional Trend Index normalized smoothed q-period Composite High-Low Momentum , according to William Blau. Input parameters. q - the period for which the HLM by default q 2 is calculated. r - period of the 1st EMA, applied to the HLM by default r 20.s - period of the 2nd EMA, applied to the result of the 1st smoothing by default s 5.u - period of the 3rd EMA, applied to the result of the 2nd smoothing by default, u 3.Additionally. displayed in a separate window. change the rendering style of the graphical plotting - the color, thickness, line style the Colors tab. optional two-levels default is -25 and 25 - add remove a level change the value, the level description, change the rendering style of the levels the Levels tab. change the lower by default -100 and the upper by default 100 limits of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, then in the corresponding EMA period, smoothing will not be performed. the minimum size of the prices array q-1 r s u-3 1.5 3 The Ergodic DTI-oscillator.5 3 1 The definition of the Ergodic DTI-oscillator. ErgodicDTI - Ergodic - Directional Trend Index DTI q, r,s, u.The SignalLine - a Signal Line - an exponentially moving average of period ul, applied to the Ergodic. ul - an EMA period of a Signal Line - according to William Blau, the ul value must be equal to the period of the last significant 1 of the EMA ergodic.5 3 2 ErgodicDTI q, r,s, u,ul - Ergodic DTI-oscillator Specification. Name Ergodic DTI-Oscillator based on the Directional Trend Index by William Blau. Input parameters. graphic plot 0 - ergodic index of the directional trend. q - the period for which the HLM by default q 2 is calculated. r - period of the 1st EMA, with regards to the HLM by default r 20.s - period of the 2nd EMA, with respect to the results of the first smoothing by default s 5.u - period of the 3rd EMA, with respect to the result of the second smoothing by default, u 3.graphical construction 1 - the signal line. ul - period EMA signal line, is applied to the ergodic by default ul 3.Additionally. displayed in a separate window. change the rendering style of each graphical plotting - the color, thickness, line style the Colors tab. two levels by default -25 and 25 - add remove a level, change the value, level description, change the rendering style of levels the Levels tab. change the lower by default -100 and the upper by default 100 limits of the scale of the single indicator window the Scale tab. Limitations. r 0, s 0, u 0 If r, s, or u are equal to 1, the EMA smoothin g is not used. ul 0 If ul 1, then the signal line coincides with the ergodic. the minimum size of the prices array q-1 r s u ul-4 1.5 4 The code of the Ergodic DTI-oscillator. The ErgodicDTI q, r,s, u,ul indicator.1 The link between the indicator arrays, indicator buffers, and graphic plots.2 Algorithm of calculation of HLM and HML. The first part of the article William Blau s Indicators and Trading Systems on MQL5 Part 1 Indicators provides a description of the developed indicators and oscillators in MQL5, from the book Momentum, Direction, and Divergence by William Blau. The use of these indicators and oscillators when making trading decisions will be described in the second part of the article William Blau s Indicators and Trading Systems in MQL5 Part 2 Trading Systems. The contents of the attachment archive of this article.

No comments:

Post a Comment