Tradingview to Anywhere tool has made it possible to automate TradinView alerts and TradingView strategy to ByBit USDT Perpetual . The bot uses human-like commands that can be combined with TradingView’s dynamic alert messages. Once you have set up your TradingView to ByBit Webhook, proceed to set up alerts on TradingView as explained below:
Automating TradingView Strategy to ByBit USDT Perpertual
Use either {{strategy.order.action}} - which returns the string “buy” or “sell” for the executed order or {{strategy.market_position}} - which returns the current position of the strategy in string form: “long”, “flat”, or “short”. Specify the exchange, quantity, and account using the TradingView to Anywhere commands. For Example:
{{strategy.order.action}} BTCUSDT q=0.002 tp=10% sl=5% - this will only work if the position mode settings is on one way position mode.
{{strategy.order.action}} BTCUSDT q=0.002 tp=10% sl=5% hedge - this will only work if the position mode settings is in hedge mode.
You can add more parameters such as p= to convert positions into pending orders.
Automating TradingView Indicator to ByBit USDT Perpetual
To automate an indicator, select the indicator as to the condition, choose long or short condition, select once per bar to avoid repainting issues, and input the applicable buy/sell command in the message field. For example:
Buy BTCUSDT q=0.002 tp=10% sl=5% - this will only work if the position mode settings are one-way position mode.
Buy BTCUSDT q=0.002 tp=10% sl=5% hedge - this will only work if the position mode settings are in hedge mode.
In the above example for a long, this will buy 0.002 BTC and place the take profit and stop loss accordingly on your ByBit USDT Perpetual account. A short condition will follow the same process but this time it would be Sell.
That’s all, it is that simple!
Automating TradingView Strategy to ByBit USDT Perpertual
Use either {{strategy.order.action}} - which returns the string “buy” or “sell” for the executed order or {{strategy.market_position}} - which returns the current position of the strategy in string form: “long”, “flat”, or “short”. Specify the exchange, quantity, and account using the TradingView to Anywhere commands. For Example:
{{strategy.order.action}} BTCUSDT q=0.002 tp=10% sl=5% - this will only work if the position mode settings is on one way position mode.
{{strategy.order.action}} BTCUSDT q=0.002 tp=10% sl=5% hedge - this will only work if the position mode settings is in hedge mode.
You can add more parameters such as p= to convert positions into pending orders.
Automating TradingView Indicator to ByBit USDT Perpetual
To automate an indicator, select the indicator as to the condition, choose long or short condition, select once per bar to avoid repainting issues, and input the applicable buy/sell command in the message field. For example:
Buy BTCUSDT q=0.002 tp=10% sl=5% - this will only work if the position mode settings are one-way position mode.
Buy BTCUSDT q=0.002 tp=10% sl=5% hedge - this will only work if the position mode settings are in hedge mode.
In the above example for a long, this will buy 0.002 BTC and place the take profit and stop loss accordingly on your ByBit USDT Perpetual account. A short condition will follow the same process but this time it would be Sell.
That’s all, it is that simple!