TradingView webhook
Simply add the Trading-view service into your OctoBot's configuration and setup your webhook service.
- To be able to send signals from tradingview.com, you need a pro account, if you don't have one, you can use the pro trial by clicking on
- Add your credit card or paypal account to validate your trial account and click on
Your account is now ready to be used with OctoBot !
- Go to the right menu and click on the alert button
- Create a new alert with
- Choose the condition : an indicator cross, a price drop, whatever you want
- Add your OctoBot webhook as the following screenshot.You can find OctoBot's webhook on your OctoBot's configuration page or in OctoBot's starting logs. It should be an url like https://XXXXXXXX.octobot.cloud/webhook/trading_view or http://XXXXXXXX.ngrok.io/webhook/trading_view.WARNING: To improve performances, webhooks are started only when required, this means that you need to activate a webhook related tentacle to get the webhook url (a tentacle such as the trading view signals trading mode)
- Set the alert message
The alert format is designed to be easily used from TradingView. Minimal alerts contain the exchange name, the alert symbol (BTCUSDT for BTC/USDT and BTC/USDT:USDT) and the side of the order to create. Example:
EXCHANGE={{exchange}}
SYMBOL={{ticker}}
SIGNAL=SELL
if it's a buy signal
OR
EXCHANGE={{exchange}}
SYMBOL={{ticker}}
SIGNAL=SELL
if it's a sell signal
Additional order details can be added to the alert. These are optional:
ORDER_TYPE=LIMIT
VOLUME=0.01
PRICE=42000
STOP_PRICE=38000
TAKE_PROFIT_PRICE=55000
REDUCE_ONLY=true
ORDER_TYPE
is the type of order, it can beMARKET
orLIMIT
VOLUME
is the volume of the order in base asset (BTC for BTC/USDT) it can a flat amount (ex: 0.1 to trade 0.1 BTC on BTC/USD), a % of the total portfolio value (ex: 2%) or a % of the available holdings (ex: 12a%).PRICE
is the price of the limit order in quote asset (USDT for BTC/USDT)STOP_PRICE
is the price of the stop order to create. When increasing the position or buying in spot trading, the stop loss will automatically be created once the initial order is filled. When decreasing the position (or selling in spot) using a LIMITORDER_TYPE
, the stop loss will be created instantly.TAKE_PROFIT_PRICE
is the price of the take profit order to create. When increasing the position or buying in spot trading, the take profit will automatically be created once the initial order is filled. When decreasing the position (or selling in spot) using a LIMITORDER_TYPE
, the take profit will be created instantly.REDUCE_ONLY
when true, only reduce the current position (avoid accidental short position opening when reducing a long position). Only used in futures trading. Default is false
Example alert:
EXCHANGE=binance
SYMBOL=ETHBTC
SIGNAL=SELL
ORDER_TYPE=LIMIT
You can also use a token to add a security layer on your webhook using an identification token, this token is randomly generated by your OctoBot and can be found on the configuration interface and in execution logs.
To add your token on the tradingview.com signal: add the following line to the alert message:
TOKEN=YOUR_TOKEN
Last modified 1mo ago