Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 713
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
1. Can you find the earliest open position in the loop and return it to the ticket?
I can't imagine how it will be in the code) but by some miracle I was able to add removal of pending orders to the EA, I'm not good at codes, only a little.
Just take it and see how it closes in a loop
1:
2:
Then you will understand in what order the orders are closed. I cannot say for sure because I have not checked it. I don't need it. But this is another issue, it has been discussed here more than once and I don't want to repeat it all over again.Just take it and see how it closes in a loop
1:
2:
then you'll know in which order the orders close. I can't say, because I haven't checked it. I do not need it. But this is another topic, it has been discussed here many times and I don't want to repeat it all.We've already sorted it out in private...
Well, I don't read your private messages... and I don't know what's going on.
Yeah, he doesn't read... Where have my slippers gone?!?!! ;)
Remember what Ioann Vassilievich listed that he took, and Shpak didn't take... So I'm your slippers.
Bye. I'm going to bed.
Remember what Ioann Vassilievich listed that he took, and Shpak didn't take... So I'm your slippers.
Goodbye. I'm going to bed.
Just take it and see how it closes in a loop
1:
2:
Then you'll know in what order the orders close. Can't say because I haven't checked. I do not need it. But this is another issue, it has been discussed here many times and I have no desire to repeat it all.Thanks, already solved the problem.
I thought they'd send me to the john) Thanks for the help.
Hello all, I already asked a similar question on page 711, unfortunately no one has responded, maybe now someone...
I am facing a problem with closing counter orders on a five digit order. The point is that I need to close, say, 20 orders in buy and 33 in sell when the total profit is reached. And I want to close 20 buy orders and 20 sell orders using function OrderCloseBy(), and close the remaining 13 sell orders using function OrderClose().
If we have a fixed spread at 4 digits, we will not have any problems with closing the spread and we also save the spread when using the function OrderCloseBy(). If we have a 5-digit spread, the spread is floating and that is why, I think, orders are not closed when total profit is reached and the log says OrderCloseBy(). At the same time, if we run it in the tester, all is closed normally.
Orders in one direction, when the total profit is reached, are closed without any problems.
Who has encountered such a problem, and what are the options for solving it?
I will give you the function to close the orders.
Also, does the OrderCloseBy() function even work on a five-digit order.