Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1489
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
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 :(