This strategy plots Bollinger Bands directly on the price chart. It computes the middle band as the simple moving average of the close price over the input length and the upper and lower bands by multiplying the standard deviation by the multiplier and adding
A strategy that goes long when price sits near a recent pivot low, RSI is below an oversold level, a hammer or bullish engulfing candle forms, price is above an EMA and volume spikes above its 20-bar average. Shorts mirror this near pivot highs with overbought
EA_2 is a basic strategy template that generates trade entries based on price crossovers with a Simple Moving Average. It monitors a fast moving average relative to a selected price source, entering a long position when the price crosses above the moving avera
Plots a simple or exponential moving average calculated on a user-selected timeframe over the current chart. Inputs set the timeframe, average type, length, source, line colour, thickness and transparency. An optional label on the last bar shows the timeframe,
A pivot breakout strategy designed for the S50 futures on a 30-minute chart. It detects swing highs and lows from left and right bar counts and places stop entries just beyond them. Stops sit one ATR beyond the pivot, targets are ATR multiples set by a risk to
A separate-pane indicator that plots the change in a chosen price source over a set number of trading sessions, as percent or points. Columns are green for gains and red for losses, with aqua and fuchsia highlighting changes above or below two configurable thr
This strategy computes the direction of the altcoin market via the Others.D MTPI index. It merges outputs from Median Supertrend, FDI-Adaptive Supertrend, Hyperbolic Tangent Volatility Stop, Dema AFR, and Normalized KAMA Oscillator to generate long or short si
A template version of a test strategy used by a browser automation project. Placeholder tokens stand in for the input defaults and are filled in before the script is injected into TradingView, so it is not usable as published. The logic goes long on a 14 over
This strategy trades EMA crossovers on the price chart. It enters long when the fast EMA crosses above the slow EMA and price is above a longer trend EMA, and enters short on the opposite cross below that filter. Entries are allowed only in a morning session o
This script combines five distinct RSI pattern setups with volume ratio filters to generate trading signals. It identifies RSI double bottoms, hooks, bullish divergences, oversold bounces, and midline breakouts to form long conditions, alongside overbought dow
An indicator in a separate pane that plots Commitment of Traders financial report metrics for the chart symbol, including open interest and dealer, asset manager, leveraged funds and other reportable positions. Settings pick the metric, the direction, a select
A price-chart overlay that marks possible reversals when RSI is stretched and the candle shows rejection. A long triangle appears below the bar when RSI is below the oversold level and the candle has a long lower shadow or is a bullish engulfing bar. A short t
Swing Trader Strategy is a long-only strategy that buys when the MACD line crosses above its signal line during a chosen date range. It exits when the close falls below a trailing stop measured from the highest close since entry, or below a fixed percentage st
The Fibonacci Weighted Moving Average calculates a trend-following line on the price chart using Fibonacci sequence numbers as weights. Newer data points receive larger Fibonacci weights to increase responsiveness compared to standard simple moving averages. I
This indicator scans a pasted list of symbols for ICT fair value gaps and lists long and short matches in an on-chart table. It draws gap boxes on the price chart and can close them partially when price fills part of the gap. The user chooses among six scannin
Forven S01512 — Monday Drift is a calendar-based long trading strategy designed to exploit time-based recurring market patterns. It tracks UTC calendar days and hours to enter a long position at a specified day and hour, holding it for a fixed duration until a
This indicator plots fast and slow moving averages using either EMA or SMA directly on the main chart to identify trend direction and crossovers. It calculates an ATR-based trailing stop line derived from the highest high minus a multiplied ATR value over a co
This overlay strategy targets one-minute ES futures and plots volume-weighted moving-average bands from the open, scaled by a standard-deviation multiple, plus a slower band from ten-minute opens. A higher-timeframe exponential moving average can filter trades
This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
This tutorial strategy demonstrates lower-timeframe multi-timeframe functionality in Pine Script using request.security_lower_tf. It evaluates synthetic lower-timeframe 1-minute close prices within each chart bar to calculate the intra-bar price range percenta
This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad
This indicator plots Price Headley's Acceleration Bands on the price chart. It builds a middle line as a simple moving average of close, plus upper and lower bands from simple moving averages of highs and lows widened by a factor times the bar's high-low range
This overlay indicator draws horizontal liquidation lines for HYPE from a baked-in snapshot of Hyperliquid long and short positions. It plots the ten closest long liquidation prices in red and amber and the ten closest short prices in green and cyan, with the
BTC MACD Basic Tests implements a Pine Script unit-testing framework designed to validate components of a long-only Bitcoin MACD trading system. It constructs structured test cases to evaluate mock functions for MACD crossover calculations, volume threshold ch
Trading Sessions is an overlay indicator that highlights major market trading sessions such as Tokyo, London, and New York directly on the price chart. It draws customizable session boxes along with optional open and close price lines, average session prices,
Bgcolor Example is a minimal demonstration indicator written in Pine Script v6 that visualises bar polarity across the price chart. It checks whether the current close is lower than the open and dynamically tints the chart background red for bearish bars or gr
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 calculates and plots Acceleration Bands directly on the main price chart. It computes simple moving averages of high, low, and close prices using circular buffers. The middle line displays the close moving average, while upper and lower envelope
The Daily Floor Pivots indicator calculates standard daily pivot points alongside support and resistance levels up to five tiers. In addition to standard pivot lines, it projects Fibonacci Golden Zone channels between adjacent pivot levels such as PP to R1 or
Natal & Transit Planetary Aspect Table displays an on-screen table comparing natal planetary positions with live or historical transit positions based on financial astrology principles. It calculates positions using geocentric or heliocentric coordinates and h
This indicator fetches and plots weekly Commitment of Traders (COT) net position data in a separate pane using TradingView's official COT library. It displays positioning breakdowns for selected futures markets under either Legacy or Financial (TFF) reporting
This indicator maps a composite macro risk score onto Vietnamese indices and sectors in a separate pane. It combines liquidity stress, curve shape, the international yield spread, and the ten-year versus policy-rate spread, then groups regimes with hysteresis.
The Zen ABR Range Bands indicator calculates an 8-bar average range from high-low differences and an exponential moving average of close prices. It plots the EMA on the price chart along with optional bands at multiples of the ABR (1x, 2x, 3x, 4x) centered on
This indicator plots the instrument close in a separate pane. The source imports a user library as Lib but never calls it, so the import does not change the plotted series. There are no inputs, alerts, or trade signals, and it does not define entries, exits, s
This indicator builds a global liquidity composite in a separate pane. It requests monthly M2 series for the United States, euro area, China and Japan, normalizes each against a simple moving average, and combines them with user weights. Settings choose whethe
This strategy plots a comparative relative strength line against a benchmark symbol in a separate pane. It calculates price and volume simple moving averages alongside a multi-period highest high. Long trades enter using full equity when price exceeds its movi
This indicator demonstrates a library import. It imports a library named mylib under the alias lib, calls the function add with the constants one and two, and plots the returned value. It does not read price, volume, or time, and it does not produce trading si
This indicator combines RSI, Awesome Oscillator (AO), and Stochastic readings to calculate divergence and momentum signals. It identifies regular and hidden divergences while analyzing price pivots, momentum thresholds, and AO filters. The script draws in a se
This indicator detects Smart Money Technique (SMT) intermarket divergences across multiple timeframes, ranging from one minute to one week. It compares the current chart symbol against up to two benchmark symbols to identify non-confirmations in swing highs an
This strategy plots Donchian channels, trailing stops, and profit targets directly on the price chart. It enters breakout trades using a 55-bar Donchian channel and sizes positions according to an ATR-based risk percentage per unit. The system adds units as pr
Alighten Pattern A is an overlay indicator that calculates market structure pivots and identifies price patterns directly on the main price chart. It plots a ZigZag line to track price highs and lows, rendering horizontal dashed levels and directional signal m
Index Intraday Analyst overlays CBOE cash indices such as SPX, NDX, RUT, and DJX. It plots a multi-EMA ribbon, a session-anchored TWAP with standard-deviation bands, and session levels such as prior-day high, low, and close, the opening range, and the high and
Chart Patterns is a Pine Script v6 library designed to scan for and render technical chart patterns directly on the price chart. It defines custom user-defined types to configure scanning parameters, such as Zigzag pivot offsets, error ratios, flat ratios, and
This indicator detects Change in State of Delivery levels on the price chart. It tracks swing highs and lows, looks for a swing sweep, collects the delivery candles between those swings, and marks that sequence's opening price. A level is drawn only after a cl
This indicator identifies and visualizes key support and resistance heatmap zones directly on the price chart. Using closed one-hour price data, it evaluates multi-scale pivots, liquidity clusters, relative volume, and round-number resonances to score structur
This strategy generates long trade entries based on an exponential moving average crossover on the main price chart. It calculates two customizable EMAs and executes a buy order when the shorter moving average crosses above the longer moving average. Rather th
Adaptive Fair Value Cloud calculates a volatility-adaptive fair value channel around a selectable centerline, such as KAMA, EMA, linear regression, or VWMA. It blends ATR and mean deviation with volatility percentiles and trend sensors, including ADX, Efficien
Nexural OrderFlow Matrix is an order flow visualization tool that plots a detailed heatmap table and stacked imbalance bars in a separate pane. It calculates volume metrics using lower timeframe volume delta data, displaying per-candle metrics such as Delta, D
Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.
Learn to Use Pine Scripts
Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.