A trailing stop is a stop order that is set based on a predefined number of pips away from the current market price. A trailing stop will automatically trail your position as the market moves in your favor.
If the market moves against you by the predefined number of pips, then a market order is triggered and the stop order is executed at the next available rate depending on liquidity.