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.
| Bybit | |
| live |
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 ProfitRL– 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!