Download MetaTrader 5

Opening and Closing Pending/Market Orders.

To add comments, please log in or register
shrtsirkit
712
shrtsirkit  

Programmers,

I am currently running a simple EA that open and close orders as per the attache file sections 15 & 16.

Current operation:

The Ea will open or close a pending, only one trade at a time so on opening a Pending Buy will Close a Pending Sell and  opening a Pending SELL will close a Pending BUY.

I would like the following to occur instead;

1.  Opening a Pending BUY order will Close a Pending sell order

2.  Opening a Pending SELL order will Close a Pending BUY order

3. If in a MARKET BUY order a Pending SELL order will NOT close the MARKET order but a SELL MARKET order will close the BUY Market order & visa versa.

4. The ability to close a MARKET order based on other parameters Trailing Stop, other Indicator inputs etc.

whroeder1
16071
whroeder1  
shrtsirkit: I would like the following to occur instead; ...
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
To add comments, please log in or register