Question on setting up trailing stop

 

On my EA that I am working on right now, I am seeing that even with optimization there are still trades where I am missing a few pips here and a few pips there. I'd like to be able to setup a trailing stop on a position rather than setting a stationary number on. Once it hits the first profit target, a new stationary target would be set (say 5 pips-10pips down), and then a trailing stop of say 15 pips would be instigated.

Are there any examples I can look at to check out the coding on? Or if someone could provide me with an example, that would be cool too? Thanks!

 

C

Not exactly what you're after but close

'EXPIRT ADVISER'

'OrderModify error 1'

etc

-BB-

Reason: