TradingView alerts format
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:
For a buy signal.
For a sell signal.
Additional order details can be added to the alert. These are optional:
ORDER_TYPEis the type of order, it can be
VOLUMEis the volume of the order in base asset (BTC for BTC/USDT) it supports the orders amount syntax
PRICEis the price of the limit order in quote asset (USDT for BTC/USDT)
STOP_PRICEis 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 LIMIT
ORDER_TYPE, the stop loss will be created instantly. Required when
TAKE_PROFIT_PRICEis 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 LIMIT
ORDER_TYPE, the take profit will be created instantly.
REDUCE_ONLYwhen true, only reduce the current position (avoid accidental short position opening when reducing a long position). Only used in futures trading. Default is false
TAGis an identifier to associate to the order(s) to create. Any value can be used as tag. Tags can later be used to cancel specific orders.
SIGNAL=CANCEL to cancel orders identified buy their
Additional cancel parameters are available:
PARAM_SIDEis the side of the orders to cancel, it can be
sellto only cancel buy or sell orders.
TAGis the tag to select orders to cancel with. When provided, only orders created with the given tag and symbols will be canceled.
You can 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: