How to set double orders

 

Hi All,

I am trying to add this to the EA below , Can anyone please help me do this?

example:

AT the Gloden Cross I want to open an instant order let's say open buy order with a stop loss of 40 pips.

At the same time I want to open a sellstop order at 20pips below the 1st order with a take profit of the 2nd order at 40pips .

1st order open buy =1.2550, stoploss= 1.2510, takeprofit = 1.2650

2nd order sellstop = 1.2530, stoploss = 1.2560, takeprofit = 1..2480

thankyou,

Files:
 

I tried manually with the setup and seems to work very well. The idea is to capture the signals which become wrong and either profit from wronf signals or incur minimal loss. On the other hand the good signals will fetch handsome profits. Manual trades will miss some very good moves.

some one can help out . i have a good setup which i will post later.

thx

 

set your ea to allow more than one order per pair at a time

then

ticket1=ordersend(...OP_BUY.................);

ticket2=ordersend(...OP_SELLSTOP.........);

that's it....i use to do this it works

 
phoenix:
set your ea to allow more than one order per pair at a time

then

ticket1=ordersend(...OP_BUY.................);

ticket2=ordersend(...OP_SELLSTOP.........);

that's it....i use to do this it works

thank you Phoenix. will try .

 

Hi, I have made changes as per phoenix but it does not open 2 orders together, please check it out and diagnose the problem.

Files:
Reason: