Discussion of article "MQL5 Cookbook — Macroeconomic events database"
You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration Log in
If you do not have an account, please register
New article MQL5 Cookbook — Macroeconomic events database has been published:
The article discusses the possibilities of handling databases based on the SQLite engine. The CDatabase class has been formed for convenience and efficient use of OOP principles. It is subsequently involved in the creation and management of the database of macroeconomic events. The article provides the examples of using multiple methods of the CDatabase class.
Adding new columns to a table is also a pretty common task.
Suppose that we need to expand our COUNTRIES table and add a column containing the number of macroeconomic events that fall into the calendar.
The task will be performed by the 15_add_new_column.mq5 script.
After executing the script, check the table (Fig. 5). Now it features the new column EVENTS_NUM.
Fig. 5. New EVENTS_NUM column in the COUNTRIES table
Author: Denis Kirichenko