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
the easiest thing to do is to write in the comment box the time when the order should be closed.
You cannot rely on comments. There are brokerage companies that not only change this field (by adding their own data), but also simply erase the information previously entered.
What's the problem?
Your variant suited me very well. Thank you.
By time of existence you can choose both the first opened order and the most recent one. In this case, remember the ticket and the number of seconds of existence. For example
Your variant also works. Thank you.
I will leave the first variant to work))
Thank you all for your help, good luck))
Don't rely on comments. There are DCs who do not just change this field (by adding their own data), but simply erase the information previously entered.
To be clear, please provide a list of these DCs
Not to be unsubstantiated - please give me a list of these VCs
Your option was great for me. Thank you.
Your way works, too. Thank you.
I'll keep the first option for work))
Thank you all for your help, profits to you))
Only one question: If you know the ticket
Why do we need to search for it in the loop, if we can simply select the order of the ticket
And instead of checking the order type, in this case, it's better to check the close time OrderCloseTime(), just in case, in case it has already closed at stop/stop.
Just one question: If you know the ticket
why search for it in a cycle, if you can just select the order on the ticket
and instead of checking the order type, in this case,it would be better to check the closing time OrderCloseTime(), just in case it has already been closed by a stop/stop.
I thought Natalya wanted it that way, because she wanted to search for the ticket, but apparently not all cards have been solved
)
Your option was great for me. Thank you.
Your way works, too. Thank you.
I'll keep the first option for work))
Thank you all for your help, profits to you))
Fair comments above. Why would I go through all orders once again if the ticket is already known? Besides, in the function:
you risk getting the volume of the order you are going to close. After all, OrderLots() will refer to the selected order, and the ticket - to an absolutely different one. It would be better to do it that way:
Fair points above. Why go through all the orders again if the ticket is already known? Besides, in the function:
you risk getting the volume of the order you are going to close. After all, OrderLots() will refer to the selected order, and the ticket - to an absolutely different one. You'd better do it that way:
This does not close at all.
It doesn't close at all.
I beg your pardon. The line:
should be rewritten as follows: