Karl, you know, MetaTrader has such a thing that when you open an order, you can set up a stop-loss and take-profit... that option is available when opening... but you have to it manually on the basis of your expectations of the market situation...
there's however such a thing that you can "programme the trading platform yourself" using it's specific programming languahe (but then you might need some help of a professional programmer)