
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
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.