Once again, if the flag of the select function is set to mode_trades orders are allocated to current and not from the history, so it makes no sense to request the closing time, it will always be equal to zero
Orders are simply both opened, one pending order triggers, the second one is deleted, the triggered one is closed at take or stop, and that's where it stops, because no loop is started and the value of 1 for one of the variables is saved...
Techno: Once again, if the flag of the select function is set to mode_trades orders are allocated to current and not from the history, so it makes no sense to request the closing time, it will always be equal to zero
i fixed it... i know it myself but i just started trying everything
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
above
It's not higher, it's inside, at the beginning.
No and it doesn't work that way... because if there are no poses, the selector won't change the value of the variable until the next one appears
that's how I wanted to do it:
Once again, if the flag of the select function is set to mode_trades orders are allocated to current and not from the history, so it makes no sense to request the closing time, it will always be equal to zero
i fixed it... i know it myself but i just started trying everything
By the way, is this how it's supposed to be?
Would a base like this work? It always works 100% for me:
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES)==true)
{
if(OrderSymbol()==Symbol())
{
...and so on...
}
}