Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 08:47:47 +0000



Post From: Connecting to external MySQL database server

[2022-04-20 07:30:22]
User119231 - Posts: 7
Thank you very much for your help enemyspy. My main issue here is how I am going to make the connection in my custom study .dll.
As you said in your answer I just need to push the data once at the end of the load so I probably need to open a connection once but still I have no idea how to do this with a sierra chart custom study and I cannot find any sample code in the documentation or what kind of methods should I use to connect with the database.

I was just thinking the external .exe solution because I saw what ChrisR was doing in the beginning of the thread using the system() function to push data from the custom study to the executable which talked with the database.

Would you be willing to share with me some code or functions you have used to make this work so that I can understand how to proceed further with opening the connection part and how to push values to the database? Even if you could just point me to specific parts of the documentation that refer to this subject would be tremendously helpful (in case they exist).