[feature] ByBit Close Command Filter Based on Running Profit/Loss

TradingView to Anywhere (TTA) has added new close command filters for Bybit, allowing traders to define exit conditions based on Running Profit (RP) or Running Loss (RL), (unrealised) PnL in Bybit.

:globe_with_meridians: Platform Bybit
:arrow_heading_up: Version live :green_circle:

You can now use the following parameters together with the close command to close only positions that meet the specified profit or loss value.

  • RP – Running Profit
  • RL – Running Loss

These parameters close positions only when a specified running profit or running loss level is reached.

To avoid confusion, the parameters follow Bybit’s PnL definitions:

  • Running Profit (RP) - This is the equivalence of Bybit’s Unrealised profit. It does not include the trading fees.

  • Running Loss (RL) - This is the equivalence of Bybit’s Unrealised loss. It does not include the trading fees.

In short:

RP / RL = Unrealised PnL (Bybit)


Examples

Close a BTCUSDT position if Running Profit is 100USDT and above:

CLOSE BTCUSDT Q=100% RP=100

Close a SOLUSDT position if Running Loss RL is more than 50USDT:

CLOSE SOLUSDT RL=50


Visit TradingView To Anywhere to start Automating



Enjoy!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.