Download MetaTrader 5
To add comments, please log in or register
Do you want to deposit to your account? Do this in any convenient way!
Jan
170
Jan 2016.08.26 11:55 

Hello everybody,

I know there are already a lot of topics like this but I don't understand them.
How can I get all OpenTrade ID Numbers, to make particial close if the price if above or below a specified border?

Greetings and Thank you! 

Fernando Carreiro
1468
Fernando Carreiro 2016.08.26 12:16  

I can sympathise with your plight, but maybe the fact that you don't understand them, is not that they are not explained well enough, but rather that you still don't have the necessary knowledge about the MQL environment and coding in general.

If that be the case, I suggest that you consider doing more research into general coding, and going over the MQL Documenation and analysing the many code examples available in the Code Base.

For example, the fact that you are calling it the "OpenTrade ID" shows that you have not yet familiarised yourself with MetaTrader terminology, otherwise, you would have called it the Order Ticket which in turn would have lead you to the function named just that, namely OrderTicket(). That was just one example, that serves to illustrate my point.

Please note that this is not a "brush off", but a sincere opinion about what can help you understand it.

whroeder1
13617
whroeder1 2016.08.26 13:55  
FrazeColder: How can I get all OpenTrade ID Numbers, to make particial close if the price if above or below a specified border?
In the presence of multiple orders (one EA multiple charts, multiple EA's, manual trading) you must count down when closing/deleting/modifying in a position loop. Get in the habit of always counting down. Loops and Closing or Deleting Orders - MQL4 forum
/
To add comments, please log in or register