TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
TradingView Futures

TradingView Pine Screener for Futures Build a Watchlist and Verify the Scan

Start with a few contracts so it is easy to spot a missing row or an expiry mismatch. A scan is a snapshot you run to compare symbols. Keep the symbol, interval and timestamp with any result you want to review later.

Quick Answer

Open TradingView’s Pine Screener, choose a futures watchlist as the Source, select one indicator, set a supported interval and click Scan. First run without filters so you can check which contracts return values. Open the exact same ticker and interval in Supercharts to verify a result.

Start 7-Day TrialSet up the scanCheck a result against the chartTroubleshoot missing rows

Build a futures watchlist and run the first scan

In TradingView’s Symbol Search, open the futures category and add two currently traded dated contracts, such as the active MES and MNQ expiries, to a new watchlist. Record the full exchange-prefixed symbol. Add MES1! separately if you want to compare the continuous series with the dated MES contract.

Open Products → Screeners → Pine. Under Source, choose Watchlists and select your futures list. Open the indicator selector and pick one study. Select a five-minute interval for the example below. Run Scan before adding a filter and check that you can identify each expected symbol and see a numeric value. TradingView documents that running scans requires a paid plan, with a scan allowance that depends on your plan.

A dated contract measures a specific expiry. A 1! series stitches together successive contracts, and historical prices on a continuous chart can also change with back-adjustment. Carry the exact ticker into your chart check and record the contract switch date when comparing results around rollover.

Verify a Pine Screener reading against the same bar

For a reproducible check, add the example indicator to Supercharts from Pine Editor, save it and select it in the Pine Screener. It outputs the prior bar’s close, its 20-bar simple moving average, and the difference divided by the symbol’s minimum tick. The average can fall between valid order prices, so the gap can contain fractional ticks.

Match the full symbol, a standard five-minute candle chart, and the futures session shown on the chart. Note the scan time and align time zones before comparing. Since the indicator reads one bar back, inspect its plotted value on the bar that was current during the scan. In the chart below, the value plotted during B uses candle A and the 19 closes leading into A. During a session break, it still reads one bar back from the latest available bar.

In this fictional example, candle A closes at 6001.00 and the average is 5999.7250. The gap is 5.10 MES ticks. A filter on Previous Gap in Ticks greater than zero would include that row at the illustrated time. Try the unfiltered scan first, then apply the filter and check which rows you retain.

//@version=6
indicator("Previous Close vs SMA 20")
float average = ta.sma(close, 20)
float gap = (close[1] - average[1]) / syminfo.mintick
plot(close[1], "Previous Close")
plot(average[1], "Previous SMA 20")
plot(gap, "Previous Gap in Ticks")

Read the previous bar during a scan

Synthetic MES 5-minute candles. Times are bar closes in ET.

At 10:32 a.m., candle A is the previous completed bar and candle B is still forming. B is drawn here as it looked at 10:35. The blue line shows the 20-bar simple moving average.

Why a futures row is missing or the scan differs from your chart

Remove your filters and scan again. If a row reappears, look at whether it meets the threshold and whether it has a numeric value. If the symbol is still missing, check source membership and open the dated contract directly. Confirm there are recently traded bars and check for a delayed-data label. Record your chart and scan times before attributing a mismatch to exchange data.

If the indicator cannot be selected, confirm it is an indicator with a supported plot or alert condition. The Pine Screener supports 1, 5, 15 and 30 minutes, 1, 2 and 4 hours, and daily, weekly and monthly intervals. It uses up to 500 bars for calculation, and script inputs for a timeframe, symbol or time use the script defaults. With a more complex indicator, verify those settings before comparing it with a chart that has more history.

Test whether Pine Screener’s 500-bar limit is hiding a value

Add this diagnostic indicator to a dated MES chart that has at least 601 usable five-minute bars. Save it, mark it as a favorite, and select it in Pine Screener. Choose the same contract and interval, remove scan filters, and show the three plots as columns. Record the symbol and time, then compare the same previous completed candle in both places.

The two averages use the previous bar’s values. From the bar where the scan evaluates them, the 100-bar average needs 101 bars of available history and the 600-bar average needs 601. With enough history in Supercharts, you can see both averages and SMA 600 ready should read 1. In Pine Screener, the documented 500-bar window can supply the shorter average. The 600-bar value should be unavailable and SMA 600 ready should read 0. The readiness flag keeps that test visible without filtering on an empty value.

If the shorter average also differs, recheck the symbol, interval and the candle you are comparing. If only the 600-bar average is unavailable in the scan, use Supercharts for that rule or separately test a scan rule with a shorter lookback. Pine’s max_bars_back controls a script’s history buffer. The Screener still supplies its own 500-bar calculation window.

//@version=6
indicator("Pine Screener history check")
float fast = ta.sma(close, 100)
float slow = ta.sma(close, 600)
plot(fast[1], "Previous SMA 100")
plot(slow[1], "Previous SMA 600")
plot(na(slow[1]) ? 0 : 1, "SMA 600 ready")

Pine Screener vs. watchlist alerts for futures

Use Scan when you want a table you can review now. For a notification later, configure an alert separately with the symbol or watchlist and a supported condition. A script’s alert condition can help define a scan filter. Saving the filter does not create an active notification.

Sources

Official References

Platform details on this page were checked against these official resources.

TradingView’s Pine history buffer documentationCheck what max_bars_back controls in a script.TradingView Pine Screener requirementsWatchlist selection, scanning, indicator outputs and supported intervals.TradingView’s updated indicator selectorScript sources and compatibility in the selector.TradingView continuous futures symbolsHow the 1! and 2! series combine individual expiries.
Related Guides

Keep Building the Rule System

Create TradingView watchlist alerts for futures

Check electronic hours, expiration and the alert log.

Check TradingView’s CME data status

Read the exchange and delayed-data label on the exact contract.

Reconcile the futures watchlist Change %

Compare daily settlement and last-trade percentages.

Compare continuous and dated futures at rollover

Identify the expiry behind a chart symbol.

FAQ

Common Questions

Can Pine Screener use a custom 10-minute futures interval?

Pine Screener uses a fixed set of intervals. Use 5 or 15 minutes for a nearby comparison. A 10-minute chart can produce different values.

Why does MES1! differ from the dated MES contract?

The continuous series links expiries. Contract shifts and historical adjustments can affect indicator history. Compare the scan and chart using the exact same ticker first.

Does running a Pine Screener scan create an alert?

Scan produces a table. Configure a separate TradingView alert for notifications.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.