Hi Ddlv,

Thanks for that suggestion, I will give it a try. I guess I was being lazy and hoping someone could see an error in my code!

Its a strange one - it seems to work as I want it to in test mode, but when I trade it on a demo, these exits aren't honoured. Really strange behavior, but I'm sure I will get to the bottom of it.

Cheers