Hello!
I'm having trouble putting together the code to connect to a database and control a query.
I created this code through some queries but I have an error when complicating code 4029.
void Check()
{
string uri = "END_POINT_API";
char post[100];
char result1[100];
string headers;
string APIKEY = "";
string LICENCEKEY = "";
int res;
string signal = "?api_key=" + APIKEY + "&license_key=" + LICENSEKEY;
StringToCharArray(signal, post);
// Construct the request headers
headers = "Content-Type: application/json"; // Set the correct header format
// Reset last error
ResetLastError();
// Post data to REST API
res = WebRequest(
"POST",
uri,
headers, // Pass headers as a string
10, // Timeout in seconds
post,
result1, // Store the response in result1
headers // Response headers (optional)
);
// Check errors
if(res == -1)
{
int error_code = GetLastError();
string error_msg = ErrorDescription(error_code);
Print("Error in Webquest. Error Code ",error_code," Error ",error_msg);
if(error_code==4060)
{
MessageBox("Add address '"+uri+"' in Expert Advisors tab of the Options window", "Error", MB_ICONINFORMATION);
}
else
{
// Successful
Print("REST client's POST: ", signal);
Print("Server response: ", CharArrayToString(result1, 0, -1));
}
}
}
//+------------------------------------------------------------------+
Below is the documentation of the API in which I want to query and with the result I will search for some information to validate the license of my products.

It is important to mention that I inserted my end-point in the metatrader 4 options, ruling out that this is why the connection problem occurred.

Commandes similaires
Part 1: Project setup Input settings (risk, stop loss, take profit, EMA periods) Indicator initialization Trade management framework Part 2: Trading logic EMA crossover detection Buy/Sell entry rules One-trade-per-symbol check Part 3: Risk management Automatic lot size calculation Stop-loss and take-profit placement Trade execution and error handling Part 4: Final touches On-screen information Optimization
I have an expert advisor's investor login. I want you to study it and make me the exact same EA. There should be absolutely no differences or mistakes. You should have great observation skills for this aswell
I am looking for an experienced MQL5 developer to code a custom Expert Advisor for MetaTrader 5 based on my own private trading strategy.I have all the specific entry rules, exit conditions, and risk management parameters fully prepared. I will share these exact details with the selected developer via direct message once the job is initiated.The final delivery must include the clean, fully commented source code (.mq5
I require a custom EA and an accompanying custom indicator built in MQL5 for Meta Trader 4/5. The EA must be fully automated (Algo Trading); Telegram-Signal-Linked and named 'AMK Fx'
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation