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.
GumRai:
candle close time - TimeCurrent() is the number of seconds remaining until the M15 candle closes
(Today I started again try to resolve this issue.)
Big thanks for the great advices.
I already know (after you mentioned) I'd get next M15 Candle Close Time, I tried like below code in M1 Chart.
It's recounting each new minutes.
Please give me good advice, I several times read your advises.
gives you the time that the candle opened, you need the time that the candle will close
so add PERIOD_M15*60 to get candle close time
candle close time - TimeCurrent() is the number of seconds remaining until the M15 candle closes
Great question which one you asked (really thanks for your question): What part was unclear?
So right now Market Closed, and is this code right?
Please let me know about that, after your answer I will strop researching about that.
Also really thanks for the attachment file.
(I tested it with 'Strategy Tester' so it looks like running good.)
Huge thanks WHRoeder, GumRai.
What can I say huge guys WHRoeder, GumRai - BIG THANKS!
It works perfectly.