Experts: MQL5 Programming for Traders – Source Codes from the Book. Part 5

 

MQL5 Programming for Traders – Source Codes from the Book. Part 5:

In Part 5 of the book, we'll delve deeper into the APIs associated with algorithmic trading, including financial data analysis and processing, chart visualization, automation, and user interactions.

MQL5 Programming for Traders – Source Codes from the Book. Part 5

Author: MetaQuotes

 
Learn from the West.
 
Thank you, sir.
 
Where is the book? 🤔
 
Vitaliy Belomestnov #:
Where's the book? 🤔

In the header of the page - Algotrading Tutorial.

Программирование на MQL5 для трейдеров - Учебник на MQL5.com
Программирование на MQL5 для трейдеров - Учебник на MQL5.com
  • www.mql5.com
Современный трейдинг немыслим без компьютера. Автоматизация рабочего процесса трейдера уже давно вышла за пределы бирж и офисов брокеров, став...
 

I attach here a slightly modified version of the indicator IndDeltaVolume.mq5. In this version, the tester has disabled the output of warnings that the CopyTicksRange function did not return data. At the moment, the tester has a bug that the request of ticks on the history (even within visible bars) returns 0 and zero error code. A similar problem is demonstrated for the test indicator from MQ.

When working in the tester, CopyTicksRange returns ticks only for bars starting from the test date, which for this indicator means a delay on BarCount bars - further the histogram is drawn normally. There is no such problem on the online chart.

Also added delta calculation for real volumes (previously only buy and sell were displayed separately) and horizontal level 0.

Новая версия платформы MetaTrader 5 build 4755: общие улучшения
Новая версия платформы MetaTrader 5 build 4755: общие улучшения
  • 2025.05.23
  • fxsaber
  • www.mql5.com
В пятницу 13 декабря 2024 года будет выпущена обновленная версия платформы MetaTrader 5...
Files:
 
I did not find examples of using the CopySeries() function in the book. Did I look badly or is there some reason not to use it?
 
Aleksey Nikolayev #:
I did not find examples of using the CopySeries() function in the book. Did I look badly or is there some reason not to use it?

You can consider it an omission, which happened because the function was added to the API when the book was already half-written (including the corresponding section). In many other cases, MQL5 updates were promptly added before finalisation, but not here. On the other hand, the book does not have to contain absolutely the entire API.

 
Stanislav Korotky #:

You can consider it an omission, which happened because the function was added to the API when the book was already half-written (including the relevant section). In many other cases, MQL5 updates were promptly added before finalisation, but not here. On the other hand, the book does not have to contain absolutely the entire API.

Not the slightest attempt to criticise, I just thought that suddenly something is wrong with this function (I didn't think about the dates of the book and the introduction of the function).