How to Set Up a TradingView Alert for Buy and Sell Signals

·

This guide walks you through setting up a TradingView alert to trigger buy/sell signals for your trading bot. We’ll cover the essential settings and configurations step by step.


Prerequisites

Before starting, ensure you have:


Step-by-Step: Setting Up a TradingView Alert

  1. Log in to your TradingView account.
  2. Search for your trading pair and exchange.
  3. Select the candle size (e.g., 1H, 4H).
  4. Choose a technical indicator (e.g., RSI, MACD).
  5. Click “Alert” on the chart.
  6. Configure the Conditions (varies by indicator).
  7. Set the alert frequency (e.g., "Once per bar close").
  8. Define an expiration time for the alert.
  9. Under Notifications, enable “Webhook URL”.

👉 Learn more about TradingView alerts

  1. In Cryptohopper:

    • Navigate to Marketplace → Apps → TradingView.
    • Use the Alert Generator to create a webhook message.
  2. Configure the Alert:

    • Select your bot.
    • Enter the currency symbol (e.g., BTC for BTC/USDT).
    • Set the Action (buy/sell) or use {{strategy.order.action}} for dynamic signals.
    • Choose an order type (e.g., market, limit).
  3. Optional: Add take_profit:X to include a take-profit value.
  4. Paste the generated alert message into TradingView and click “Create”.

Key Settings Explained

TradingView Configuration

Cryptohopper Configuration

👉 Optimize your trading strategy


FAQ

Q: Can I use free TradingView accounts for alerts?
A: No, alerts require a paid TradingView plan.

Q: How do I test if my alert works?
A: Manually trigger a condition (e.g., simulate an RSI crossover) and check Cryptohopper’s activity log.

Q: Can one alert handle both buy and sell signals?
A: Yes, by using {{strategy.order.action}} in the alert message.

Q: What’s the expiration time recommendation?
A: Set it slightly longer than your candle timeframe (e.g., 5 minutes for 1-minute bars).


Pro Tips

This guide ensures your TradingView alerts seamlessly integrate with Cryptohopper for automated, data-driven trading.