Two orders and trailing stop

 

To save having to re-invent the wheel, does anyone have an EA that is coded to:

1) Open two orders simultaneously and place a stop (15 pips) for both positions

2) Close one of the positions at +20 pips

3) Apply trailing stop of 20 pips to the second position as soon as 2) is executed.

That would be most helpful! thanks.

 

here you go

Files:
 

thanks for code

Thanks for code - Do both lots have to be on the same ticket (e.g. order number) for this to work or two seperate numbers? Thanks.