setting trailing stops as a percentage?

 

Is there a way to set a trailing stop to trail by a percentage of the profit? For example, I don't want to set a TakeProfit but I want to activate a Trailing Stop to kick in when my profit hits 30 pips and then trail by 20% of the profit (instead of at market value)...so if the profit goes to 50 pips the trailing stop would be at 40, etc. Of course this would only go in your favorable direction and not follow down trends.

 

It's very possible. I'm thinking of implement this in all my future EAs. In fact, it should be in ZeroCode for mt4.

Ok, modifying an EA to do this can be difficult or easy depending on how the EA is coded.

Reason: