Leverage affects the calculations. The higher the leverage, the less price movement is needed to trigger the same TP/SL (Take-Profit order/Stop-Loss order) settings. Or in other words, when leverage increases, profit/loss increases for the same price movements.
For TP/SL, we rely on the same logic used to calculate the profit displayed in the UI for each position. The profit percentage in the table, as well as the logic for TP/SL take into account the leverage.
Example: Lets say our allocation is 1 XBT, leverage 5x, and we went long at $10,000 price, then price went up to $11,000. For inverse contracts like BitMex, the profit made here is: (open value - close value) = (50,000 contracts / 10,000 price - 50,000 contracts / 11,000 price) = 0.4545 BTC. The profit percentage (compared to our margin used in the position) is = ~45%. If leverage was 1x, then the profit made is (10,000 contracts / 10,000 price - 10,000 contracts / 11,000 price) = 0.09 BTC, or ~9%.
When your profit goes to -100%: you're liquidated!