Well, its for mysql, but should give you an idea on how to go about it...
EDIT:
I just noticed, you will need the MQLplus error library from code base...
I have attached the current version and here is the link to the published version:
https://www.mql5.com/en/code/32083;
Or you remove the corresponding error handling functions from the file lib_mysql.mqh.
- www.mql5.com
Thank you!
Hopefully i can make it work with PostgreSQL as well.
Well, its for mysql, but should give you an idea on how to go about it...
EDIT:
I just noticed, you will need the MQLplus error library from code base...
I have attached the current version and here is the link to the published version:
https://www.mql5.com/en/code/32083;
Or you remove the corresponding error handling functions from the file lib_mysql.mqh.
Hi! Can you please share a tutorial or something to help for building a file like pgsql.mqh or libpq.mqh for database connection with postgresql with mt4
Hi! Can you please share a tutorial or something to help for building a file like pgsql.mqh or libpq.mqh for database connection with postgresql with mt4
I couple of weeks ago I took some notes about MQL5 and Postgres connection.
https://www.mql5.com/en/articles/12308
Depending on your needs, it may be of some help.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
I would like to set up a process that syncs the MT4/5 server data to a postgres db. I would like for it to be live and run continuously to sync the two dbs.
Can someone point me to the right approach and choice of tools required?
Thank you.