How to Create a Scanner in TradingView: A Complete Step-by-Step Guide
Creating your own scanner in TradingView is like having a dedicated assistant that sifts through the markets for you. Instead of glued to your screen, you can get automatic alerts for stocks, forex pairs, or cryptocurrencies that match exactly what you're looking for. Whether you're scanning for quick day trades or longer-term investments, a well-set-up scanner saves you time and helps you spot opportunities faster.
Getting to Know the Scanning Tools on TradingView
TradingView has several built-in screeners, each tailored to different types of assets. Before you start building, it helps to know which one fits your style. Think of them as different filters for your market research.
Here's a quick look at the main options:
| What you can scan | What you can look for |
|---|---|
| Stocks, Forex, Crypto | Technical indicator signals (like RSI or Moving Averages) |
| Indices, and ETFs | Fundamental data (like earnings or market cap) |
| Price-action metrics (like new 52-week highs or unusual volume) |
These tools use real-time data to help you find potential moves based on your own strategy, so you're only seeing what truly matters to you.
Finding the Right Tool: A Guide to TradingView's Scanners
Trying to find good trading opportunities can feel like looking for a needle in a haystack. That's where TradingView's scanners come in—they do the heavy lifting for you. Think of them as your personal assistant, sifting through thousands of assets to find the ones that match exactly what you're looking for.
The key is to pick the scanner that fits the market you're actually trading. Here's a straightforward look at what's available and what each one is best for:
| Scanner Type | What It's For & Key Features |
|---|---|
| Stock Screener | Perfect for finding stocks. You can filter by company size (market cap), valuation (P/E ratio), dividend payments, trading volume, and popular technical indicators like RSI and moving averages. |
| Forex Screener | Designed for the currency market. It helps you spot movement in forex pairs based on price changes, volatility, and tools like Bollinger Bands. |
| Crypto Screener | Your go-to for the crypto world. It lets you scan thousands of cryptocurrencies using the same powerful technical analysis tools as the stock screener. |
| Indices Screener | Ideal for tracking entire markets. Use it to monitor global indices (like the S&P 500 or FTSE 100) by their price performance and other key metrics. |
| ETF Screener | Great for finding funds. Filter through exchange-traded funds by what they invest in (asset class), their fees (expense ratios), performance history, and technical signals. |
Step 1: Launching the TradingView Screener
Starting with a basic scanner is one of the first things many traders do, and it takes just a few clicks. To begin, pull up any TradingView chart for an asset you like. You'll see a panel at the bottom of your chart—just click on the Screener tab there.
Next, you'll want to pick your market. Go ahead and select Stocks, Crypto, or Forex from the options, depending on what you're interested in trading.
Step 2: Set Your Market Parameters
Before you dive into all the fancy filters, you need to tell your scanner where to look. Think of this as drawing a map for a treasure hunt—you have to define the area first.
This step is all about choosing your specific market. Are you scanning the entire NASDAQ? Just the NYSE? Or maybe you're focused on a particular crypto exchange like Binance or Coinbase?
Making this choice upfront is crucial because it defines your entire universe of potential stocks or cryptocurrencies. It's the master list your scanner will use. Getting this right from the start saves you a ton of time and frustration later. It prevents your scanner from pulling in data for assets you don't care about, which means your results are more accurate and relevant from the get-go. You're essentially filtering out the noise before you even start fine-tuning.
Step 3: Tweak Your Scanner's Filters to Fit Your Style
This is where the magic happens—making the scanner work for you and your specific strategy. Think of these filters as the questions you're asking the market. You get to choose which questions are most important.
You can add filters based on technical indicators you already know and trust. A lot of people start with things like:
- RSI: To find stocks that might be overbought or oversold.
- MACD: To spot shifts in momentum.
- Volume: To see which stocks are getting a lot of attention.
- Volatility: To catch stocks that are making bigger moves than usual.
- Price Change: To filter for stocks that have jumped or dropped by a certain percentage.
And if you're someone who also looks at company fundamentals, you can mix those in too. You could filter for companies with strong earnings growth (EPS), a certain valuation (P/E ratio), or a specific company size (market cap). It's all about building a setup that matches how you like to trade.
Example: Building a Scanner for "Squeeze" Momentum Breakouts
Let's make this concrete. Here's one way you could set up a scanner to find stocks that are potentially building up for a big move. This is just a template—feel free to adjust the numbers to your own comfort level.
- Market: US stocks (NASDAQ and NYSE)
- Liquidity Filter: Volume × Price > 100M USD (This just finds stocks that are liquid enough to trade easily, so you can get in and out without a problem.)
- Volatility Filter: Vol Change > 10% (This helps you find stocks that are starting to wake up and move.)
- Minimum Price Filter: Price > $10 USD (This is a simple way to generally avoid super risky penny stocks.)
- Momentum Filter: RSI < 30 or RSI > 70 (This flags stocks that are in extreme territory, which can sometimes happen right before a big momentum breakout or a reversal.)
Step 4: Advanced Filtering Techniques
Once you're comfortable with the basics, you can start layering different indicators together to get a much clearer picture. It's like putting together clues to build a stronger case before making a move.
Instead of relying on just one signal, try combining them. For instance, you might look for a stock that's showing strong upward momentum and a noticeable spike in trading volume. That volume acts like a crowd starting to gather, confirming that the momentum might be for real.
Another powerful combination is looking for a tight consolidation pattern (often signaled by a low Bollinger Bandwidth, meaning the stock's price is coiling up) alongside a rising MACD. This can often hint that a significant price move is brewing after a period of quiet.
A great way to boost your confidence in a potential trade is to check what's happening on different timeframes. Are you seeing a promising setup on the daily chart? Pop over to the weekly chart to see if the same stock is also looking strong from a bigger-picture perspective. When a stock is setting up for a breakout across multiple timeframes, it's like getting multiple green lights in a row—it significantly increases the odds that you're onto something good.
Building Your Own Stock Scanners with PineScript
Ever wish TradingView's built-in scanners could do more? When the standard tools don't quite fit what you're looking for, creating your custom screener using PineScript lets you build exactly what you need. Think of PineScript as TradingView's special language that lets you design your own indicators and scanners from scratch.
If you want to skip the coding entirely, Pineify's visual screener editor lets you build custom scanners with 235+ technical indicators in minutes—no programming required. You can scan multiple symbols and timeframes simultaneously with color-coded long/short signals, all while working around PineScript's limitations effortlessly.
Working Within PineScript's Limits
Here's something important to know upfront: PineScript has a 40-symbol limit per script. That means any single scanner you create can keep an eye on up to 40 different stocks or symbols at once. This is just how the platform is built. The good news is you can get around this by making a few different scripts or organizing your watchlists into smaller groups.
How a Basic Scanner Comes Together
A custom PineScript scanner has a simple backbone. Everything revolves around a screenerFunc() that does the math for your strategy and then spits out both a number and a true/false signal. Here's what that looks like in its simplest form:
// Screener Function
screenerFunc() =>
rsi = rsi(close, rsi_length) // Value
cond = rsi > rsi_overbought // Condition
[rsi, cond]
In this case, the function figures out the RSI and then checks if that RSI is higher than your "overbought" line. When the condition is true, the scanner will highlight that symbol and show you the RSI value.
Making a Moving Average Scanner
You can tweak that basic structure to look for all sorts of things. Let's say you want to find stocks that are above their 200-day moving average—a common way to spot uptrends. Here's how you'd do it:
// Screener Function
screenerFunc() =>
ma = sma(close, 200) // Value
cond = close > ma // Condition
[ma, cond]
This straightforward setup filters for stocks trading above their long-term trend line. Once you're comfortable with this, you can start adding more rules and complex logic to zero in on even more specific opportunities.
Setting Alerts for Your Custom Scanner
Okay, so you've built your own custom scanner using PineScript—nice work! The next step is to make sure it can actually notify you when it finds something. Here's how you set that up.
Just add your custom script to any chart in TradingView. From there, creating an alert works exactly the same way as if you were setting one up for a built-in strategy. The most important part is the alert message itself. To get all the details from your screener, simply use this exact placeholder in your message:
{{strategy.order.alert_message}}
This little piece of code tells TradingView to fill in the specific results from your scanner automatically.
Getting Your Alerts on Telegram
Want those scanner results sent directly to your phone? It's super easy to connect everything to Telegram.
All you have to do is include the hashtag #telegram somewhere in your screener's alert message. Once you do that, TradingView will automatically forward every single alert straight to your chosen Telegram channel or personal chat.
This is a game-changer because it means you can get your trading signals delivered instantly to your mobile device, so you can see what's happening in the markets no matter where you are.
Practical Tips for Getting the Most Out of Your Scanner
Building a scanner is a great start, but the real magic happens when you use it wisely. Think of it like a metal detector; you want to sweep it over ground that's most likely to have treasure, not waste time in an empty field.
First, stick to what's easy to trade. Focus on liquid securities—those with plenty of daily trading activity. It's best to avoid penny stocks and thinly traded symbols. They might look tempting, but they can be incredibly difficult to get into or out of without the price moving against you.
Next, don't limit yourself to just one playground. The best opportunities can pop up anywhere. Combine scanners for different assets like stocks, crypto, and forex. Use your platform's saved screener presets to quickly switch between them and catch moves as they happen around the globe.
Staying organized is key. Create multiple watchlists, each dedicated to a specific strategy. Then, you can rotate your scanner's focus depending on what the market is doing. It's like having different tools for different jobs.
Here's a quick guide on what to look for in each market:
| Asset Class | What Your Scanner Should Look For |
|---|---|
| Stocks | Squeeze breakouts (when a period of low volatility ends with a sharp price move) |
| Crypto | Mean reversion opportunities, especially when the market is moving sideways |
| Forex | Multi-timeframe trend alignment (when the short-term and long-term trends agree) |
Questions & Answers
Q: What's the maximum number of symbols I can scan at once in a PineScript custom screener?
A: In a single PineScript, you're limited to checking 40 different symbols. It's a hard cap set by the platform itself. The good news is, if you need to scan more, you can just create a second (or third) script to cover the rest of your watchlist.
Q: Do I need to know how to code to use TradingView's built-in scanner?
A: Not at all. TradingView's standard screeners for stocks, forex, and crypto are designed to be super straightforward. It's all point-and-click—you just pick your market, choose your filters from a list, and see the results pop up. No programming required.
Q: What's the best way to get scanner alerts sent to my phone?
A: The method a lot of people use is to set up an alert from your scanner and include the #telegram hashtag in the message. This forwards the alert to a Telegram channel, which then sends a push notification straight to your mobile device. It's a free and reliable way to stay in the loop.
Q: I'm just starting out. What filters should I use in my first scanner?
A: Keep it simple to begin with. A great starting point is to look at common indicators you might already know, like the RSI being overbought or oversold, or the MACD showing a potential change in momentum. One of the most important filters for beginners is a liquidity check—something like ensuring the Average Dollar Volume (Price x Volume) is over $100 million. This helps you avoid super low-volume stocks that can be tricky to trade. Start with two or three simple conditions and build from there as you get more comfortable.
Q: Is it possible to run scans for stocks, crypto, and forex all at the same time?
A: You can't run them all in a single scan, but you can easily set up and save separate scanner presets for each one. Most traders I know have one scanner preset tuned for stocks, another for major forex pairs, and a third for cryptocurrencies. You can then quickly switch between them with one click depending on what you're focusing on that day.
Your Action Plan for a Killer Scanner Setup
Alright, you've got the basics down. Now, let's get your scanner working like a well-oiled machine. Think of this next phase as your hands-on lab time.
First, just play around. Dive into TradingView's built-in scanners and start testing different filters. See what happens when you adjust one setting versus another. The goal here is to get a real feel for how each filter changes your results. Before you risk any real money, spend time backtesting these setups on historical data. It's like a flight simulator for trading—you get to practice without any of the danger.
Once you're feeling good with the standard tools, it's time to level up. That's where PineScript comes in. This lets you build custom scanners from the ground up that match your personal trading strategy perfectly. It's the difference between using a generic map and having a custom-made GPS for your specific journey. If you're new to Pine Script, our comprehensive guide on How to Write Pine Script in TradingView: A Complete Beginner's Guide will help you get started with the fundamentals.
Here's a crucial habit to build: keep a log. Document your scanner settings and the kinds of trades they flag. Over time, you'll see clear patterns emerge, showing you which filter combinations are actually working for you. To make sure you never miss a beat, connect your scanner to alert systems or Telegram notifications. This way, promising opportunities pop up right in your pocket. For even more automation capabilities, check out our guide on the TradingView Trade Copier: The Ultimate Guide to Automated Trade Replication to streamline your entire workflow.
The key thing to remember is that this isn't a "set it and forget it" kind of deal. The best traders are always tinkering. They regularly check if their scanner is still effective, adjust filters when the market mood shifts, and are always looking for ways to improve their screening. For those looking to connect their TradingView setups with professional trading platforms, our guide on Topstep TradingView: How to Connect, Trade, and Optimize provides valuable insights into bridging these powerful tools. Stick with this process, and you'll build a powerful system that automatically spots great trades, giving you a real edge in today's fast-moving markets.
