Trailign stop that close all orders at same price

 

for example:

i set profit (using price and not pips) at 1.2000 so the trailing stop starts. don`t matter if are orders in win or loss. the ea only stop when price back "X" pips. id like to use that with a window for sell and other for buy.

there are any ea like that? could anynone code that please?

thanks a lot

 

what i really want is an trailing stop ea that calculates the medium price

what i really want is an trailing stop ea that calculates the medium price of a trade. for example:

there is a buy of 60 lots at 1,8466, another of 120 lots at 1,8386 and another of 180 lots at 1,8306. So the medium price is 1,8359. If i set profit to 30 pips the ea start at 1,8389...and stop only if price back "X" pips against medium price.

but it calculat only buy or only sell (i think i can set it in any ea...right?)

Reason: