Setting Up Reliable TradingView Alerts
Your automation is only as good as your alerts. Learn how to configure TradingView alerts that fire consistently, avoid common pitfalls, and test before going live.
You've got your strategy. You've got your webhook. Now you need alerts that actually work.
This sounds simple. You set an alert condition, point it at your webhook URL, and trades should flow. But the gap between "should work" and "works reliably" is where most automation headaches live.
Let's make sure your alerts are bulletproof.
Understanding Alert Types
TradingView offers several alert condition types. Choosing the right one matters.
Crossing Conditions
"Crossing Up" and "Crossing Down" fire once when a value crosses a threshold. This is usually what you want for entry signals.
Example: RSI crossing above 70, MACD crossing above signal line, price crossing above a moving average.
When to use: Entry and exit signals where you want exactly one alert at the moment of cross.
Greater Than / Less Than
These fire repeatedly while the condition is true. Every bar that RSI is above 70, you get another alert.
Example: RSI greater than 70.
When to use: Rarely for automation. Usually you want crossing conditions instead.
Entering / Exiting Channel
Fires when price enters or exits a defined range. Useful for breakout strategies.
Example: Price exiting the range of 4500-4550.
When to use: Range breakouts, volatility expansions.
Moving Up / Moving Down
Fires when a value increases or decreases by a specified amount within a time period.
Example: Price moving up 10 points in 5 minutes.
When to use: Momentum-based triggers, unusual move detection.
Once Per Bar vs. Once Per Bar Close
This setting is critical for automation:
Once Per Bar: Alert fires as soon as condition becomes true, even if the bar hasn't closed. The condition might become untrue before bar close. This can cause premature signals.
Once Per Bar Close: Alert fires only after the bar closes with the condition true. More reliable for automation since you're acting on confirmed data.
For most automated strategies, use "Once Per Bar Close." The extra seconds of delay are worth the reliability.
Crafting Alert Messages
The message in your alert is what gets sent to your webhook. This needs to be formatted correctly for Algo Bread to understand it.
Keep It Clean
Your alert message should contain exactly what Algo Bread needs—nothing more. Extra text can cause parsing errors.
Good message format: ``` {"acct_id": "your_account_id", "symbol": "NQ", "stance": "long", "breadkey": "your_breadkey"} ```
Bad message format: ``` Buy signal triggered! {"acct_id": "your_account_id", "symbol": "NQ", "stance": "long", "breadkey": "your_breadkey"} ```
The extra text before the JSON will break parsing.
Use TradingView Variables Carefully
TradingView lets you include dynamic values like {{ticker}}, {{close}}, and {{time}}. These can be useful but also introduce complexity.
Safe usage: ``` {"symbol": "{{ticker}}", "price": "{{close}}"} ```
Potential issues:
- {{ticker}} might include exchange prefix (NASDAQ:AAPL instead of AAPL)
- {{close}} gives you a string, not a number
- Some variables behave differently on different chart types
Test thoroughly before relying on dynamic variables in production.
Validate Your JSON
Before saving your alert, validate that your message is proper JSON. A missing quote or comma will cause silent failures.
Use a JSON validator (many free ones online) to check your message syntax. Or paste it into your browser's developer console—if it parses without errors, you're good.
Common Setup Mistakes
Wrong Webhook URL
The most common issue. Double-check:
- URL is exactly correct (no typos, no extra spaces)
- URL includes https:// at the start
- You're using your Algo Bread webhook URL, not some placeholder
Alert on Wrong Timeframe
You set up your alert on a 5-minute chart, but your strategy is designed for 1-hour charts. The alert fires correctly, but it's giving you 5-minute signals when you wanted hourly.
Always verify the timeframe matches your strategy.
Forgetting to Enable Webhook
You can create an alert with a webhook URL but forget to check the "Webhook URL" checkbox that actually enables it. The alert fires, the notification shows in TradingView, but nothing goes to your webhook.
Alert Limit Exhaustion
TradingView plans have alert limits. If you hit your limit, new alerts won't be created, and you might not notice until trades stop firing.
Keep track of your alert count and remove old alerts you no longer need.
Expiration Settings
By default, alerts expire. If you set up an alert to expire in a month and forget about it, your automation silently stops.
For long-term strategies, consider setting alerts to not expire (if your plan allows) or set calendar reminders to renew them.
Testing Before Going Live
Never trust an untested alert with real money.
Step 1: Test Webhook Connectivity
Before any alert logic, verify your webhook is reachable:
- Create a simple test alert (any condition that fires immediately)
- Point it at your webhook URL
- Trigger the alert
- Check that Algo Bread received it
If this fails, debug connectivity before moving on.
Step 2: Test Alert Logic
Make sure your strategy conditions fire when expected:
- Set up alerts on a demo or paper account
- Let them run for a few signals
- Verify each alert fired at the right moment
- Check that the alert message contains correct data
Watch a few live signals to confirm timing and content match your expectations.
Step 3: Test End-to-End
With webhook working and alert logic verified, test the full flow:
- Alert fires on TradingView
- Webhook hits Algo Bread
- Algo Bread processes the signal
- Trade executes on your connected account
Do this in paper trading first. Watch at least 5-10 complete signal cycles before going live.
Step 4: Monitor the First Live Signals
When you switch to live trading:
- Be available to watch the first few signals
- Verify fills match expectations
- Check that the full flow is working under real conditions
Don't set up automation and immediately leave for the weekend.
Managing Multiple Alerts
If you run multiple strategies or multiple symbols, alert management becomes important.
Naming Conventions
Give alerts descriptive names so you can identify them later:
Good: "ES-1H-MACD-Long" (symbol-timeframe-strategy-direction)
Bad: "Alert 1"
When something breaks at 2 AM, you want to know exactly which alert is the problem.
Organize by Strategy
Group related alerts together. If your strategy requires separate long and short alerts, name them consistently:
- "NQ-15M-Momentum-Long"
- "NQ-15M-Momentum-Short"
Document Your Alerts
Keep a simple log of your active alerts:
- Alert name
- Webhook URL it's pointed at
- Account it trades
- Last time you verified it's working
Review this list periodically to clean up stale alerts.
Handling Alert Failures
Sometimes alerts don't fire when expected. Here's how to troubleshoot:
Check TradingView's Alert Log
TradingView shows recent alert activity. If your alert should have fired and didn't, check whether:
- The condition was actually met (chart might show different data than when live)
- The alert was expired or disabled
- You hit your alert limit
Check Webhook Delivery
If TradingView shows the alert fired but Algo Bread didn't receive it:
- Network issues can block webhook calls
- Incorrect URL might send to the wrong place
- JSON formatting errors might cause silent rejection
Use Algo Bread's alert history to see what was actually received.
Verify Strategy Logic
If alerts fire but at wrong times:
- Double-check your condition setup
- Verify the timeframe is correct
- Check if you're using "Once Per Bar" when you meant "Once Per Bar Close"
Alert Redundancy
For critical strategies, consider backup measures:
Multiple Alert Conditions
Instead of one complex condition, create multiple simpler conditions that should all align. If one fails, others might catch the signal.
Mobile Notifications
Even if you're automating, enable TradingView's mobile notifications for your alerts. If something goes wrong with the webhook, at least you'll know a signal fired and can intervene manually.
Periodic Health Checks
Set a calendar reminder to verify your alerts are still active and working. A weekly check takes five minutes and can prevent silent failures.
The Reliability Mindset
Your alerts are the bridge between your strategy and your execution. Every weakness in that bridge is a potential failure point.
Approach alert setup with healthy paranoia:
- Test everything before going live
- Document what you set up
- Monitor until you trust it
- Re-verify periodically
The traders who succeed with automation are the ones who treat reliability as non-negotiable. A strategy that fires 90% of the time isn't 90% as good—it might miss the most important signals.
Get your alerts right, and the rest of your automation has a solid foundation.
Related Articles
Why Use A|B Indicators? The Case for Reliable Signals
You can use any TradingView script for automation. But not all indicators are created equal. Here's why A|B indicators are built different.
Understanding Slippage and Order Execution
Slippage is the gap between expected and actual fill prices. Learn what causes it, how to minimize it, and what to realistically expect from your automated trades.
Questions about this article? hi@algobread.com