Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1462
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
Here's the tweaked one, the original one is just plain gloomy.
P.S. Dot.mq4 - full original
Sorry for the long time, I was busy with work.
Here you go:
I understand this idea, it's useful, but it doesn't work for me in this case. I need to time the Tester: stop button pressed in the indicator
it is not certain that after pressing the button the prints will be written to the log
so try to write every new bar in the file all the functions of working with the environment - banning trading, testing, terminating the program.....https://docs.mql4.com/ru/check
if no help, then you can not, then look for something by means of WinAPI
HH: make a button and click it - press it, do all the actions, and then let the visualizer finishes the run idly, imho faster than search
it is not certain that prints are written to the log after the button is pressed
so try to write into the file each new bar all functions to work with the environment - banning trading, testing, terminating the program.....
If it does not help, then you can not, then look for something by means of WinAPI
HH: Make a button and press it - press it, do all the actions, and then let the visualizer finishes the run idly, imho quicker than looking for
Print stop button in Tester magazine : stop button pressed
But I haven't found it in the docs. For the Expert Advisor stop is called by OnDynit, for the indicator only the print in the journal. The indicator has stopped testing and that's it. There is actually a pause. But it is not printed in the journal.
Note
In general, it is not hard to delete the indicator or close the window manually. But the question is interesting. It's like access to real time through a request to a third-party symbol) It's supposed to somehow track the end of testing with the stop button).
Print of stop button in Tester magazine : stop button pressed
But I haven't found it in the docs. For the Expert Advisor stop is called by OnDeinit, for the indicator only print in the journal. The indicator stops testing and that's it. There is actually a pause. But it is not printed in the journal.
Note
In general, it is not hard to delete the indicator or close the window manually. But the question is interesting. It's like access to real time through a request to a third-party symbol) It seems it should somehow track the end of the test button stop).
don't know
search the forum IsTesting() - found similar discussions
ZZY: I think the log prints out the terminal, but I need the MQL code to do it
ZZZY: write EA, imho, the visualization of the indicator is tedious ))))
I'm sorry it took so long - I've been busy with work.
Here you go:
The changes are drastic, but that's not the point.
I'll deal with iMAOnArray, that was the goal
Thank you!
The changes are dramatic, but that's not the point.
I will deal with iMAOnArray, that was the goal
Thank you!
It's just that everything here is exactly the same as there. But in MQL5 it is as easy as that.
Hello. Why when deleting a constant not described inObjectCreate();
For instance, z_order or hidden? Will it cause an error after compilation? They don't take part in drawing the line.
Hello. Why when deleting a constant not described inObjectCreate();
For instance, z_order or hidden? Will it cause an error after compilation? They don't take part in drawing the line.
When deleting one of the input function's parameters, be careful with commas and closing parentheses.
When deleting one of the input parameters of a function, be careful of the commas and closing brackets.
Alexey, thank you. I paid attention to punctuation first of all. The script was reduced to a minimum, I left the necessary for ObjectCreate()(anchor point, symv, AND TD). And it turns out that only in the header those constants in the code anywhere do not occur) on this and the question arose, why delete at least one error occurs. And the question arises, there may be mandatory conditions with a list of constants in the header. function header)))?
If you could write down what error appears, it would be easier to understand, otherwise it comes out as telepathy - guess what error I have)