Some enhancements.
Steps to link this to bybit via webhook to automate execution of orders.
Prerequisites:
1. Bybit Unified Trading Account funds
2. Paid Tradingview plan (for webhook enabling)
3. Pair is both available in Derivatives/Futures on bybit and Tradingview
Bybit Setup:
1. Go to Derivatives > USDT Perpetual > Select your pair (eg. SOL/USDT) > Set your preferred Leverage
2. Tools > Strategy Trading > Webhook Signal Trading > Create Now
3. Click Confirm > Verify your pair > Create a name (anything would do) > Next > Create
4. Bybit will show you your message template and webhook url, keep this for later use.
Stay on this page for now, since we will proceed setup in Tradingview and copy over the values given to us by ByBit
Tradingview Setup:
1. Add this indicator strategy > adjust it's values to your preference
2. Set the strategy settings > Properties > Ordersize > Input the desired number of contracts you want the bot to execute per trade (taking into account the leverage)
Connecting the triggers with bybit:
1. Create an alert on tradingview > Set Condition to be this strategy > set a name and expiration
2. Copy and paste the message from ByBit to this alert (replace everything and dont change anything)
3. Select Notifications Tab > Enable Webhook URL > Paste Webhook URL given by ByBit
4. click Create
5. Go to Bybit > Click Run Webhook
Monitor and adjust! Some failing order may occur, you can monitor this under tools tab in Bybit.