The Gunbot TradingView extension enables you to implement trading alerts originating from custom strategies on TradingView. This provides comprehensive control over your strategy within the platform. Trade signals are sent to Gunbot via email, which then executes the trades.
Additionally, this extension is capable of executing trades from any email alerts, so using TradingView is not strictly necessary.
Alert Message Components
For Gunbot to take action, it necessitates alert messages in a specific format. The alert text should appear in the email subject line and adhere to the standard pair syntax used for regular Gunbot trading.
Some alerts may have unique trading limits set. For other alerts, or those without specified values, the trading limits established in your TradingView settings will be applied.
It's advisable to enable the email-to-SMS option on tradingview.com to receive plain text emails instead of HTML-formatted messages.
For spot exchanges
Syntax for alerts for spot exchanges:
BUY_BINANCE_BTC-ETH: Buy ETH using BTC
BUY_BINANCE_BTC-ETH_0.1: Buy ETH using BTC with a trading limit of 0.1 BTC
SELL_BINANCE_USDT-BTC: Sell BTC for USDT (conditions apply)
STOPLOSS_BINANCE_BTC-ETH: Sell ETH for BTC if stoploss is triggered
BUY_BINANCE_USDT-BTC_amount_rate: Buy BTC using USDT for a specified amount in USDT at a specified rate (requires TV market orders disabled)
BUY_BINANCE_BTC-ETH_0_rate: Buy ETH using BTC for "TV trading limit buy" at a specified rate (requires TV market orders disabled)
For futures exchanges
Syntax for alerts for futures exchanges:
LONG_BITMEX_XBT-USD: Long order for XBT-USD
SHORT_BITMEX_XBT-USD_amount: Short order for XBT-USD with a specified trading limit
LONG_BITMEX_XBT-USD_amount: Long order for XBT-USD with a specified trading limit
LONG_BITMEX_XBT-USD_amount_rate: Long order for XBT-USD with a specified trading limit and rate (requires TV market orders disabled)
SHORT_BITMEX_XBT-USD_0_rate: Short order for XBT-USD without a specified trading limit and with a specified rate (requires TV market orders disabled)
CLOSE_BITMEX_USDT-LTC: Close a position (specific to bitmex, not required on other exchanges)
CLOSELONG_BITMEX_XBT-USD: Close a long position (specific to bitmex, not required on other exchanges)
CLOSESHORT_BITMEX_XBT-USD: Close a short position (specific to bitmex, not required on other exchanges)
Alter Strategy via Alert
You can employ alerts to modify the strategy of any valid pair that is already in your configuration.
This alert type can also be utilized to add pairs to Gunbot through an AutoConfig job. | Alert message | Action | | :--- | :--- | | | Assigns strategy to XBT-USD |