This indicator detects US stock ex-dividend dates using request.dividends() on the chart symbol. It plots purple diamonds marking past ex-dates and displays colored glows around buy windows: yellow when the window is open but quality gates fail, green when all
This strategy plots on the price chart and stores recent closes in a float array during the first sixty bars. It enters a long position when the newest stored close is above the close ten slots earlier and the nine-period EMA crosses above the twenty-one-perio
An indicator in a separate pane that shows two gauge-style speedometers drawn with lines. The left gauge maps a 14 period RSI to a needle from 0 to 100. The right gauge converts a 20 period price z-score, clamped to a chosen limit, to the same scale. Layout in
This strategy combines Exponential Moving Averages (10, 55, and 200 EMAs) with a Stochastic Oscillator to execute trades. It enters long positions when the Stochastic K line crosses above D in oversold territory while price is above the 200 EMA. Short entries
The EMA Ribbon strategy plots six exponential moving averages (periods 8, 13, 21, 34, 55, 89) on the price chart to form a visual ribbon. It detects trend direction using full stack alignment, partial alignment (at least 4 of 6 consecutive pairs), or fast EMA
A Pine v5 strategy that trades a breakout from a narrow range bar. A bar is narrow when its range is below a set fraction of the average range. Its high and low are stored and drawn as levels, and a close above the high opens a long while a close below the low
A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in about fifty-five days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced o
This strategy tracks the opening 1-minute range during regular market hours and trades the subsequent breakout on the price chart. It locks the high and low of the 09:30 to 09:31 session and plots both levels as trigger lines. A long position is taken if price
Target Trend is a trend-following overlay indicator that determines market direction using ATR-adjusted simple moving average bounds. It calculates upper and lower channel boundaries based on SMA calculations of high and low prices offset by a smoothed ATR val
A chart-overlay indicator that detects pivot highs and lows and draws extended trendlines through the latest pairs, keeping only lines steeper than a minimum angle and limiting the total number. Resistance and support pivots can be labelled R and S. A table su
An indicator on the price chart that builds smoothed average prices from a Heikin Ashi style open, high, low and close, then compares a smoothed close with a smoothed open. Green or red shading marks which is higher, and a buy or sell triangle appears when the
An experimental pane indicator that simulates a daily dollar-cost-averaging buy of a fixed BTC size at 00:45 exchange time inside a start and end date window. When price is below the average cost, it simulates a short hedge sized to match the long. It tracks a
This indicator calculates and plots eight separate moving averages directly on the price chart. It provides seven Simple Moving Averages with default periods of 5, 10, 20, 30, 60, 120, and 200, alongside one 20-period Exponential Moving Average. Each moving av
Higher Close and Lower Close is an overlay indicator that highlights simple single-candle price action signals. It monitors whether the current bar closes above the preceding bar's high or below the preceding bar's low. When a close exceeds the previous high,
This indicator constructs a grid of upper and lower price levels centered around a Simple Moving Average baseline. It calculates ten upper bands and ten lower bands spaced evenly at step multipliers defined by the grid gap percentage. These bands are plotted d
A separate-pane version of the Directional Movement Index. It plots the ADX line together with the plus and minus directional indicator lines, using the same Wilder style smoothing as the standard tool. The area between the plus and minus lines is filled with
This multi-timeframe indicator calculates and draws key technical levels directly on the main price chart. It projects pivot points, support and resistance lines, and previous high/low boundaries across three configurable timeframes such as daily, weekly, and
Trend EMA + RSI is a trend-following strategy that generates trading signals using three exponential moving averages and RSI filter conditions. Long trades execute when a fast EMA crosses above a slow EMA while remaining above a long-term baseline EMA on a bul
This script provides helper functions to calculate linear forecasts based on series data, mirroring standard spreadsheet forecast functionality. It converts price series into arrays over specified sample lengths and computes the predicted future value using si
The ESH2023 5M strategy is a Pine Script v5 indicator for E-mini S&P 500 futures trading on the 5-minute chart. It calculates a Stochastic oscillator from Ichimoku cloud high/low averages using inputs for K period, D period, and smoothing. The script signals l
This strategy generates trading signals on the 5-minute price chart using Williams Fractals for trend reversals, combined with EMA fast and slow trend filters and optional RSI confirmation. Long entries trigger on bullish fractals aligned with rising EMA and R
This indicator calculates a normalized percentage oscillator based on the distance between the closing price and a 10-period simple moving average. It displays the oscillator line alongside a dotted zero reference line in a separate indicator pane. The space b
This indicator plots a MACD oscillator in a separate pane. It calculates the source as the average of the previous ten open prices, then subtracts a slow moving average from a fast moving average. A signal line and a histogram follow. Fast, slow, and signal le
This indicator calculates and plots standard Bollinger Bands directly on the price chart. It computes a central basis line using a simple moving average of the selected price source over a user-defined period. Upper and lower bands are constructed by adding an
Zen ATH Bands calculates the all-time high or current price of an asset and projects horizontal reference lines representing percentage pullback levels. It draws up to seven user-defined drawdown thresholds below the baseline, complete with custom price and pe
Stochtaker combines a Stochastic oscillator and Bollinger Band Width Percentile (BBWP) into a single separate pane indicator. It calculates BBWP across a configurable lookback period and length, displaying volatility conditions using a dynamic color spectrum o
Divergenced H002 is an automated trading strategy designed to identify divergence setups using transitions in the Squeeze Momentum Indicator combined with Curie moving average closing lines for exit conditions. It detects bearish divergence when momentum weake
This strategy overlays volume-weighted average price deviation bands and an exponential moving average trend filter directly on the price chart. It enters long positions during an uptrend when price recovers above the lower band, and enters short positions in
This strategy simulates a dollar-cost averaging investment approach directly on the price chart. It executes a long entry with a fixed cash amount on every historical bar that falls within a user-defined date window. All accumulated open positions are closed s
This strategy executes breakout trades based on price channels and moving average trend alignment. It enters long positions when the closing price breaks above its 20-period high while trading above a 130-period simple moving average. Short positions enter whe
Calculates and plots support and resistance zones based on candle wick rejections and liquidity sweeps directly on the price chart. The indicator scans historical price action using a configurable lookback period and wick threshold percentage, merging close le
Mean Price is an indicator that calculates a custom weighted average price for each bar using open, high, low, and close values. The calculation dynamically adjusts its weighting depending on whether the bar closes higher, lower, or equal to its open price. An
This strategy detects Bollinger Band squeezes by measuring band width against a threshold. It waits for a confirmed breakout in either direction when bands expand, using optional volume confirmation. Long and short signals trigger on breakout after squeeze. Po
Noob's MTF EMA Clouds computes and overlays multi-timeframe Exponential Moving Average (EMA) pairs across up to five user-selected timeframes directly on the price chart. It calculates fast and slow EMAs to render shaded clouds that visualize trend direction a
This strategy executes mean-reversion trades based on RSI overbought and oversold levels directly on the price chart. It generates long signals when the RSI crosses back above the oversold boundary and short signals when it crosses below the overbought boundar
Snagprofit WMA MA calculates and plots weighted moving averages across multiple timeframes (1-minute, 5-minute, 15-minute, and 1-hour) alongside a chart-period simple moving average. It evaluates directional alignment between these moving averages and checks f
P-Erik Tarama is a multi-symbol scanner indicator that displays technical screening results directly on the price chart. It evaluates assets against a composite bullish condition combining price position relative to the Ichimoku conversion line and weekly base
This indicator plots five Fibonacci-based exponential moving averages with periods 3, 13, 34, 55, and 144 directly on the price chart. Built around modified Guppy Multiple Moving Average (GMMA) concepts and Granville's rules, it tracks moving average alignment
This indicator tracks consecutive bullish and bearish candles on the main price chart. It counts consecutive closes relative to opens and plots a green triangle below the bar or a red triangle above the bar once a streak reaches the chosen target length on a c
This indicator calculates volume-weighted price movement over a set period and normalizes it using standard deviation. It offers optional Hull Moving Average (HMA) smoothing and measures order flow velocity through customizable moving averages. Displayed in a
BTMM Session Analysis is an indicator that draws session background boxes on the price chart for Asian, London and NY sessions. It tracks Asian session range with midpoint, extension and statistics display. The script detects liquidity sweep levels, stop hunts
A Pine Script library providing helper functions to evaluate local trend conditions across a user-defined lookback period. It exports functions that check if the current candle's low price is strictly higher or lower than all preceding lows within the specifie
Short Term Alpha Indicator calculates a weighted alpha from price change multiplied by volume, then derives EMAs at fast, medium, and slow lengths. It computes ROC values for the EMAs and applies percentile rank functions to identify deviations. These deviatio
XAUUSD Strategy V4.16 - Independent Score is a multi-indicator trading system designed for gold. It evaluates market bias using triple Exponential Moving Averages (20, 50, 200), the Stochastic oscillator, and RSI, filtered by Fibonacci zones and optional M15 w
Super 8 is a trend-following and momentum strategy designed for 30-minute cryptocurrency charts. It evaluates entries using dual EMAs, ADX strength filtering, Parabolic SAR direction, MACD or Z-VWAP calculations, and Bollinger Band width expansion alongside vo
SessionInfo is a Pine Script utility library providing functions for session-specific state tracking and calculations. It exports routines to determine whether the current intraday bar falls within a specified session, before the session begins, or after it co
Pinbar Strategy identifies pinbar candlestick patterns (hammers and shooting stars) via the imported ZenLibrary and trades reversals or continuations on confirmed bars. Entries are filtered by an optional exponential moving average and candle range thresholds
Plots higher-timeframe candle overlays and pivot point levels directly onto the main price chart. It renders higher-timeframe open, high, low, and close levels as custom boxes with optional wicks, alongside traditional pivot points, support and resistance leve
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.