A strategy that trades from a linear regression channel combined with three moving averages (base, slow and fast). It can take long and short deals, requires a minimum channel width, and sizes orders either as a share of equity or a fixed quantity. Exits scale
This indicator calculates a triple-smoothed Relative Strength Index oscillator and displays it in a separate pane. It evaluates momentum by applying the RSI calculation iteratively across three stages using a user-defined period. The script plots the resulting
This indicator calculates the MACD oscillator from a configurable source with fast and slow lengths, then plots the histogram, MACD line, and signal line in a separate pane. It detects regular bullish divergences (price lower lows with oscillator higher lows),
This Pine Script v5 library provides an exported function to calculate moving averages directly over float arrays. Users can supply a sample array, set the smoothing length, choose whether to omit initial values prior to reaching the lookback window, and speci
The NQU2023-10M V1 strategy calculates 3-period simple moving averages of high and low prices alongside 3-bar price action patterns to detect short-term swings and trend reversals. It enters long or short trades when price action confirms a trend change condit
Adaptive Price Channel Strategy combines Donchian-style high/low channels with Average Directional Index (ADX) and ATR-based volatility offsets. It evaluates trend strength and directional movement to trigger entries when price crosses ATR-adjusted upper or lo
This indicator calculates a 14-period relative strength index and detects when that oscillator crosses above 50. It defines an alert condition whose message includes the current RSI value through a plot placeholder. The RSI series is plotted with display set t
This indicator draws trendlines between confirmed swing points on the price chart. It finds pivot highs and pivot lows with a fixed ten-bar lookback on each side, then connects successive highs with red lines and successive lows with green lines. There are no
The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar
Choppiness Index is a volatility and trend indicator that measures whether a market is consolidating or trending directionally. It calculates the ratio of the true range sum over a specified period to the highest and lowest price range, scaled logarithmically
This strategy executes trend-following trades directly on the price chart based on consecutive expanding candle bodies filtered by the 13-period exponential moving average. When price is above the EMA13, it enters long positions after three consecutive bullish
This indicator calculates and plots Relative Strength Index (RSI) values across four distinct user-defined timeframes within a separate pane. Each higher-timeframe RSI line is rendered with unique colors and line thicknesses, displayed alongside customizable u
This indicator maps multi-timeframe candle range patterns based on specific time-of-day sessions. It converts user-specified SAST starting hours into UTC to identify initial 4-hour range candles, plotting their high, low, and median levels across the chart. Th
This strategy combines nine technical indicators including RSI, SuperTrend, MACD, Triple EMA, Bollinger Bands, Ichimoku, HMA, Swing Failure Pattern, and Z-Score. Each indicator votes on long or short direction, with a Dynamic mode that weights votes based on m
This indicator plots a standard MACD oscillator in a separate pane. It calculates a 12-period EMA minus a 26-period EMA, smooths that difference with a 9-period EMA signal line, and draws both series plus a zero line. A green upward triangle marks a MACD cross
Calculates a composite market internals oscillator by averaging the 50-period Relative Strength Index (RSI) across four major U.S. index ETFs: SPY, DIA, QQQ, and IWM. It plots this composite oscillator against a 50 midline in a separate pane, dynamically color
This indicator combines a WaveTrend-style oscillator with Squeeze Momentum and Supertrend tracking in a separate pane. It calculates channel moving averages to generate oscillator lines, plotting customizable overbought and oversold levels alongside crossover
EzSMC is an overlay indicator designed for Smart Money Concepts analysis. It identifies and plots bullish and bearish order blocks directly on the price chart, with optional multi-timeframe order block capabilities. Traders can categorize order blocks into int
This Pine Script strategy for XAUUSD combines Exponential Moving Averages (20, 50, and 200), Stochastic, RSI, and ATR indicators to generate trading signals. It identifies potential buy and sell opportunities using trend alignment, M15 overbought or oversold c
This strategy combines Bollinger Bands and the Stochastic Oscillator to identify oversold and overbought mean-reversion setups. It enters long when the close falls below the lower Bollinger Band with Stochastic %K under 20. It enters short when the close breac
This indicator identifies indecision doji candles and highlights potential market reversals directly on the price chart. It calculates the candle body percentage relative to total range and compares the upper and lower wick proportions. When a valid doji coinc
A strategy that merges two signal engines: a JAT+BSM engine and a POI scalp engine built on pattern and composite scoring. Either or both can be enabled, and signals combine as either-fires, both-must-agree, or one engine only. Risk uses either an ATR based st
An overlay version of the WaveTrend oscillator that hides the oscillator lines by default and instead prints buy and sell labels on the price chart. Labels show time, price, volume, previous volume and percentage changes. Channel and average lengths adjust aut
This strategy generates trend-following trade signals by combining the Supertrend indicator with the Directional Movement Index (DMI). It enters long when the closing price crosses above the Supertrend line while +DI exceeds -DI and the ADX value is above 18.
This indicator applies the Goertzel algorithm to price in a separate pane, measuring one frequency component set by a period length and a measurement block length. A training percentage and shift settings align the fitted wave with recent data, and the wave ex
This strategy trades breakouts using VAMA Bands on the price chart. It supports long and short entries with filters from VAMA, MACD, DI, ADX, OBV and optional entry limits. Positions exit on opposite trend, force close periods or flip signals. Main settings ad
Range Scalper is a price-chart overlay indicator. Archived notes describe an ATR-based dynamic range threshold meant to adapt range detection to volatility, plus breakout shape markers. The file is labeled simplified for the archive and shows no parsed inputs.
This combination indicator plots a Volume Profile or Market Profile histogram directly on the main price chart alongside MACD calculations. It measures volume or time distribution across custom price rows, highlighting key market structure levels such as the P
An indicator that looks for regular or hidden divergences between price pivots and up to eleven oscillators and volume tools, including MACD, RSI, Stochastic, CCI, momentum, OBV, Chaikin Money Flow and MFI. It draws divergence lines and labels on the price cha
This indicator calculates a normalized volatility oscillator plotted in a separate pane. It measures the distance between the closing price and a simple moving average, standardized by a scaled standard deviation band. The script plots the resulting ratio alon
This mean-reversion strategy combines multi-timeframe exponential moving averages, Bollinger Bands, and the Relative Strength Index. It generates long and optional short trade signals when price interacts with the Bollinger Bands alongside RSI threshold confir
FunctionBestFitFrequency is a Pine Script v5 library that smooths a float array with a rolling average and searches a frequency range for the moving-average length whose residual signs are closest to evenly split. The array function can omit early values short
This indicator plots smoothed adaptive moving averages on the price chart using T3, AMA, or Kaufman methods. It accepts various sources including standard and Heikin-Ashi versions. Main settings select the calculation type, input source, period length, and smo
Calculates multi-period logarithmic regression trend channels and deviation bands across up to twenty selectable lookback lengths directly on the price chart. It evaluates channel slopes and Pearson's correlation coefficient to detect market trends and generat
This indicator demonstrates Pine Script bar-state handling on the price chart. It creates one persistent label on the first bar and, when the current bar is the last bar, moves that label to the bar high and sets its text to the high formatted to the symbol mi
The Channel indicator identifies recent pivot highs and pivot lows using fixed left and right bar lengths. It connects the two most recent pivot highs and two most recent pivot lows with extended lines to project upper and lower boundaries directly on the pric
This indicator plots the previous day's high, low and midpoint and the previous week's high, low and midpoint directly on the price chart. It also marks New York, London and Asia sessions, optionally filling each session range and showing that session's maximu
This indicator plots the Commodity Channel Index in a separate pane. It measures how far the selected source, defaulting to the average of high, low, and close, sits from its simple moving average, scaled by mean deviation. Dashed bands mark plus and minus 100
Ersinator A002 is a strategy that combines moving average and KDJ momentum calculations to generate trade signals directly on the price chart. It features built-in alert formatting designed for integration with the Zignaly crypto trading platform. Position ris
RSI Signal is a multi-timeframe momentum indicator that plots buy and sell signals on the price chart based on Relative Strength Index crossovers. It retrieves RSI values across four configurable timeframes and evaluates trend alignment using the highest timef
The 3-Candle Time Pattern - Enhanced (Fixed) indicator plots high, low, and mid lines on the price chart to mark detected 3-candle patterns across multiple timeframes. It identifies range candles and potential manipulation within a user-defined 4-hour window c
This strategy plots the Alligator indicator with customizable Jaw, Teeth, and Lips lines on the price chart. It generates buy and sell signals when the close price moves beyond the Lips line by a minimum gap percentage. The strategy includes optional SMA and V
This indicator plots five Exponential Moving Averages (EMA 3, 13, 34, 55, and 144) on the price chart to determine market trend structure. It identifies entry confluence signals by detecting when an EMA 3 and 13 crossover coincides with a MACD crossover within
CSW MTF Sentiment Line evaluates market sentiment across five customizable timeframes on the price chart. Traded assets can be measured using RSI, volatility (RSI of price standard deviation), or volume (RSI of volume moving average), with values normalized on
This indicator overlays a dynamic trend ribbon or cloud on the price chart to visualize market direction and strength. It generates long and short signals based on selected strategy modes such as Default, Scalping, Intraday or Swing, using adjustable period, s
Plots the classic Ichimoku Kinko Hyo system directly on the price chart. It calculates the Tenkan-Sen, Kijun-Sen, Senkou Span A, Senkou Span B, and Chikou Span based on midpoints of highest highs and lowest lows over user-defined lookback periods. The Kumo clo
This strategy executes confirmation and scalp trade setups on gold using a combination of Stochastic, RSI, and triple exponential moving averages. Signals evaluate trend direction, Fibonacci pullback zones, and candlestick rejection wicks, with optional higher
CTC BB Hedge Strategy calculates the Pearson correlation coefficient between the close prices of two symbols to determine market alignment. It applies Bollinger Bands to the primary symbol for mean-reversion signals while optionally filtering with a moving ave
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.