A minimal boilerplate script written in Pine Script v6 for creating overlay indicators directly on the main price chart. It serves as a foundational starter file generated by the PineScript Agents development environment, designed to be populated with custom t
Calculates the Archer Moving Averages Trends (AMAT) indicator by comparing fast and slow Exponential Moving Averages (EMAs) alongside their slope directions. A bullish trend (+1) is identified when the fast EMA exceeds the slow EMA with both rising, while a be
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
This indicator plots a standard MACD oscillator in a separate pane. It calculates the MACD line, signal line, and histogram from the close using fixed lengths of 12, 26, and 9. It draws the MACD line in blue and the signal line in orange, plus a column histogr
This strategy identifies long entry opportunities based on short-term price pullbacks below a major trend filter. It enters long when three consecutive lower closes occur below the 200-period simple moving average, followed by the current bar closing back abov
This overlay indicator maps a fixed New York session from 8:00 AM to 4:00 PM into an on-chart noon curve. It draws a range box, a solid noon line, and dashed quarter lines at 10:00 AM and 2:00 PM. It plots AM high and low lines plus offset likely AM levels at
This indicator calculates Bollinger %B in a separate pane. It tracks a simple moving average and population-style variance of the selected source with a circular buffer and running sums, then places the source between the lower and upper bands scaled by the st
This indicator plots retrograde periods for up to eight planets in a separate pane. It fills historical retrograde spans without a box limit and draws boxes for future projections out to a configurable number of bars. A histogram shows how many planets are ret
This indicator builds a table of relative strength for up to six user-chosen symbols against a benchmark, defaulting to SPY. It measures strength over four lookback periods, can average the visible periods, and can add relative volume as current volume divided
This indicator detects price swing legs using a threshold-reversal algorithm scaled to a multiple of the prior day's average daily range (ADR). When a leg completes, it plots up to six customizable pullback percentage levels directly on the price chart. Users
This indicator draws a two-by-two table in the top-right of the price chart and plots the close. On the last bar it writes labels into the first row and merges those two cells into one. There are no inputs and no trading signals, entries, exits, or risk rules.
This price-chart strategy trades Donchian channel breakouts in the style of a Seykota trend system. It enters long or short when price touches the entry channel, using the bar high or low when intrabar mode is on, and can add units after further moves of a set
Trend Compass 15m is an intraday trend analysis overlay designed for 15-minute charts. It calculates a triple exponential moving average ribbon, higher-timeframe reference EMAs from 1H, 4H, and Daily periods, RSI and MACD divergences, On-Balance Volume trends,
Candle Pressure & Response (JMA) evaluates price action dynamics by calculating bidirectional candle pressure, upper and lower wick rejection fractions, body efficiency, and range expansion metrics relative to ATR. Each output series is smoothed using a Jurik
QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an
LuckyFX RBtrader strategy is a price-chart candle filter. It marks a bullish condition when the current candle is bullish, the previous candle is bearish, and optional checks pass: body size between a minimum and maximum share of the previous body, prior candl
LunarTick Trend plots a cloud between a fast and a slow moving average on the price chart. The user chooses SMA or EMA and the two lengths, and both averages can be requested from a selected timeframe. Bullish and bearish colors mark the cloud, and optional re
This indicator compares the price movement of the current chart symbol against up to forty user-specified tickers across a configurable correlation window. It identifies the highest-correlated asset and projects its scaled or rotated price path directly onto t
The Impulse MACD indicator calculates a modified Moving Average Convergence Divergence to measure price momentum in a smoother and less noisy way than traditional MACD. It uses special moving averages with default lengths of 34 for the fast period and 9 for th
Capital41 Fusion Oscillator v3 measures multi-condition market confluence in a separate pane with a smoothed composite score ranging from 0 to 100. It evaluates four criteria: EMA trend direction, RSI oversold or overbought turns, Williams %R thresholds, and A
This indicator identifies and plots institutional candlestick range theory (CRT) models directly on the price chart. It detects 2-candle rejection, 3-candle classic, inside bar consolidation, and outside bar patterns using configurable boxes and labels. Trader
TheStrat Suite is a multi-timeframe price action indicator implementing Rob Smith's TheStrat methodology. It calculates bar classifications for inside bars, hammers, shooters, failed 2s and outside bars across configurable timeframes. The indicator detects sig
The Quick Scan for Signal indicator calculates a custom market efficiency ratio by comparing net price displacement against total price movement over a specified lookback period or cumulatively from the chart start. It calculates statistical boundaries based o
This indicator plots a Stochastic oscillator in a separate pane. It compares the selected source with the high-low range over the %K length, then applies separate smoothing to the %K line and the %D signal line. Adjustable lower and upper bands default to 20 a
The AG TrendPullback Short strategy identifies short pullback opportunities in downtrending markets. It calculates EMA50 and EMA200 crossovers, RSI2 overbought signals above 90, and ADX trend strength above 20. When these align, it enters a short position size
This library supplies reusable drawing helpers rather than its own indicator output. It draws take-profit and stop-loss levels around an entry price, with translucent fills between those levels and the close, and it can remove those drawings. It also plots a t
This strategy trades crude oil futures only during the New York session from 09:00 to 14:30. It enters long when a fast EMA crosses above a slow EMA and short on the opposite cross, and only while that session is open. Each entry sets an ATR-based stop loss an
This indicator colors the chart background on intraday timeframes based on the current hour of the day. It applies a continuous 24-color daily gradient transitioning across dawn, day, dusk, and night to help traders visually track time progression. Users can f
This trend-following strategy plots on the price chart and identifies continuation trades during established trends. It calculates dual exponential moving averages alongside an average directional index filter. Entries trigger when price pulls back into the mo
This indicator calculates price midpoints derived from the highest high and lowest low over a customizable base period. It evaluates these range boundaries across the current chart timeframe as well as dynamically scaled 2x and 4x higher timeframes via multi-t
Squeeze Momentum Pro plots a TTM-style volatility squeeze in a separate pane. It compares Bollinger Bands with three Keltner Channel widths to mark wide, normal, and tight compression, and it flags the bar when a normal squeeze releases. A linear-regression mo
MirPapa_Handler_HTF is a Pine Script v6 utility library designed for handling higher timeframe conversions and multi-timeframe data retrieval. It converts standard timeframe strings into minute counts, computes the numerical ratio between higher and lower time
The Market Tail Risk Detector evaluates market fragility and compression to identify environments preceding volatile price moves. It calculates a composite tail risk score ranging from 0 to 100 based on realized volatility percentiles, volatility of volatility
Lakshmi Zones v1 is an indicator that plots demand and supply zones on the price chart. It calculates volume profile zones with user-defined bin counts and lookback periods, fair value gaps from the 4H timeframe, and equal highs and lows using tolerance percen
This Pine Script indicator calculates Z-Score based bands for grid trading using a user-selectable moving average. It computes the MA from chosen type, length and source then derives upper and lower bands offset by stddevs. Grid ranges are set by min and max w
This indicator monitors market-wide positioning across major cryptocurrency benchmarks and top altcoins. It calculates the Relative Strength Index and Z-scores across up to 19 assets, mapping them into quadrant zones to identify overbought or oversold crowding
The Average True Range indicator calculates volatility by averaging the true range over a user-defined length. It plots the ATR value as a line in a separate pane below the price chart. The length input sets the period for the calculation, defaulting to 14 bar
The script plots the Volume Weighted Average Price on the price chart. It calculates VWAP using a specified source such as hlc3 and an anchor period like Session, Week, Month or Quarter. The main settings control whether to hide the VWAP on daily or weekly tim
An indicator that detects cup and handle patterns from pivots, with inputs for rim similarity, handle retracement range, an invalidation retrace level and a target set as a multiple of cup depth. A Bayesian probability update using a Bollinger squeeze as evide
Draws daily pivot levels on the price chart: open, pivot point, value area high and low, support and resistance, and a dynamic VWAP, with labels showing prices. A swing-based Fibonacci confluence feature marks where fib levels line up with the zones. Settings
A low-turnover long-or-cash strategy on daily closes. It goes long when the close is above a 200-bar SMA by more than a percentage band, moves to cash when the close is below it by more than the band, and otherwise keeps the existing position. The band reduces
A separate-pane indicator that measures buying versus selling pressure from volume. Over a chosen lookback, default 20 bars, it sums volume on up candles and on down candles and plots the difference as a share of the total on a scale from minus 100 to plus 100
Expectancy Lab plots fast and slow exponential moving averages on the price chart to generate crossover signals. It simulates one trade at a time using an ATR-based stop loss and a risk-to-reward target multiplier. The script tracks historical trade outcomes t
SMC Context Overlay ingests context data inputs to render Smart Money Concepts elements directly on the price chart. It visualizes market structure events such as Break of Structure (BOS), Change of Character (CHOCH), support and resistance levels, as well as
A long-only strategy that builds a volatility envelope from an EMA centre and an ATR width using a custom type and a method. It enters long when the close crosses above the centre plus a multiple of the width. It exits when the close falls below the centre, or
This strategy probes limit order verification across four modes in a cycling pattern. It opens positions using resting limits, marketable limits, stop-limits, or exit limits with an offset. The script runs cycles to verify order behavior and plots probe values
An indicator that estimates per-bar delta from open, high, low, close and volume, scaling volume by where the close sits within the bar range. It rebuilds a session profile binned by price and draws it as teal and orange horizontal bars to the right of price,
DEPV2 B1 Seviyeler calculates and plots key high-timeframe price levels across weekly, monthly, and yearly periods. For each period, it tracks the current open, high, and low, along with the previous period's high, low, and close values. The indicator uses cus
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.