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 ))))
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.
bool VLineCreate(constlong chart_ID=0, // ID графика conststring name="VLine", // имя линии constint sub_window=0, // номер подокна datetime time=0, // время линии constcolor clr=clrRed, // цвет линии constENUM_LINE_STYLE style=STYLE_SOLID, // стиль линии constint width=1, // толщина линии constbool back=false, // на заднем плане constbool selection=true, // выделить для перемещений constbool ray=true, // продолжение линии вниз constbool hidden=true, // скрыт в списке объектов constlong z_order=0) // приоритет на нажатие мышью
{
//--- если время линии не задано, то проводим ее через последний бар if(!time)
time=TimeCurrent();
//--- сбросим значение ошибки ResetLastError();
//--- создадим вертикальную линию if(!ObjectCreate(chart_ID,name,OBJ_VLINE,sub_window,time,0))
{
Print(__FUNCTION__,
": не удалось создать вертикальную линию! Код ошибки = ",GetLastError());
return(false);
}
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 has reduced to a minimum, left 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)))?
Dzmitry Zaitsau: 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)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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)