Create No Code Auto Trading Bot with Tradingview and OKXHello Everyone,
In this tutorial, we learn about how to create simple auto trading bot using tradingview alerts and OKX exchange built in integration mechanism.
Few exchanges have come up with this kind of direct integration from tradingview alerts to exchanges and as part of this tutorial, we are exploring the interface provided by OKX.
In this session, we have discussed
🎲 Preparation Steps
Preparing tradingview account
Webhooks are only available for essential plans and plus.
Enable 2FA in your tradingview account.
Preparing your OKX account
Create OKX account, and we prefer you do the initial tests under demo account before moving to active trading account.
Bots created in demo account will not appear in the active trading account. Hence, when switching to active account, you need to create all the setup again.
🎲 OKX Tradingview Interface Features
What is supported
Auto trading based on strategy signal
Custom signals - Enter Long, Exit Long, Enter Short, Exit Short
What is not supported:
Stop/Limit orders
Bracket orders/ Complex execution templates
🎲 Weighing Pros and Cons of Using Direct Interface rather than Third party integration tools
Pros
Latency is minimal as per our observation
Easy Integration with Tradingview and Pinescript Strategy Framework and no coding required
You save cost on third parties and also avoid one hop.
More secure as your data is shared between less number of parties.
Cons
No native support for Stop/Limit orders
Integration
How to connect your OKX account to TradingViewHello TradingView Family, this is Richard, also known as theSignalyst.
In this video, I will go over how to:
1- Connect your OKX account to TradingView.
2- Spot Trade example
3- Futures Trade example
4- Calculate your risk per trade
Hope you find it useful 🙏
All Strategies Are Good; If Managed Properly!
~Richard Nasr
TradingView & Trend-TemplateIn this video I explain how to integrate Minervini' Trend-Template into your daily stock screening routine.
This concept can be applied to all other securities including Commodities, FOREX and Cryptos.
The links to other relevant tutorials in this context (Stage-Analysis and Trend-Template criteria) are shown below.
How to capture chart snapshot in tradingview-telegram alert botHello traders,
In the last video we learnt How to create simple web-hook to send alerts to telegram . In this tutorial, we will try to build a bit more on it and to also include chart snapshots along with plain alert messages.
Webhook code is updated in the replit repository here: replit.com
Once, setup, run the repl and capture base URL
⬜ Webhook API
Webhook post request URL format below:
https:///webhook?jsonRequest=&tblfmt;=&chart;=&loginRequired;=
jsonRequest - true/false. Set it to true only if you are sending alerts in the form of json. If set to true and the alert message is not in json format, it will throw error
tblfmt - Values taken from python library tabulate . Defines how to display the json message in tabular format. Applicable only if jsonRequest is true
chart - Chart URL from tradingview for which snapshot need to be captured
loginRequired - true/false. Use this only if you are using a private non shared chart for snapshot or if your chart contains invite only scripts which needs to be shown in the chart snapshot.
⬜ Capturing Chart URL
Note: Make sure you create different chart for different instruments which you are trying to get alert. Also make sure your chart is saved and all the indicators are in palce.
⬜ Testing on postman
⬜ Creating the alert