Discussion of article "The Indicators of the Micro, Middle and Main Trends"

 

New article The Indicators of the Micro, Middle and Main Trends is published:

The aim of this article is to investigate the possibilities of trade automation and the analysis, on the basis of some ideas from a book by James Hyerczyk "Pattern, Price & Time: Using Gann Theory in Trading Systems" in the form of indicators and Expert Advisor. Without claiming to be exhaustive, here we investigate only the Model - the first part of the Gann theory.

Figure 9. Long positions trading

Author: Dima

 
You need to tick the Allow import of DLLs checkbox - then the OK button will appear :)
 

When launching an Expert Advisor in the Strategy Tester mode (as well as when trying to add an Expert Advisor to a chart), MetaTrader generates the following errors:

What is the reason?

 
egobyk:

When launching an Expert Advisor in the Strategy Tester mode (as well as when trying to add an Expert Advisor to a chart), MetaTrader generates the following errors:

What is the reason?

in the log, third line from the bottom. can you read it?
 
sergeev:
in the log, third line from the bottom. Can you read it?
I can. The indicator itself exists and builds perfectly well on the chart. Until it comes to calling it from the Expert Advisor.
 

then only put Print by code and see where it fails.

Look for it. There may be errors in the compiler.

By the way, do you have DLLs allowed?

 

Yes, the DLLs are enabled. The problem is in the file GannTrendSignal.mqh, function InitIndicators. this printf was triggered:

        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

what are equal to ?

 
sergeev:

this.m_symbol.Name( ), this.m_period

what are equal to ?

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

Hi Dima,

 

it's a good idea. If I want compile your source, I recive following message:

"can't open TextDisplay.mqh"

Let's publish this include.

Thank you. 

 
dee544:


"can't open TextDisplay.mqh"

Let's publish this include.

Thank you. 

https://www.mql5.com/en/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.