Manually: Right click on the open order and select the Trailing Order menu. From there select how many pips you want it to trail.
By script or program: There is no automated function. You have to program your trailing-stop function. This involves keeping track of the Max-Pips-Profit per trade and adjust the Stop-Loss accordingly.
For both techniques: You have to have a computer that is ON all the time. As soon as your computer goes OFF or goes to SLEEP the trailing stop doesn't work anymore. Normal Take-Profits and Stop-Loss are fixed and are dealt with at the brokers side. A trailing stop has to be dealt with locally on YOUR computer.