[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 264
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
Looks like a week for us newbies is the deadline after which we go to you pros))))
Concluded from the last few posts....
let's get to the bottom of this:) state the context.
Context? simple...
Article Creating an ordinary program(https://book.mql4.com/ru/build/index) from the textbook.
There, a file <Inform.mqh> is included in the program.
""""""
A separate output subwindow is created using a custom indicator with appropriate settings. The only purpose of this indicator is to create a subwindow, therefore, no calculations are performed in the indicator, there is also no purpose to create indicator lines. The code of the indicator Inform.mq4 may look as follows:
In general, the programmer can add the necessary code to the indicator, thereby providing it with additional properties. For example, in some part of the indicator subwindow, you can display the indicator lines. This example shows a simple code of an indicator, the window of which will display the graphical objects.
""""
Here is the code of the Inform file. I don't understand how to get signals from it on the chart. In the program it works, it seems to give out commands on the chart, but nothing... I need to attach an Inform indicator and write something in it? Or another way?
Please tell me how to do it ((...)
Please tell us what to do((.
First, a little bit of theory. An MQL program is... program. That is, it cannot perform operations that it is not told to perform. In the "program execution" help section you can read that when a new tick comes in the Expert Advisor/indicator, the start() function is executed. If the Inform() function is not called from the start() function, it will not be executed. Now read further the article from the section you have mentioned: The Inform() function can be called from any place in the program where it is necessary to print the next message. I.e., in function start(), where we need to print the message, we write
Thanks for the explanation, of course, but it is called from the program often, in the main body it is not present, but in other iclude it is everywhere and is called by sending messages, but they are not output(
as an example a line from Close_All.mqh
It is essentially the same as in the tutorial. All calls come from include files .
Here's an example
It is essentially the same as in the tutorial. All calls come from include files .
Here's an example
The Inform is called a shitload of times, but it's hard to see how it displays.... where the messages go too(