In some Exchanges or Brokers, in order to withdraw money, you must have closed orders or the stop loss must not exceed what you are going to withdraw (it would be liquidated instantly)