I'd like a trailing stop EA that trails by a percentage value of the amount you are in profit.

So for emample 3 variables.

Trail from = 10

Trail max = 50

Trail percent = 50

So in this example ts would be placed when you are 10pips (trail from) in profit, and it would place it 5pips (50% trailpercent) from the current price. Then as price moves in your favour it trail by 50%, so at 12 pips profit it trails by 6 14 by 7 and so on.....

When it reaches 100 pips profit it then trails by 50 pips (Trail max)

Surely someone else has done this before, I just cant find it anywhere.

So for emample 3 variables.

Trail from = 10

Trail max = 50

Trail percent = 50

So in this example ts would be placed when you are 10pips (trail from) in profit, and it would place it 5pips (50% trailpercent) from the current price. Then as price moves in your favour it trail by 50%, so at 12 pips profit it trails by 6 14 by 7 and so on.....

When it reaches 100 pips profit it then trails by 50 pips (Trail max)

Surely someone else has done this before, I just cant find it anywhere.