Writing an indicator is half the job. The other half is hearing about it when the thing you built it for happens: the sweep of a low, the RSI cross, the volume burst. Until now, getting that from a script written in PineScripter meant pasting it into TradingView and creating an alert there. That still works, and for many markets it is still the right tool. But for a crypto chart you already run in PineScripter, there is now a shorter path: pick the trigger in the Alerts panel, and PineScripter watches it for you, on its own servers, and sends you an email when it fires. Indicator alerts are free on every plan, including Free.
Short answer
Open a script in PineScripter, open the Alerts panel and choose Indicator alert. Pick one of the script's triggers (a plotshape, plotchar or plotarrow marker, an alertcondition(), or an alert() call), a crypto spot market and a timeframe of 15 minutes or longer. PineScripter then runs that version of the script on Binance market data each time a bar closes, and when the trigger is true on the closed bar it logs a firing and emails you. The free plan holds 3 alerts at a time and up to 20 alert emails a day, and every email has a one-click link that turns email off for that alert.
Key facts
- Indicator alerts are free on every plan. Free holds 3 at a time, Mini 10, Pro 25, Ultra 50 and Power 100.
- An alert can watch a plotshape, plotchar or plotarrow marker, an alertcondition(), or an alert() call in your own script.
- Checks run on PineScripter's servers each time a bar closes, so an alert keeps watching while the app is closed.
- Only closed bars are checked, on 308 crypto spot markets with Binance market data, on timeframes from 15 minutes to 1 week.
- Each firing is logged in the Alerts panel with the market, bar time and closing price, and emailed if you asked for email.
- Free accounts get up to 20 alert emails a day and paid plans up to 100; firings past that are still logged in the app.
- Every alert email has a link that turns email off for that one alert. An alert runs for 60 days on Free and 365 days on a paid plan, then Resume starts it again.
| TradingView alert | PineScripter indicator alert | |
|---|---|---|
| Where the script runs | TradingView's servers | PineScripter's servers |
| Markets | Any symbol TradingView carries | 308 crypto spot markets, Binance data |
| Timeframes | Any, down to seconds on some plans | 15 minutes to 1 week |
| When it checks | Each tick or once per bar close, your choice | Once per closed bar |
| How you hear about it | App, email, webhook and more | Email and the in-app log |
| After you edit the script | Create the alert again | Make a new alert |
| How many | Set by your TradingView plan | 3 on Free, up to 100 on paid plans |
What is new
The Alerts panel in the PineScripter workspace already did two things: it kept a log of every TradingView alert you connect with a webhook address, and it let you set simple price alerts on the chart. It now has a third section, Indicator alerts. Instead of a price level, an indicator alert watches a trigger in your own script, on a market and timeframe you pick, and it keeps doing so after you close the tab.
The feature uses no AI, so it is not counted against credits and it is not limited to paid plans. Like the chart, replay and paper trading, it is part of what every account gets.
Setting one up
Open the script in the workspace and open the Alerts panel. Under Indicator alerts, choose Indicator alert. The dialog lists every trigger PineScripter finds in the script: each plotshape, plotchar and plotarrow marker, each alertcondition(), and each alert() call, by its title where the script gives one and by its line number where it does not. Pick the one you want to hear about.
Then choose the market and the timeframe. The market list is the same 308 crypto spot markets the chart runs on. The timeframe can be anything from 15 minutes to 1 week. The name defaults to the trigger, market and timeframe, and you can change it. Leave "Email me when it fires" ticked if you want an email, or untick it to only log firings in the app. Create the alert and it starts watching from the next bar close.
One thing to know: the alert keeps a copy of the script exactly as it was when you made it. If you go on editing the script, the alert keeps watching the version you set it on. When you want it to watch the new version, make a new alert and remove the old one. This is the same rule TradingView follows, made explicit.
Closed bars only, and why that matters
Every check runs once a bar has closed. Shortly after the close, PineScripter loads the latest bars for that market and timeframe, runs your script over them, and looks at the bar that just closed. If the trigger is true on it, that is a firing.
Checking only closed bars rules out the most common alert complaint: a trigger that fires while a bar is forming and is gone by the close, so the alert reports something the chart never shows. A firing from an indicator alert is always one you can find on the chart afterwards, on the bar it names. The cost is a short delay: the email arrives after the bar closes, usually within a minute or two, rather than the moment a condition first becomes true inside the bar.
Closed-bar checks do not fix a script that looks ahead. If a script uses future bars, for example through request.security() with lookahead on and no offset, its triggers can still be wrong on live bars. Replay and the look-ahead check in the workspace are the tools for that, and are worth running before you set an alert on a new script.
The email, and the limits on Free
An alert email names the trigger that fired, the market and timeframe, the time of the bar and its closing price, with a button back to the script. It is written in the language you had the app in when you made the alert. At the bottom is a link that turns email off for that alert only: one click, no sign-in, and your other alerts and account emails are untouched. You can turn it back on from the panel.
The free plan holds 3 indicator alerts at a time and sends up to 20 alert emails a day. Paid plans hold 10 to 100 alerts and send up to 100 emails a day. If a trigger fires more often than that, the extra firings are still logged in the panel, and the last email of the day says so, so a noisy trigger cannot flood your inbox. An alert on Free runs for 60 days and on a paid plan for 365 days, and then ends; Resume starts it again. That keeps alerts nobody is reading from running forever.
If a script stops working on the server, for example because it fails three checks in a row, the alert stops and the panel says why, instead of failing silently.
When to use a TradingView alert instead
Indicator alerts cover crypto spot markets on Binance data, on bars of 15 minutes and longer, with email as the way to hear about them. For stocks, futures, forex or any symbol outside that list, for timeframes under 15 minutes, for alerts that must fire inside a bar, or for push notifications and webhooks to other services, a TradingView alert is still the tool. Copy the script to TradingView, create the alert there, and connect it to the Alert Log with the script's webhook address so you keep a record of everything it fires.
Neither kind of alert tells you what to trade. An alert reports that your own script's condition was true on a bar. Whether that condition means anything is a question for the analysis and replay tools, on past data, before you rely on it.
Frequently asked questions
Can I get email alerts from a Pine Script indicator for free?
Yes. In PineScripter, indicator alerts are free on every plan. The free plan holds 3 alerts at a time and sends up to 20 alert emails a day. Pick a trigger in your script, a crypto spot market and a timeframe of 15 minutes or longer, and PineScripter emails you when it fires on a closed bar.
Do I need to keep the app or TradingView open?
No. PineScripter runs the script on its own servers each time a bar closes, so the alert keeps watching while the app and your computer are off. You do not need TradingView open, or a TradingView plan, for an indicator alert.
Which parts of my script can an alert watch?
Any plotshape, plotchar or plotarrow marker, any alertcondition(), and any alert() call. The dialog lists every one it finds, by title or by line number.
Why did my alert email arrive after the bar closed?
Indicator alerts check closed bars only, so a firing is never one that disappears before the close. The email is sent after the check, usually within a minute or two of the bar closing.
How do I stop the emails?
Click the link at the bottom of any alert email to turn email off for that alert, or use the Email on and off control, Pause or Remove in the Alerts panel.
The practical takeaway
An indicator is only useful if you hear about it at the right moment. Indicator alerts give every PineScripter account, Free included, a way to watch a trigger in their own script on closed bars and get an email when it fires, without keeping anything open. For markets and timeframes outside what they cover, TradingView alerts and the Alert Log are still there.
Indicator alerts are in the Alerts panel of PineScripter, next to the Alert Log and price alerts. Open a script, pick a trigger, and the next closed bar is the first one it checks.
Sources
- Pine Script v6 reference: alertcondition()
- Pine Script v6 reference: alert()
- Pine Script v6 reference: plotshape()
Related reading: indicator alerts, Pine Script alerts guide, why alerts fire on the wrong bar, replay and the Alert Log.
Disclaimer: PineScripter is a coding tool for Pine Script development. It does not provide financial advice and does not guarantee trading profits. Always backtest strategies thoroughly and understand the risks before live trading.