Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 579
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
Still haven't figured out how to count the seconds until the bar closes on the current period. I need your help.
I gave you the function.
I gave you the function.
Yes, but the code above, in the comment, counts down smoothly every second and the function is jerky. On M1, out of 60 bars, 3 or 4 times there is no alert.
Yes, but the above code, in the comment, counts down smoothly every second, while the function is jerky. On M1, out of 60 bars 3 or 4 times there is no alert.
That's because the function uses TimeCurrent() - arrival time of the last quote. You need to replace this time with a local TimeLocal() with a calculated offset (you have already been told about it).
You need to replace this time with local TimeLocal() with calculated offset (you were already told about this)
I don't know how to do it correctly, so I found a code that counts down time to close H1 without ticks, and I'm trying to use it, I replacedTimeCurrent() in your function, but it doesn't want to show me seconds to close.
Please tell me how to implement the idea in the code:
If (OrdersTotal ==0) {Alert ;}
Guys!
There are a lot of objects on the graph.
But when you access it.
It says there's only three.
Why isn't it counting arrows?
Please tell me how to implement the idea in the code:
Do it like this. The code is almost correct. Only one word is missing there:
Guys!
There are a lot of objects on the graph.
But when you access it.
It says there's only three.
Why isn't it counting arrows?