Questions from Beginners MQL5 MT5 MetaTrader 5 - page 864
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
You must pass a PRICE to the function, around which the pending orders will be searched for.
In addition to this price, you have to pass two variables:
I give up, do you have a ready-made Expert Advisor that prints the prices of those pending orders I showed with arrows in the screenshot?
I don't understand why this function works without passing any price.
???
I give up, don't you have a ready-made Expert Advisor that outputs a print of the prices of those orders that I showed with arrows in the screenshot?
I gave you a ready-made function. You need to pass in it:
What don't you understand?
I give up, don't you have a ready-made Expert Advisor that would output a print of the prices of those pending orders that I showed with arrows in the screenshot?
I don't understand why this function works without sending any prices.
???
You show unworkable code - at least it does not compile - because it has a mismatch of opening and closing brackets. And secondly = broken logic.
You are showing unworkable code - at least it doesn't compile - because it has a mismatch of opening and closing brackets. And secondly = broken logic.
I rewrote your code.
But it produces pending orders far from the price
I rewrote your code.
But it gives out pendants farther away from the price
The prints should come after theOrdersTotal loop.
And what is price1? How do you get it?And in this version, it prints out all the available
The prints must come after theOrdersTotal loop.
And what is price1? How do you get it?And in the header of the EA I have written
If everything is correct, here is the final variant
Everything seems to work. Tell me if there are any errors. Thank you very much.
Please help me to solve this problem.
Suppose I have a current timeframe M1, I need to know the time of the last bar N of the given bar of any upper TF, the hour may not be 60 minutes, but 45 or any other time, and besides there are weekends, I need to know the date of the last bar of the current TF from any TF.
How to implement it?
And in the advisor's header it says
And if everything is correct, here is the final variant
Everything seems to work. Tell me if there are any mistakes. Thank you very much.
Before the line
price1=m_symbol.Bid();
you need to update the quotes: