MQL5 Programming for Traders - source codes from the book. Part 5:
Author: MetaQuotes
Where's the book? 🤔
In the header of the page - Algotrading Tutorial.
- 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.
- 2025.05.23
- fxsaber
- www.mql5.com
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.
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.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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.
Author: MetaQuotes