Need to automate Buy and Sell order

 

Hi Everyone, 

I need to automate Buy or Sell with some condition.I used to get calls like below Buy above or Sell below.At the end of the day,Only one will get executed daily.

I need to create a mql4 code to place Buy n Sell order.If any one of the Buy or Sell executed, the other order needs to be cancelled automatically.

If Copper Buy above 418 order is executed , the Sell below 416 order need to be cancelled.Please suggest.

 

COPPER 28FEB19

buy Above 418, 

SL: 416.50, 

Target : 419.50


COPPER 28FEB19 

sell Below 416, 

SL: 418.50, 

Target : 415.50

 
vickyind:

Hi Everyone, 

I need to automate Buy or Sell with some condition.I used to get calls like below Buy above or Sell below.At the end of the day,Only one will get executed daily.

I need to create a mql4 code to place Buy n Sell order.If any one of the Buy or Sell executed, the other order needs to be cancelled automatically.

If Copper Buy above 418 order is executed , the Sell below 416 order need to be cancelled.Please suggest.

Post it as a job in Freelance.

Reason: