This code always shows the same message, no matter what candle was closed. I understand that I need to re-calculate the candlestick through a loop ? Please advise, people !
Why would you mock an inexperienced programmer like that?
What if a missed story is loaded and the difference is greater than 1? We don't really care, let's skip one bar... let's think about it, one more, one less. And without explanations why should we give the code? See what you get in the end?
Why would you mock an inexperienced programmer like that?
What if a missed story is loaded and the difference is greater than 1? We don't really care, let's skip one bar... let's think about it, one more, one less. And without explanations why should we give the code? See what you get in the end?
Why would you mock an inexperienced programmer like that?
What if a missed story is loaded and the difference is greater than 1? We don't really care, let's skip one bar... let's think about it, one more, one less. And without explanations why should we give the code? See what you get in the end?
It's obvious.)
If it's loaded, it'll be more than 1 and it's not a new bar, why keep track of it, there's no such thing in the problem.
Can you please tell me the direction of the last closed candle when opening a bar?
This code always shows the same message, no matter what candle was closed. I understand that I need to re-calculate the candlestick through a loop ? Please advise, people !
2021.06.0217:54:09.465 Test (Volatility 10 Index,M1) Up
2021.06.0217:55:09.439 Test (Volatility 10 Index,M1) Up
2021.06.0217:56:09.686 Test (Volatility 10 Index,M1) Up
2021.06.0217:57:09.471 Test (Volatility 10 Index,M1) Up
2021.06.0217:58:09.586 Test (Volatility 10 Index,M1) Up
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.
Am I reading this right?
Thank you, I have this now
Can you please tell me the direction of the last closed candle when opening a bar?
This code always shows the same message, no matter what candle was closed.
I understand that I need to re-calculate the candlestick through a loop ?
Please advise, people !
Why would you mock an inexperienced programmer like that?
What if a missed story is loaded and the difference is greater than 1? We don't really care, let's skip one bar... let's think about it, one more, one less. And without explanations why should we give the code? See what you get in the end?
Why would you mock an inexperienced programmer like that?
What if a missed story is loaded and the difference is greater than 1? We don't really care, let's skip one bar... let's think about it, one more, one less. And without explanations why should we give the code? See what you get in the end?
Why would you mock an inexperienced programmer like that?
What if a missed story is loaded and the difference is greater than 1? We don't really care, let's skip one bar... let's think about it, one more, one less. And without explanations why should we give the code? See what you get in the end?
It's obvious.)
If it's loaded, it'll be more than 1 and it's not a new bar, why keep track of it, there's no such thing in the problem.
Can you please tell me the direction of the last closed candle when opening a bar?
This code always shows the same message, no matter what candle was closed.
I understand that I need to re-calculate the candlestick through a loop ?
Please advise, people !
because there are no brackets.
Am I reading this right?
Yes, that's right.
The opening of the candle is delayed by 9-12 seconds.
Could you please tell me if this is the first tick?
It is just extremely important for me to make calculations, and perform any actions on the first tick of a new candle.
A new candle is formed on the first tick.
To check, you can ask for the ticks
and see that the last tick belongs to the current candle and the previous tick, respectively, to the previous candle.
For example, on my demo it opens without any delays.
But on a less liquid pair, there is a 1 second delay
it's obvious)
If it's loaded, it'll be more than 1, and it's not a New Bar, why keep track of it, there's no such thing in the task.
because there are no brackets
Didn't help :(