I know this is an old post, but Im trying to modify this. It all works fine, but I would like to add a section that I can run a trailing stop as soon as the trade is in profit. Would this be possible? Any help appreciated