Discussão do artigo "Os indicadores das tendências micro, média e principal"

 

Novo artigo Os indicadores das tendências micro, média e principal foi publicado:

O foco deste artigo é investigar a possibilidade de automação do comércio e a análise, com base em algumas das ideias descritas no livro por James Hyerczyk "Pattern, Price & Time: Using Gann Theory in Trading Systems" na forma de indicadores e Expert Advisor. Sem pretender ser exaustivo, aqui vamos investigar apenas o Modelo - a primeira parte da teoria Gann.

Figura 9. Posições comerciais longas

Autor: Dmitriy Skub

 
Você precisa marcar a caixa de seleção Allow import of DLLs (Permitir importação de DLLs) e, em seguida, o botão OK será exibido :)
 

Ao iniciar um Expert Advisor no modo Strategy Tester (bem como ao tentar adicionar um Expert Advisor a um gráfico), o MetaTrader gera os seguintes erros:

Qual é o motivo?

 
egobyk:

Ao iniciar um Expert Advisor no modo Strategy Tester (bem como ao tentar adicionar um Expert Advisor a um gráfico), o MetaTrader gera os seguintes erros:

Qual é o motivo?

No registro, terceira linha a partir da parte inferior. Você consegue ler?
 
sergeev:
no registro, terceira linha a partir da parte inferior. Consegue ler?
Sim, consigo. O indicador em si existe e se desenvolve perfeitamente bem no gráfico. Até que seja necessário chamá-lo pelo Expert Advisor.
 

em seguida, coloque apenas Print by code e veja onde ele falha.

Procure por isso. Pode haver erros no compilador.

A propósito, você tem permissão para usar DLLs?

 

Sim, as DLLs estão ativadas. O problema está no arquivo GannTrendSignal.mqh, função InitIndicators. esse printf foi acionado:

        this.handle_main_swing = iCustom( this.m_symbol.Name( ), this.m_period, "GannMainTrend", 1000, false, false, 1, 1, LightCyan, LightGreen, LightPink, LightGreen, LightPink, 3 );
        if( this.handle_main_swing == INVALID_HANDLE )
        {
           printf("INVALID_HANDLE");
                return( false );
        }
 

this.m_symbol.Name( ), this.m_period

a que são iguais?

 
sergeev:

this.m_symbol.Name( ), this.m_period

que são iguais a ?

USDJPY e PERIOD_H1, respectivamente.
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы графиков / Периоды графиков
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы графиков / Периоды графиков
  • www.mql5.com
Стандартные константы, перечисления и структуры / Константы графиков / Периоды графиков - Документация по MQL5
 

Oi Dima,

é uma boa ideia. Se eu quiser compilar seu código-fonte, recebo a seguinte mensagem:

"não é possível abrir TextDisplay.mqh"

Vamos publicar essa inclusão.

Obrigado.

 
dee544:


"Não é possível abrir o TextDisplay.mqh"

Vamos publicar esse include.

Obrigado.

https://www.mql5.com/pt/articles/179
Create your own Market Watch using the Standard Library Classes
  • 2010.12.28
  • Dmitriy Skub
  • www.mql5.com
The new MetaTrader 5 client terminal and the MQL5 Language provides new opportunities for presenting visual information to the trader. In this article, we propose a universal and extensible set of classes, which handles all the work of organizing displaying of the arbitrary text information on the chart. The example of Market Watch indicator is presented.