
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
I'm confused how you successfully use "OrderSelect()" before you can successfully use OrderTicket? I thought OrderTicket was an integral parameter to OrderSelect :s?
The OrderTicket page is very clear, no ? Look at OrderSelect() use here Loops and Closing or Deleting Orders
No its not.... It's telling me I can use OrderSelect by assuming I know what the order ticket number already is, by the example it gives... I do not know what the order ticket is... therefore, if I cannot use "OrderTicket()" within OrderSelect because I am being told that I need to successfully select the order FIRST; yet I do not know how to select the relevant Order via OrderSelect without the order ticket number...
Use a loop, find the order you want then exit the loop, then you have the order you want selected.
Like this? (quickly written)
Nope, you can't use OrderTicket() until you have selected your order . . .
. . . if you don't know the ticket number you select by position NOT by ticket.
No its not.... It's telling me I can use OrderSelect by assuming I know what the order ticket number already is, by the example it gives... I do not know what the order ticket is... therefore, if I cannot use "OrderTicket()" within OrderSelect because I am being told that I need to successfully select the order FIRST; yet I do not know how to select the relevant Order via OrderSelect without the order ticket number...
Look at the second link I posted.
Ah ok gotchya. I can see where I was going wrong by just comparing with my other for loops, and how I have correctly written them in the past... I'm hoping that fingers crossed that was the issue in relation to why I was getting duplicate orders.... Also, some of the pairs will not close the position in profit when it should do. Is this likely to do with the way I am trying to use OrderSelect within the Loop?
You are still not selecting the order first
Ah, yea sorry, I forgot that part lol! I did mean to include that haha! Thanks :P