Hello, I would like to know if someone can help me with ideas about my next problem:
I am opening a pending order at 1:30:00, after 30 min at 2:00:00 it will turn to sell/buy. I have the next code to close the position after 10 hours, it will use OrderOpenPrice from sell/buy position not from my pending and i would like to use it from my pending.
I was thinking to have case#1 for eur/usd case#2aud/usd and so on... and for each case to take OrderOpenPrice from pending to stock it in a constant and than call it when it will turn to sell/buy and continue with the code below. But it is a long and hard way to do it. If anyone else has others idea to do it, i would be glad to hear from you.
Ok so i will use the ticket select for pending and after i will have to call the time when it was open. How am i able to use that opentime when my pending turn to sell/buy?
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.
Hello, I would like to know if someone can help me with ideas about my next problem:
I am opening a pending order at 1:30:00, after 30 min at 2:00:00 it will turn to sell/buy. I have the next code to close the position after 10 hours, it will use OrderOpenPrice from sell/buy position not from my pending and i would like to use it from my pending.
I was thinking to have case#1 for eur/usd case#2aud/usd and so on... and for each case to take OrderOpenPrice from pending to stock it in a constant and than call it when it will turn to sell/buy and continue with the code below. But it is a long and hard way to do it. If anyone else has others idea to do it, i would be glad to hear from you.
Thank you.