Discussing the article: "Developing a Multi-Currency Advisor (Part 27): Component for Displaying Multi-Line Text"
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
Check out the new article: Developing a Multi-Currency Advisor (Part 27): Component for Displaying Multi-Line Text.
If there is a need to display text on a chart, we can use the Comment() function. But its capabilities are quite limited. Therefore, in this article, we will create our own component - a full-screen dialog window capable of displaying multi-line text with flexible font settings and scrolling support.
Last time we wrote an implementation of the calculation part, which did not have any strict requirements for efficiency. To display the calculation results, we used two simple methods available "out of the box". The first one is to use the Comment() standard function, which displays the sent text directly on the chart. The second one is to use another standard function Print() to display text to the EA logs. This is quite convenient for simple tasks.
However, these methods have a number of limitations. The main problem with the first one is the lack of control over the font size, style and color, as well as the inability to scroll through the text when there is a large amount of information. This creates inconvenience, especially when outputting multi-line or structured data. The second method has the same problems, except for scrolling, plus the added inconvenience of constantly adding entries to the journal.
Therefore, in this article, we will create our own component - a full-screen dialog window capable of displaying multi-line text with flexible font settings and scrolling support. This tool will make information visualization more convenient and clear. After we validate this component in practice, it will likely become part of the Adwizard library as a tool for displaying various types of information about multicurrency EAs.
Author: Yuriy Bykov