Calculates fast and slow Simple Moving Averages to display a visual rainbow ribbon on the price chart. The indicator fills multiple gradient bands between the dual moving averages and adds visual effects like glowing SMA halos, animated palette shifts, and reg
This indicator calculates and plots three Exponential Moving Averages directly on the main price chart. It includes configurable inputs for fast, slow, and slowest moving averages, defaulting to 9, 21, and 36 periods based on bar close values. Traders can adju
Calculates normalized moving average trend strength, historical volatility, and volatility-adjusted position sizing in a separate pane. It computes the percentage distance between fast and slow EMAs relative to price, evaluates standard deviation of daily retu
This indicator calculates and plots the Moving Average Convergence Divergence (MACD) line, signal line, and a four-color histogram in a separate chart pane. It computes the difference between fast and slow moving averages to determine momentum shifts. Users ca
This Pine Script implements a trend-following strategy inspired by John Seykota's methods. It enters positions on Donchian channel breakouts using a longer lookback period of 55 bars and exits on shorter 10-bar signals. Volatility gating prevents adding to pos
This indicator combines the HalfTrend trend-following algorithm with five exponential moving averages overlayed directly on the price chart. HalfTrend determines directional bias by evaluating local high and low price extrema over a selectable amplitude alongs
Crossing EMAs B is a moving average crossover strategy designed as an example for Zignaly bot signal integration. It monitors a 14-period and a 28-period simple moving average on close prices, entering long when the short average crosses above the long average
This strategy is a Pine Script implementation of the NostalgiaForInfinity crypto strategy. It calculates indicator metrics across multiple timeframes and compares price action against a master pair such as BTC/USDT. Settings allow traders to configure informat
The Dual Moving Average strategy calculates fast and slow exponential moving averages based on HLC3 prices. It generates long signals when the fast EMA crosses above the slow EMA and short signals when it crosses below. Position sizing can be calculated dynami
Bte Strat provides a backtesting and trading engine framework implemented as an indicator on the price chart. It evaluates trade signals using selectable entry rules, technical filters like volume and moving averages, and dynamic exit strategies. The script pl
This indicator calculates custom Traders Dynamic Index (TDI) conditions on the price chart using a 30-period Relative Strength Index (RSI), volatility bands, and fast/slow RSI moving averages. It plots green buy labels below bars and red sell labels above bars
Calculates volume-weighted average price anchored to automatically detected swing pivots, period starts, or a custom manual timestamp. It plots volume-weighted standard deviation bands with configurable multiples and measures price distance from VWAP in standa
Nexural JMA plots a Jurik moving average on the price chart. Length, phase, power, and source change the average. It scores momentum from rate of change, volume from a volume percentile, volatility from ATR, and trend strength from price distance to the averag
This strategy plots a fast and a slow moving average on the price chart and enters when their relationship flips, subject to an optional ADX filter. It goes long when the fast average is above the slow average and short when it is below, reversing an existing
This strategy plots a customizable Bollinger Band basis using selectable moving average types such as HMA, SMA, EMA, or others. It draws the basis line, multiple standard deviation levels, and fills the region between L1 and L6 on the price chart. Buy signals
This strategy plots a 90-period exponential moving average from the weekly and daily charts plus a daily session VWAP on the price chart. It enters long when the weekly VWAP is above the weekly average and the daily VWAP crosses above the daily average, and en
The Confluence indicator combines Bollinger Bands, RSI and MACD to generate signals on the price chart. It plots the upper Bollinger Band in green, lower Bollinger Band in red, the middle basis in blue, the RSI value and the MACD line with signal. A confluence
Capital41 Confluence Core plots an EMA or SMA on the price chart and combines its direction with RSI, Williams %R, and a liquidity-sweep check into long and short confluence signals. Signal strictness is Strict, Standard, or Loose, which changes how far the os
This strategy trades exponential moving average crossovers designed for NQ and MNQ futures contracts on intraday timeframes. It calculates three EMAs (8, 55, and 165 periods) and generates entry signals during a user-defined trading session when previous day v
Cerebr Centauri Strategy is a multi-indicator trading system for Pine Script v4 that combines Moving Averages (SMA, EMA, LSMA, WMA), Stochastic Oscillator, RSI, and MACD across both current and higher timeframes. It evaluates trend conditions and oscillator st
This short-only trading strategy combines 20 and 50 period Exponential Moving Averages with a pivot low breakout filter. A short entry triggers when the 50 EMA is above the 20 EMA, recent candle closes remain below the 50 EMA while reaching above the 20 EMA, a
This strategy is a multi-strategy backtesting engine that draws entries and exits on the price chart. The user picks one approach, including Connors RSI-2, z-score mean reversion, EMA and MACD momentum, Bollinger squeeze, VWAP reversion, Supertrend, Ichimoku,
Moving Average Pair calculates and plots two customizable moving averages on the price chart. Users can choose separate moving average types, length periods, source prices, and line styling for both the fast and slow lines. The indicator detects bullish crosso
This intraday strategy executes trades using dual EMA crossovers and RSI mean-reversion near VWAP. Designed primarily for 5-minute index futures charts like ES and MES, it offers momentum entries on fast and slow EMA crosses confirmed by VWAP, as well as count
This strategy trades momentum breakouts by combining an Exponential Moving Average with the Relative Strength Index. It enters a long position when the closing price is above the EMA and the RSI crosses above the breakout threshold. It enters a short position
This indicator tracks multi-timeframe momentum and trend direction across M1, M15, H1, and H4 horizons. It plots four 14-period RSI curves in a separate pane alongside 30, 50, and 70 reference levels. Directional bias values are calculated by comparing price t
This long-only strategy identifies mean-reversion dip opportunities within established uptrends on daily charts. It opens a position when price is trading above a simple moving average and the Relative Strength Index (RSI) crosses back above a specified overso
This utility indicator demonstrates how to request multi-timeframe price data in Pine Script v5 using the request.security function. It fetches a chosen price source from a user-defined higher timeframe, such as 60 minutes or daily, and calculates a 20-period
This strategy plots a fast EMA and a slow EMA of Heikin Ashi closes requested from two higher timeframes, both drawn on the price chart. It enters long when the fast average crosses above the slow average and enters short on the opposite cross, only inside a u
Calculates a Fractal Adaptive Moving Average (FRAMA) and signal line using multi-timeframe security data, plotted directly on the price chart. Includes an optional SuperTrend filter with customizable factors and period for signal confirmation and visual entry
This script executes a trend-following strategy based on simple moving averages and exponential moving averages. It enters a long position when the 5-period SMA is above the 10-period SMA and the 10-period SMA is above the 34-period EMA. It enters a short posi
EFELER-DDT plots multiple moving average overlays and pivot-based support and resistance levels directly on the price chart. It calculates dual Weighted Moving Averages (9 and 15 WMA), three standard Exponential Moving Averages (20, 50, and 200 EMA), and three
This indicator draws a 21-period exponential moving average and a 21-period simple moving average of the closing price directly on the price chart. The exponential average is blue and the simple average is red. Settings for length, source, and offset are decla
This indicator calculates standard Bollinger Bands using a simple moving average basis line along with upper and lower bands derived from standard deviation. It includes logic to detect when price action comes within a configurable distance of the lower or upp
This long-term trend-following indicator plots three Weighted Moving Averages (13, 48, and 200 periods) directly on the main price chart. It evaluates price crossovers against each moving average to detect early trend shifts, alongside crossovers between WMA l
This strategy identifies breakout trades using a 7-period RSI combined with price extreme lookbacks. A long entry triggers when the RSI rises above 70 and price reaches a new lookback high, provided price remains above an optional EMA trend filter and passes a
This indicator plots five exponential moving averages directly on the price chart alongside calculated MACD signals. It generates buy or sell signals when an EMA cross and a MACD cross align within three bars under established multi-EMA trend conditions. The s
This indicator plots an eight-period and a twenty-period exponential moving average on the price chart and colors candles by their relationship. Candles are green when the faster average is above the slower average and red when it is below. The average lengths
The Ultimate Trading System is an integrated indicator that combines multiple analysis methodologies—including Pi Cycle Top, SPX/Gold ratio, Elliott Wave, and multi-source market signals—into a composite oscillator scored from 0 to 100. Plotted in a separate p
DFO 3 plots a directional flow oscillator in a separate pane. It averages five normalized components: a composite RSI momentum index, a cumulative volume delta built from one-minute volume, a price position over a 100-bar range, an EMA-versus-SMA trend spread,
Calculates and plots the relative strength lines for major currencies including EUR, USD, JPY, GBP, CHF, AUD, CAD, and NZD in a separate pane. It evaluates cross-rate movement using data from major Forex brokers like OANDA or FOREXCOM. Users can smooth the str
MasterTrader V1 is an indicator that plots two exponential moving averages (fast length 9, slow length 21) and RSI (length 14) on the close price chart. It generates long entry signals when the fast EMA crosses above the slow EMA, RSI stays between 30 and 70,
This intraday strategy is designed for 5-minute ETF trading, specifically tailored for leveraged assets like TQQQ. It evaluates simple moving average alignment across three lengths and calculates consecutive rising or falling bars over a lookback window to ide
The SuperTrend Regime Confluence strategy combines an adaptive SuperTrend indicator with market regime detection to generate trading signals. It computes a composite conviction score using an ADX regime lookback, a trend EMA, and a volume moving average. Trade
Strategy Examples is a Pine Script strategy template demonstrating multiple classic technical trading approaches directly on the price chart. It incorporates a moving average crossover system using SMA or EMA, an RSI mean reversion model operating on overbough
This strategy calculates DEMA values using configurable lengths and detects crossovers and crossunders to generate long and short entry signals on the price chart. It plots multiple DEMAs with green, red, and fuchsia colors for visual reference. The main setti
This indicator tracks Investor's Business Daily style Power Trend rules and setup conditions in a separate pane. It evaluates whether price lows hold above an exponential moving average, verifies that the fast EMA remains above a rising simple moving average,
This strategy trades gold on the price chart using stochastic, RSI and three EMAs, with ATR for distance filters and stops. Confirm and optional scalp legs enter long or short when M15 overbought or oversold levels, rejection wicks, Fibonacci zones and a no-ch
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.