Download MetaTrader 5

Get all my open trades and modify the t/p and s/l?

To add comments, please log in or register
Jan 2016.05.17 21:41 

Hey Guys,

I'm searching for a solution, to get all my open trades. I know, there is a method called OrdersTotal(). But how do I use this method and is the method returning the total numbers of open trades, for example 5 or 7 or 6, or is the methode returning the ticket numbers of the open trades?

Once I have the open trades and the ticket numbers I want to modify the s/l and t/p prices. How can I do that? - Should I use the OrderModify() methode for that scheme?

How can I implement these purposes?


Thanks and Greetings! 

Fernando Carreiro
Fernando Carreiro 2016.05.17 21:53  

Please do a search here on the forum. There has been MANY related threads in the past on this subject. It is no use answering the same questions over and over again when the answers are already available. There are also many examples of order management EA's and Scripts in the CodeBase section.

whroeder1 2016.05.17 23:37  
If you had used this you would have found this.
To add comments, please log in or register