Send price data to mysql database

Created at 16 Jan 2021, 23:00
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
KE

kebbo

Joined 28.09.2020

Send price data to mysql database
16 Jan 2021, 23:00


Hello cTrader Community,

I would like to get the following problem solved:

I want a cbot to run in e.g. 5min chart and upload the closing price of the candle every 5min to a simple MySql database.

I have already worked through several sources of information on the Internet, Youtube and other websites , including here in the forum found the following topics:
- https://ctrader.com/forum/cbot-support/2517
- https://ctrader.com/forum/cbot-support/22017

The fact is, I can not get it to run!
I have a mysql database with the associated credentials and of course modified the codes accordingly.
But if I paste the complete code from my first link into my cbot, about 20 errors appear when compiling.

I downloaded the Mysql.data.dll from the internet and added it directly in CTrader via "Manage references". Is there anything else missing? Is this where the error is?

Can you help me how to implement this "simple" project?
The code should be a bit more detailed and bigger afterwards, I get all that done, the only thing I fail at is storing my data in a MySql table.

Is there a detailed step by step tutorial that still works currently?

I am infinitely grateful to you guys.

Have a nice weekend!

kebbo

 


@kebbo