This indicator finds swing highs and swing lows and draws them as horizontal lines on the price chart. Bearish-colored lines mark swing highs and bullish-colored lines mark swing lows, and each line stops extending once price breaks that level. Sweep mode flag
This indicator estimates a risk score and suggested position size from capital, a user win rate, a profit ratio, and historical price range. It tracks each year's high and low, converts that range into a drawdown percentage, and plots a weighted average of the
Fractal Adaptive Moving Average (FRAMA) calculates an adaptive moving average line by determining the optimal smoothing factor alpha via fractal dimension analysis of price data. It applies the period parameter to the selected source and plots the resulting li
Signal Forge is a multi-filtered trend-following indicator displayed on the main price chart. It calculates an ATR trailing stop line alongside a long-term EMA baseline to identify market direction. Raw signal flips are filtered through ADX chop detection, a v
SMC Setup Check is a diagnostic utility indicator designed to verify chart-link bindings between the chart and the SMC Long-Dip Suite. It inspects external source inputs including schema version, state code, armed status, quality score, trigger, and invalidati
This strategy detects momentum turns by subtracting consecutive values of an input source. It defines src as a user-configurable source defaulting to hl2, the average of high and low prices. Momentum is calculated as the current src minus src one bar ago, and
This indicator requests the quarterly total revenue figure for the chart symbol through request.financial and plots that series in a separate pane. It uses the symbol ticker and the TOTAL_REVENUE field on a fiscal-quarter timeframe. There are no user inputs, n
An overlay indicator that marks confirmed swing pivots and builds ATR-width structure zones around them. It adds CUSUM change-point markers, relative volume, lower-timeframe delta pressure, compression and trend-efficiency readings, then labels how each zone t
DEPV2 Debug S12 is a multi-symbol research indicator designed to analyze market signals across up to 20 configurable cryptocurrency pairs. It evaluates conditions using four distinct categories: trend, momentum, volatility, and volume. Users can configure sing
This indicator overlays liquidity heatmaps, footprint bars, and imbalance detections on the price chart. It calculates liquidity zones using sweep percentages and wick weights, displays volume candle deltas, and detects order imbalances based on volume ratios.
A separate-pane oscillator that combines a Z-score of price with a Z-score of volatility into one score, then applies bands from a band length with separate positive and negative multipliers. A signal type setting chooses how it is read, and optional signs mar
Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1.1 is a tick-friendly build. It is an indicator only.
Tn Adaptive Risk Regime v6 is a strategy that switches between mean reversion and breakout modes based on volatility regime. It compares ATR to its SMA over a lookback to classify high or low volatility. Low volatility triggers mean reversion by fading range e
A strategy that places stop entry orders around price gaps and recent candles. It buys on a stop above the previous high after an upward gap, sells on a stop below the previous low after a downward gap, and adds same-direction entries when the open position's
This indicator plots market structure on the price chart by identifying swing highs and lows. It connects these points with lines to visualize trend direction and detect Break of Structure (BOS) when price breaks a prior swing in the current trend. Change of C
This indicator calculates the Bollinger Bands %B oscillator, measuring the position of price relative to the upper and lower Bollinger Bands. A value of 1 represents the upper band, 0 represents the lower band, and 0.5 indicates the middle band. Standard refer
This indicator applies the exponential transformation y equals e to the power x to a user selected input series. The function computes the transformed values using a runtime validated implementation that errors on non numeric data. The result series plots in a
This strategy trades Donchian channel breakouts and can go long or short. It sizes the first unit from a percent of equity and an ATR stop, then adds smaller fractional units only when RSI confirms momentum. It exits with an ATR initial stop, a chandelier trai
FlowBias calculates a composite market momentum metric using Chaikin Money Flow, volume delta, Stochastic, and the Ultimate Oscillator. Plotted in a separate pane, it identifies trend pullbacks and market exhaustion reversals through visual signals and labels.
Aivance Opening Range & Vol Factor identifies the first candle of each new trading day, plotting its high, low, open, and close levels with colored boxes and lines directly on the chart. It calculates a Volume Factor percentage by comparing the opening bar vol
This strategy combines a standard Moving Average Convergence Divergence (MACD) crossover signal with an exponential moving average (EMA) trend filter. Long positions are entered when the MACD crosses above its signal line while price is above the trend EMA. Sh
This overlay indicator detects bullish and bearish fair value gaps on the price chart and stores the zones internally without drawing boxes. It plots a fast and slow EMA and can require price to agree with that trend. A signal is intended after a retest of a s
Options Max Pain Calculator [BackQuant] estimates options max pain theory levels, pin risk zones, and market maker gamma exposure directly on the price chart. It models strike prices, put/call volume ratios, implied volatility, and dealer hedging parameters to
The Garman-Klass Volatility indicator measures market volatility using open, high, low, and close prices on a logarithmic scale. By accounting for intraday high-low range alongside opening and closing prices, it offers a more detailed volatility measure than s
This indicator calculates an ATR-based trailing stop and combines it with a 200-period baseline EMA to identify trend reversals on closed candles. To eliminate false breakouts, it filters signals through an ADX chop detector, a relative volume threshold, and a
The SMC Structure Context indicator overlays visual elements on the price chart to represent the current market structure state. It displays a state label indicating bullish, bearish, or neutral conditions, along with markers for change of character (CHoCH) an
This strategy computes two simple moving averages on a selectable price source and plots them on the price chart. The source defaults to close but can be overridden at runtime via the input panel, for example to high. It signals long entries on fast SMA crossi
P_err_request_security is a minimal Pine Script v6 test fixture designed to evaluate multi-timeframe security requests. It retrieves the daily closing price of the current ticker symbol using request.security and plots the resulting value in a separate indicat
A strategy for MNQ futures that trades with the trend only when a regime score allows it. The score blends higher-timeframe EMA bias, ADX, choppiness, efficiency ratio and persistence, with separate enter and hold thresholds. Four switchable triggers can open
This multi-symbol indicator monitors up to twenty cryptocurrency pairs and evaluates signals across four core dimensions: trend, momentum, volatility, and volume. It allows traders to configure signal generation through individual dimensions, simultaneous mult
Symmetric Attraction is an indicator that plots mirrored candles on the price chart by reflecting OHLC data around a regression basis line. The basis is computed using linear regression on the selected source with an optional logarithmic transformation. It als
A separate-pane momentum tool built on a smoothed rate of change with a signal line and standard deviation bands. It also measures acceleration of that momentum with its own moving average and smoothing length. Display options include classic or Heikin Ashi va
Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1.2 is a tick-friendly build. It is an indicator only.
A strategy that switches logic by volatility regime, measured as the percentile rank of ATR as a percent of price over 200 bars. In low volatility it buys RSI below 30 and sells above 70. In the middle regime it follows a 20 and 50 EMA crossover, with longs al
A strategy built on Keltner Channels. The middle line is a simple or exponential moving average and the bands sit a multiple of the average true range, true range or high-low range away. When the source crosses above the upper band it places a long stop order
The Mean Reversion Strategy Template calculates a baseline mean using SMA, EMA, or VWAP alongside upper and lower deviation bands based on standard deviation, ATR, or percentage offsets. It generates long and short entries when price touches, bounces from, or
This overlay indicator calculates Bollinger Bands from a rolling mean and standard deviation and Keltner Channels from a simple moving average plus ATR-smoothed true range. A dedicated function returns whether a squeeze is on, the bandwidth, and the band and c
Exponential Transformation (EXP) applies a natural exponential function to a selected price or indicator series. Calculated using Pine Script's built-in exponential math function, it transforms the input source into an exponentially scaled series plotted in a
This price-chart strategy enters long when close breaks the prior Donchian high and short when it breaks the prior low, after a volume check and an optional moving-average regime filter. The first unit risks a percent of price against an ATR stop. Later units
This daily-timeframe indicator provides futures market context by evaluating open interest and term structure without altering chart price scales. It requests front-month and next-month futures contracts to measure spread relationships like contango or backwar
This overlay indicator plots Smart Money Concepts (SMC) market structure features directly on the price chart. It calculates swing highs and lows using pivot points to detect Break of Structure (BOS) lines and Change of Character (CHOCH) labels. Additional mod
This indicator plots exponential moving averages of close from the daily, weekly, and monthly timeframes on the price chart. Each series uses the same user-set length and is requested with a one-bar historical offset. Toggles show or hide the daily, weekly, an
Prime Numbers is a mathematical indicator that performs prime number calculations directly on the chart. It provides modes for prime factorization, listing prime numbers, and finding specific prime numbers using either the security's close price or custom inte
This indicator calculates High-Low Volatility using the Parkinson estimator based on high and low prices. It smooths the raw estimator with a running moving average and optionally annualizes the result using a specified number of periods per year. The resultin
Simple Trend Painter is an overlay indicator that colors chart candles based on their position relative to a simple moving average. Candles are painted green when closing above the moving average and red when closing below it. The script plots the SMA line on
SMC Utils is a Pine Script library providing helper functions for Smart Money Concepts indicators and strategies. It features functions for value range checks, range overlap determination, lower-timeframe selection, formatting price levels and trend states, dy
This strategy is a validation probe that opens one oversized long on the first flat bar at or after bar index 50 and never issues a close or exit. It sets required margin to 20 percent, which corresponds to 5x leverage, and sizes quantity from a five-million n
This minimal strategy demonstrates Pine Script risk management functions by enforcing a maximum drawdown limit of ten percent of equity. The script enters a long position whenever a candle closes higher than its opening price. It plots the current position siz
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.