Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1719

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
Good afternoon, who can help implement a trade opening filter based on indicators?
Help me refine the logic. I need a pause in hours between the closed orders and the opening of a new one. I have worked out a few things. But it does not work.
Help me refine the logic. I need a pause in hours between the closed orders and the opening of a new one. I have worked out a few things. But it does not work.
If the magician is not necessary - delete yellow.
Before opening an order, you store the current max_ticket in the prev_ticket
Good time Makar, this method of the penultimate order ticket definition has a serious disadvantage. This method works when the maximal order in the grid will be opened and if that doesn't happen, the penultimate order is the last one in the grid (see the picture). I am trying to write a function but it does not work, the last ticket is detected. The highlighted condition does not want to work.
Good time Makar, this method for the penultimate order ticket has a serious disadvantage. This method works when the maximal order is opened in the grid. If it is not, the penultimate order is equal to the last one, see the picture. I am trying to write a function but it does not work, the last ticket is detected. The highlighted condition does not want to work.
I gave you a working code!
This code is what I wrote above and there is even a picture of it
This code is what I wrote above and there is even a picture of it