1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
50 lines of Pine Script v6 from scripts/mini-screener.pine.txt, published under MPL-2.0. Keep the author's credit and licence lines when you reuse it.
mini-screener.pine.txt
//@version=6
indicator("Mini Screener", overlay = true)
// 1. Settings: five symbols and the trend length
sym1 = input.symbol("BINANCE:BTCUSDT", "Symbol 1")
sym2 = input.symbol("BINANCE:ETHUSDT", "Symbol 2")
sym3 = input.symbol("BINANCE:SOLUSDT", "Symbol 3")
sym4 = input.symbol("BINANCE:BNBUSDT", "Symbol 4")
sym5 = input.symbol("BINANCE:XRPUSDT", "Symbol 5")
emaLen = input.int(50, "Trend average length")
// 2. One question, asked about any symbol
report() =>
ema = ta.ema(close, emaLen)
chg = 100 * (close - close[1]) / close[1]
[close, chg, close > ema]
// 3. Ask the same question about all five
[p1, c1, u1] = request.security(sym1, timeframe.period, report())
[p2, c2, u2] = request.security(sym2, timeframe.period, report())
[p3, c3, u3] = request.security(sym3, timeframe.period, report())
[p4, c4, u4] = request.security(sym4, timeframe.period, report())
[p5, c5, u5] = request.security(sym5, timeframe.period, report())
// 4. Put the answers into arrays, so we can loop over them
names = array.from(sym1, sym2, sym3, sym4, sym5)
prices = array.from(p1, p2, p3, p4, p5)
changes = array.from(c1, c2, c3, c4, c5)
trends = array.from(u1, u2, u3, u4, u5)
// 5. The table, created once
var table screen = table.new(position.top_right, 3, 6, border_width = 2)
// 6. A helper that writes one cell
cell(col, row, txt, bg) =>
table.cell(screen, col, row, txt, text_color = color.white,
bgcolor = bg, text_size = size.normal)
// 7. Fill the screener on the last candle only
if barstate.islast
cell(0, 0, "Symbol", color.gray)
cell(1, 0, "Price", color.gray)
cell(2, 0, "Change", color.gray)
for i = 0 to 4
name = str.replace_all(array.get(names, i), "BINANCE:", "")
up = array.get(trends, i)
chg = array.get(changes, i)
cell(0, i + 1, name, up ? color.green : color.red)
cell(1, i + 1, str.tostring(array.get(prices, i), "#.##"), color.gray)
cell(2, i + 1, str.tostring(chg, "#.##") + "%", color.gray)
Overview
Mini Screener calculates single-bar percentage price changes and checks whether each asset trades above or below an exponential moving average of customizable length. The results are updated on the current bar and presented in a compact table at the top right of the chart, highlighting trend conditions with green or red background colors. The symbol choices and moving average length can be adjusted in the settings.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Symbol 1
symbol
BINANCE:BTCUSDT
sym1
Symbol 2
symbol
BINANCE:ETHUSDT
sym2
Symbol 3
symbol
BINANCE:SOLUSDT
sym3
Symbol 4
symbol
BINANCE:BNBUSDT
sym4
Symbol 5
symbol
BINANCE:XRPUSDT
sym5
Trend average length
int
50
emaLen
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi
This indicator plots five moving averages of a chosen source on the price chart, defaulting to EMA lengths 10, 20, 30, 40 and 50. The user can switch the average type to SMA, WMA or HMA and recolor each line. Wide translucent glows sit under the lines, and sof
Calculates exponential moving averages for fast, pivot, and slow lengths along with optional 50, 100, and 200 simple moving average context lines. It visualizes bullish and bearish ribbon fills on the main price chart alongside MACD calculations to generate ea
This indicator analyzes historical candle direction and price range over a configurable lookback window to gauge market trend. It categorizes trend direction using candle count, price range sum, or both. Signals are filtered using a Simple Moving Average to en
This indicator evaluates market momentum and risk by calculating trend metrics and volatility stats, displaying them in an on-chart table pane. It measures short-term and long-term trend strength via two MACD configurations built on three customizable EMA leng
Market Monitor - 15m is a directional bias chart overlay designed for 15-minute intraday chart analysis. It calculates a triple exponential moving average ribbon with EMA cloud shading, session VWAP with multiplier bands, prior day levels, a 30-minute opening