Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1844

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
Your original code is correct.
Maybe there was something else wrong with it. I recreated his example in the script and it works. We add time, the line shifts to the right. That's basically how it should be.
Here is the part of the code responsible for the vertical line on the graph. I have already considered the shift
There is an error in the moment of call to create the line
Here
you add two hours and one bar, so the reference comes one bar late.
Probably not the right order in
Maybe he had a problem with something else. I recreated his example in the script and it works. We add time and the line shifts to the right. That's basically how it should be.
Please help to insert the pause function into the EA.
In the tester, the pause (break point) is DebugBreak. During trading, you can simply exit the function (retutn). There is no other way to make it pause. Unless you use WinAPI. But in this case, we will have to create a clicker for the pause button.
Why this is needed: summary charts are very helpful in understanding this or that process, sector, industry, etc.
In the tester, the pause (breakpoint) is DebugBreak. While trading, you can simply exit the function (retutn). There is no other way to pause. Unless you use WinAPI. But in this case, we will have to create a clicker for the pause button.
No, Misha, you can pause for trading.
So show me how, other than what I named, since you are an expert on the subject... Ivan is waiting for the right example.
Please help insert the pause function into the EA.
So show me how, other than what I named, since you are an expert on the subject... Ivan is waiting for the right example.
Well, this is the pause I was talking about (if we are talking about working with real data). Only trade not in if but after return (exit, if paused). You can also manually turn off the robot in the menu (no problem here at all). And how do you pause in the tester (when you need to pause the tester programmatically)?