Buy orders use the Ask price as the reference, and sell orders use the Bid price as the reference. Assuming the stop level is N points: a Buy Limit must be at least N points below the current Ask, and a Buy Stop must be at least N points above the current Ask; a Sell Limit must be at least N points above the current Bid, and a Sell Stop must be at least N points below the current Bid; for long positions, the stop loss/take profit must be at least N points below/above the current Bid; for short positions, the stop loss/take profit must be at least N points above/below the current Ask.