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.
in the log, third line from the bottom. Can you read it?
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:
USDJPY and PERIOD_H1 respectively.
this.m_symbol.Name( ), this.m_period
what are equal to ?

Документация по 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:
https://www.mql5.com/en/articles/179
"can't open TextDisplay.mqh"
Let's publish this include.
Thank you.
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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.
Author: Dima