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
Hi,
How to get ticket number of specific position? The plan is to make multi currency ea, so there could be more than one position.
I wrote something like this:
At the moment everything seems to work. You are right about OrderClose. I implemented it. As plan is to make multi currency ea, the problem is ticket number of specific position.
i hope you know what you doing
you have to loop all the orders and the order you looking
as I understand looping=counting
added different conditions, could someone check the loop. Many thanks.
excuse me sir your code as 64 errors and not compiling
I'll ask again do you know what you doing or just cutting pieces of code from other places ?
Hi gjol
Just learning how to code.
Have simple idea of creating multi currency ea which opens position when the currency is rising or falling against all other major pairs.
Made the loop, everything works.
The next problem is limiting open positions for one currency pair. With ++ and -- it doesn't work, max number positions allowed are opened if one pair. Is another way to do that?
Best regards,
Roberts
The next problem is limiting open positions for one currency pair. With ++ and -- it doesn't work, max number positions allowed are opened if one pair. Is another way to do that?
Best regards,
Roberts
Loop through open orders and count the orders for each pair.