You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Greetings and welcome back to Part 29 of the Introduction to MQL5 series! In the previous article, we covered the elements of a URL and discovered how to use MQL5's API to get the most recent prices from external platforms. Additionally, you learned how to read the JSON response and retrieve the precise information you require.
Introduction to MQL5 (Part 30): Mastering API and WebRequest Function in MQL5 (IV)
Introduction to MQL5 (Part 31): Mastering API and WebRequest Function in MQL5 (V)
Welcome back to Part 31 of the Introduction to MQL5 series! In the previous articles, we covered the basics of the API and WebRequest function in MQL5. I showed you how to send a request to a server, receive a response, and sort the server response to retrieve important information. Specifically, in the previous article, we retrieved the candle data for the last 5 daily candles of BTCUSDT using the Binance API. We also discussed how to classify related data into separate arrays, such as open, high, low, and close prices. With this organized data, you can build both Expert Advisors and indicators.
Introduction to MQL5 (Part 32): Mastering API and WebRequest Function in MQL5 (VI)
Introduction to MQL5 (Part 33): Mastering API and WebRequest Function in MQL5 (VII)
Welcome back to Part 33 of the Introduction to MQL5 series. In the previous parts of this journey, we focused on how MQL5 can communicate with external platforms using APIs and the WebRequest function. You learned how to send HTTP requests, receive and interpret server responses, organize candle data, save it into files, and visualize that data inside custom indicators. These steps helped build a strong foundation for working with external data in MetaTrader 5.
Introduction to MQL5 (Part 34): Mastering API and WebRequest Function in MQL5 (VIII)
Welcome back to Part 34 of the Introduction to MQL5 series! In the previous article, we focused on the fundamentals of sending API requests from MetaTrader 5 to Google Generative AI. We looked at the structure of requests, how responses are received, and how the WebRequest function operates. There was no direct contact with the chart itself at that point; all communication with the AI was done in code.
In this article, we’ll develop an interactive control panel directly on the MetaTrader 5 chart, which is a practical advancement. This panel will enable users to enter a query, send it to the AI, and view the outcome within the terminal. Since this series has not yet covered graphical panels in MQL5, we will present the basic concepts required to create and manage them. We won't, however, explore deeply the entirety of graphical interface development. We will only discuss the panel features required for this project because this article is still primarily focused on APIs and the WebRequest function in MQL5.
Introduction to MQL5 (Part 35): Mastering API and WebRequest Function in MQL5 (IX)
Introduction to MQL5 (Part 36): Mastering API and WebRequest Function in MQL5 (X)
Welcome back to Part 36 of the Introduction to MQL5 series! In Part 31 of this series, we discussed how to communicate with external platforms like Binance, but the communication was direct and did not involve exchanging any sensitive information. We’ll get into the security aspect of API connectivity in this article. We go over key subjects including signatures, HMAC (Hash-based Message Authentication Code), and SHA256 hashing, which are used to authenticate requests, confirm request integrity, and stop tampering. When making critical API calls, like placing orders or managing trades, these security measures are extremely crucial.
Introduction to MQL5 (Part 37): Mastering API and WebRequest Function in MQL5 (XI)
Welcome back to Part 37 of the Introduction to MQL5 series! In the previous article, we introduced the basics of API signatures and explored how secure requests are created in MQL5 using hashing and HMAC-based techniques. We focused on why signatures are necessary, how they protect sensitive requests, and how MQL5 handles signature generation at a conceptual level.
This article builds on that foundation by taking the next useful step. Here, we will write an MQL5 script that retrieves account balance data for every asset that is accessible by sending authenticated API queries to Binance. This will compile all the previously discussed topics, such as using WebRequest, handling timestamps, creating signatures, and interacting with private API endpoints. You will have a firm grasp of how to safely interact with Binance and retrieve actual account information straight from MQL5 at the end of this article.
Introduction to MQL5 (Part 38): Mastering API and WebRequest Function in MQL5 (XII)
Welcome back to Part 38 of the Introduction to MQL5 series! In the previous article, we concentrated on creating a strong framework for utilizing MQL5 to communicate with external systems. We looked at the creation of API endpoints, the operation of the WebRequest function, the preparation of authentication components like timestamps and signatures, and the reception and interpretation of server responses. When working with any private or confidential API interaction, these ideas are essential.
This article uses an entirely project-based methodology, just like the previous sections of this series. Instead of talking about theory in isolation, we will put each idea into practice in a real-world process. This approach aids in your comprehension of both the functioning of separate parts and how they interact in an actual integration situation. This article brings the API series to a close and completes the journey.