The Detrending Net Distance Ratio indicator computes the difference between current close and close prices at ten different lookback periods ranging from seven to three hundred sixty bars. It sums the positive differences to create a net value and sums their a
This strategy trades the DOT/BTC pair on a one-minute chart. It plots the VWAP of the close and two offset VWAP bands on the price chart. It opens a long when the open is above the upper band and a short when the open is below the lower band, then closes those
A multi-timeframe Dollar Cost Averaging (DCA) trading strategy that combines signals from three RSI indicators, three CCI indicators, and Bollinger Bands. It places up to five weighted scale-in safety orders to lower the average entry price. The script offers
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 strategy combines the Relative Strength Index with Bollinger Bands to generate mean-reversion entries. It plots the RSI oscillator and threshold lines in a separate pane, while calculating hidden Bollinger Bands and band width. Long entries trigger when R
This indicator calculates the Variance Ratio Test statistic to evaluate random walk behavior across multiple sampling periods. It computes log returns, base period variance over a specified lookback window, and scaled multi-period variances to determine test Z
This strategy calculates the WaveTrend oscillator using exponential moving averages of typical price and plots two signal lines alongside overbought and oversold thresholds in a separate pane. It enters long positions when the primary line crosses above the si
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
A minimal overlay indicator that calculates an RSI and marks extremes directly on the price chart. A white O appears above a bar when the RSI is above the overbought level, and a white X appears below a bar when it is below the oversold level. RSI length, over
This strategy sums the last len closing prices using a while loop then divides by len to obtain an average. It enters long when close exceeds the average and short when below. Positions close automatically on reversal. No stop loss is applied and entries occur
An indicator on the price chart that smooths a VWAP with a T3 moving average cascade and surrounds it with ATR-scaled volatility bands. The VWAP can reset each session, week or month. Optional bounce signals mark reactions from the outer bands in the direction
A counter-trend indicator that complements a trend-following sibling. It looks for fading trends in two ways: four-hour EMAs narrowing together followed by a counter-cross on one hour, or RSI divergence on four hours with a rejection candle. A signal offset ca
The ES Professional Fade strategy trades overnight price gaps during regular trading hours on intraday charts. It establishes an opening range and enters counter-trend positions when price fails near overnight extremes. Positions target the previous day's clos
Simple Short Term RSI is an unfinished Pine v4 learning strategy, marked as such by its author. It calculates a 2-period and a 14-period RSI and plots both in a separate pane. Its only trading rule is a long entry whenever the 2-period RSI is above 50, which d
This strategy implements Larry Connors' 2-period RSI mean-reversion algorithm overlaid on the price chart. It filters trades using a long-term Simple Moving Average (SMA), entering long positions when the price trades above the SMA and the short-term RSI drops
This strategy combines Relative Strength Index and Bollinger Bands for short-term signal generation. It enters long positions when the price crosses below the lower Bollinger Band while the RSI falls at or below the oversold threshold. Positions are scaled dow
This strategy trades opening gap fades on the DAX index during the European Xetra session. At the 09:00 CET market open, it measures the opening price against the previous close relative to an ATR threshold. If a gap exceeds the threshold, it fades the move by
This indicator fits a straight least-squares regression over a user-set lookback and wraps it in inner and outer channels built from residual standard deviation rather than raw price deviation. It reports the live z-score of price versus the fitted fair value
Grid Bot places a configurable number of long and short orders between a user-set grid top and bottom and draws those levels on the price chart. Direction can be longs, shorts, or both, with default or burst entry and an optional instant first fill. Exits use
A short-only strategy that sells when price pushes a set percentage above the upper Bollinger Band. The trigger can use the candle high or the close. After entry, it places a limit take profit a set percentage below the average entry price. Band length, multip
An indicator for four-hour charts that looks for a sharp drop followed by a slow, controlled recovery, treated as a rounded bottom, and the inverse for a rounded top. Window lengths, minimum percentage moves, a directional-bar ratio and a daily EMA direction f
This indicator generates intraday trading signals by combining dual-sigma standard deviation bands, Heikin Ashi candle vectors, and a four-bar confluence score. It triggers long and short signals during defined trading sessions using either mean-reversion boun
Draws a volatility channel around a kernel regression baseline on the price chart. The baseline is a weighted average of recent hlc3 prices using a rational quadratic kernel, with bandwidth and alpha settings controlling smoothness. Channel width comes from th
This TradingView strategy detects directional trades on the price chart using multiple entry triggers including TMA-Crossing, Breakout, and VWAP-Crossing with price types like Close or Open. It applies optional logical combinations of triggers and enforces tim
This strategy simulates high-frequency micro-trend reversals using ultra-short moving averages and oscillator extremes. It enters long when a fast EMA crosses above a slow EMA while a 2-period RSI is oversold, and enters short on a bearish EMA cross while the
This strategy trades Williams %R crossing into extreme zones. It enters long when the oscillator drops below the oversold level after being above it, and short when it rises above the overbought level after being below it. Each entry carries an ATR-based stop
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
This strategy calculates the Relative Strength Index (RSI) alongside Bollinger Bands to identify oversold bounce opportunities on fast timeframes. Drawn in a separate pane, it plots the RSI oscillator with customizable overbought and oversold thresholds. A lon
This strategy scaffold calculates a standard Volume Weighted Average Price (VWAP) alongside upper and lower volatility bands set 1.5 ATRs away. It generates long entry signals when a confirmed bar closes below the lower band and short entry signals when a conf
This strategy calculates the Z-score divergence of return spreads between two forex assets such as EURUSD and GBPUSD. It enters long positions when the Z-score falls below the entry threshold with confirmed uptrend from EMA, RSI and MACD filters plus sufficien
An indicator that applies a multi-step checklist on the price chart. The first step compares 9 and 18 period EMAs on the daily, four-hour and one-hour timeframes and requires all three to agree. The second uses Bollinger %B thresholds and a Stochastic RSI, wit
This overlay indicator plots a simple moving average and inner and outer standard-deviation bands on the price chart. It scores the last four closes against the inner bands, then marks long and short triangles when a mean-reversion cross or, in Aggressive mode
A chart-overlay indicator that classifies market regime with ADX and Bollinger Bands, then scores momentum, volume and mean-reversion conditions using adjustable weights, optionally normalised. A signal appears when the score passes a threshold. It draws a tre
Z-Score BB measures statistical deviation by comparing a short-term 22-bar sample mean against a longer-term population baseline. It computes the population standard deviation and standard error to derive absolute Z-score offset bands around the selected basel
This indicator calculates the statistical autocorrelation coefficient of an input series over a user-defined lookback window at a specified lag. It tracks values using an internal circular buffer, computes sample mean, variance, and autocovariance, and normali
This strategy plots an RSI line in a separate pane and calculates Bollinger Bands and band width without showing those plots. It enters long when price crosses under the lower band and RSI is at or below the buy level. When price crosses the upper band and RSI
This multi-mode trading strategy executes trades on the price chart using selectable technical models, including RSI-2 mean reversion, SuperTrend, MACD crossovers, Triple EMA, Bollinger Bands, or a combined multi-indicator approach. It filters trade entries us
This strategy combines an example trend pullback trading model with a modular monthly performance table displayed directly on the price chart. It buys when price is above a long-term moving average but below a short-term moving average, and exits when price cl
A strategy that sorts volatility into five states from the ratio of a fast ATR to its average, then picks entries by state. In low volatility it fades moves beyond the prior range when RSI is stretched. In high volatility it takes range breakouts that match an
This strategy models a zero-days-to-expiration (0DTE) Opening Range fade system on the price chart, designed around Mini-SPX index options. It calculates an opening range box and gauges directional sentiment from an external symbol like ES futures. Bullish con
TESLA-BestPosition is a long-only dollar-cost averaging strategy that combines custom Relative Strength Index levels with smoothed highest-high and lowest-low channels. It calculates 10-period exponential moving averages of highest highs and lowest lows over a
A Pine v4 indicator in a separate pane that computes a z-score of price against a volume-weighted average price over a chosen length, 20 bars by default, then smooths it with an exponential average. Shaded bands mark overbought and oversold zones, by default b
A Pine v4 strategy that fades moves away from VWAP. It plots VWAP with percentage bands and opens a long when a green non-doji candle opens below the lower band, or a short when a red candle opens above the upper band. A long exits when the high passes VWAP, a
Calculates consecutive bar sequences that fail to create new price extremes and identifies potential reversal breakout points. When a run breaks, the script plots measured move projection arrows, high-water mark lines, and Fibonacci levels directly on the pric
This overlay indicator calculates the 14-period Relative Strength Index to identify overbought and oversold market conditions. When RSI crosses key thresholds, it plots initial long or short entry labels directly on the price chart. If price continues moving a
This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR
This long-only strategy identifies pullback opportunities within a broader trend. It enters a long position when the closing price trades above a long-term exponential moving average while falling below a short-term exponential moving average. Once in a trade,
This price-chart strategy seeks Bitcoin mean-reversion entries. It buys when RSI is below its oversold level, Stochastic K is oversold, and price is above ninety percent of a 200-period EMA. It sells short when RSI and Stochastic are overbought and price is be
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.