Discussão do artigo "Linguagem MQL4 para Iniciantes. Indicadores personalizados (Parte 1)"

 

Novo artigo Linguagem MQL4 para Iniciantes. Indicadores personalizados (Parte 1) foi publicado:

This is the fourth article from the series "MQL4 Languages for Newbies". Today we will learn to write custom indicators. We will get acquainted with the classification of indicator features, will see how these features influence the indicator, will learn about new functions and optimization, and, finally, we will write our own indicators. Moreover, at the end of the article you will find advice on the programming style. If this is the first article "for newbies" that you are reading, perhaps it would be better for you to read the previous ones. Besides, make sure that you have understood properly the previous material, because the given article does not explain the basics.

Tipos de Indicadores

Agora vou mostrar-lhe os tipos existentes de indicadores. Certamente você já viu um monte deles, mas agora eu gostaria de chamar sua atenção para as características e parâmetros dos indicadores, portanto, vamos fazer uma pequena classificação de características e parâmetros. Isto irá ajudá-lo a escrever indicadores personalizados. O primeiro indicador:

Este é o indicador Média Móvel, MA, um indicador técnico amplamente utilizado. Preste atenção aos seguintes fatos importantes:

  • o indicador é desenhado na janela do gráfico
  • o indicador mostra apenas um valor
  • a faixa dos valores do indicador é ilimitada e depende dos preços correntes
  • a linha é desenhada com uma certa cor, largura e estilo (linha sólida)

Autor: Antoniuk Oleg

Razão: