This strategy serves as a backtesting template for any trading system. It accepts external signals to trigger long or short entries and exits, with optional filters based on EMA and ADX indicators to refine conditions. Time-based restrictions limit trading to
This indicator calculates and plots rolling high, low, and midpoint levels over 24-hour, 48-hour, and 7-day lookback periods directly on the price chart. It projects standard Fibonacci retracement levels based on the 7-day range and detects doji candlestick pa
This indicator plots an anchored volume-weighted average price on the price chart. It accumulates the typical price (HLC3) weighted by volume and resets the calculation at the start of a session, week, month, or year. It also plots bands one, two, and three st
The LS Volatility Index measures price volatility relative to a customizable moving average. It computes the percentage distance of the current price from the chosen source (such as close or open) and normalizes this value by historical volatility, producing a
The Signal Moving Average indicator calculates an adaptive trend line weighted by the R-squared correlation between price and bar index over a configurable period. When the correlation exceeds a fixed threshold, the indicator blends a simple moving average wit
This indicator plots buy and sell labels on the price chart. It calculates a WaveTrend-style oscillator from exponential moving averages, then requires a cross to agree with the slope of a Jurik moving average built on a blended close, VWAP, and OHLC source. A
This script provides a scaffolding template for Pine Script strategies. It establishes framework logic for trade direction toggles, custom backtest date ranges, and percentage-based stop-loss and take-profit calculations. Long and short entry triggers are left
The RSI Line indicator plots a histogram in a separate pane based on the rate of change (ROC) of the chosen source, such as close. It applies two RMA smoothing passes with lengths rhigh and rlow, then final smoothing with tlen. The histogram color indicates mo
The Chart Champions Sessions indicator plots small square markers on the price chart to mark the start and end of major market sessions. It covers Asia, London, New York, close, and specific ASX pre-market and open periods. A top banner dynamically changes col
Tesla Coil is a market cycle oscillator based on digital signal processing concepts from John Ehlers, including Instantaneous Frequency Measurement and In-Phase and Quadrature principles. It treats price movements as wave frequencies to track cycle periods dyn
This strategy identifies entry setups on short timeframes by combining moving average trend filters with Bill Williams fractal breakouts. It tracks multi-bar high and low fractals to establish market structure, waiting for confirmed fractal breaks in the direc
A separate-pane indicator that plots a 0 to 100 market stress score. By default it fetches a published score through an HTTP request; alternatively the user can type values by hand, or it falls back to a price-based proxy built from realized volatility, drawdo
A long and short strategy designed for four-hour charts with a daily trend filter. Entries come from three setups: a stacked EMA and MACD plus SuperTrend alignment, a 20-bar Donchian breakout on higher volume, or an RSI bounce from extreme levels. A choppiness
A trend-following swing strategy for Indian stocks. Longs need an EMA 21, 50 and 200 alignment with rising slopes, then enter on a pullback to the 21 EMA or a breakout above a recent swing high, filtered by ADX, volume against its average, RSI and an optional
A multi-tool overlay that combines fair value gaps, trendlines with breaks, RSI background shading, order blocks, liquidity pool zones, a UT Bot ATR trailing signal and an SSL element on one chart. Liquidity pools need a set number of contacts, bar gaps and co
A mean reversion strategy that buys when price dips below the lower Bollinger Band while Stochastic RSI is oversold and crosses up, and sells short on the mirror setup at the upper band. Entries are skipped when ADX is above a maximum, to avoid strong trends.
A price-chart indicator that plots a 200-length double exponential moving average and colours it by trend strength. The line turns green when price is above it and ADX is at or above a threshold, red when price is below it, and grey when ADX is weak. ADX and d
Plots the standard Ichimoku Cloud on the price chart: conversion line, base line, leading spans A and B and lagging span, using Donchian midpoints with default lengths of 9, 26 and 52. Lengths and displacement can be adjusted. The script also holds a group of
The indicator identifies multi-timeframe swing highs and swing lows to track liquidity levels across different chart horizons. When price wicks through a higher timeframe level and closes back inside, it plots a sweep line and label directly on the price chart
This Pine Script v5 indicator overlays multiple technical strategies on the price chart to generate buy and exit signals. It scores confluence across SuperTrend direction flips, momentum (EMA, RSI, ROC), Bollinger Band mean reversion, breakout volume, and Stoc
A long-only trend strategy using a 50-period and a 200-period EMA with an RSI filter. It buys when price crosses above the fast EMA or the fast EMA crosses above the slow one, provided price is above the slow EMA and RSI is above a set level. It closes when th
This indicator calculates an ATR-based trailing volatility channel around the midpoint price to determine market trend direction. It generates confirmed buy and sell signals when the trend flips, filtered by an optional exponential moving average macro baselin
A strategy for Indian stocks that lets the user choose one of five rule sets: SuperTrend with an EMA, an EMA crossover, RSI with MACD, a Bollinger Band squeeze, or a VWAP pullback. A time window in UTC limits trading to exchange hours. Risk management sizes by
A Pine v5 strategy, with Chinese input labels, that lets the user pick one of four setups: a short after an RSI overbought exhaustion, a long after an oversold reading, a Bollinger Band reversion, or a VWAP breakout with an EMA. Exits use three take-profit sta
This indicator identifies potential bullish breakout opportunities by detecting volatility expansions in the direction of an established trend. It calculates the Average True Range (ATR) and determines if volatility is expanding by comparing ATR to its moving
This strategy executes opening range breakout trades during regular trading hours. It calculates a 15-minute opening range high and low alongside a 20-period EMA and a 14-period ATR. Long entries trigger when price crosses above the opening range high while hi
An overlay indicator that plots 9, 21 and 50 period EMAs. A BUY label appears when the 9 EMA crosses above the 21, price closes above the 50 EMA, the candle is green and volume exceeds its 20-bar average. A SELL label uses the opposite conditions. Each signal
This strategy builds an opening-range high and low during a user-defined session, then waits until that session ends. A close above the range enters long and a close below it enters short. The long exit uses the range low as the stop and a limit one range-widt
A long-entry strategy for the price chart that scores twelve conditions: RSI, MACD histogram, an EMA stack, SuperTrend, Bollinger position, ATR volatility, VWAP, volume ratio, stochastic, ADX, Ichimoku cloud and MFI. A buy needs at least nine to pass. Inputs s
A smart money concepts overlay that marks swing-based break of structure and change of character, order blocks that are removed once broken, fair value gaps above a minimum ATR size, equal highs and lows within a tolerance, and a premium and discount equilibri
Draws market structure breaks and order block boxes on the price chart, based on a zigzag of swing points. Bullish and bearish order blocks and breaker blocks appear as coloured boxes that are removed once price breaks them. Settings set the zigzag length, the
This strategy calculates the relative strength index of the closing price and enters a long position when the RSI crosses above a user-set oversold level. It exits that long with a fixed absolute stop price and a fixed absolute limit price. The main settings c
Fractal Model Professional is an overlay indicator that looks for higher-timeframe reversal sequences. It plots the previous higher-timeframe high and low, marks sweeps when price trades beyond a level and closes back inside, flags a reversal candle as C2, and
Identifies stop hunt sweeps where price wicks past recent pivot highs, pivot lows, or previous day high and low levels before closing back inside the range. It plots sweep markers, connecting level lines, and previous day levels directly on the price chart, wi
Tracks the latest unfilled daily fair value gap above and below price and scores each by gap size relative to its distance from the daily close, to suggest which side price may be drawn towards. A minimum gap size is set as a fraction of daily ATR, and an opti
SMC Swing 1H/4H Signal is an overlay indicator that applies smart money concepts to swing charts. It marks swing highs and lows using a configurable bar count, draws break of structure and change of character lines, and shades fair value gaps above a minimum s
A Pine v5 indicator that plots a trailing drawdown floor under the price high-water mark, aimed at futures and prop-firm style limits. A dollar drawdown buffer is converted to price points using the dollar value per point and the number of contracts. The floor
A strategy for 15-minute Bitcoin charts that opens a trade when several conditions agree: fast and slow EMA alignment, RSI inside a set band, MACD line and histogram direction, volume above a fraction of its average, price between the Bollinger basis and the n
A strategy for US index, energy, metal, agriculture and livestock futures that reads Commitments of Traders data through a TradingView library. It builds a commercial positioning index and combines it with an RSI to decide long and short entries. Exits can use
Calculates an Average True Range trailing stop directly on the price chart. It measures true range smoothed by a simple moving average to align with MT5 ATR semantics, multiplied by a user-defined factor. The stop ratchets upward during uptrends and downward d
A helper indicator in a separate pane that exports entry-signal flags so an external Python bot can be checked bar by bar. Using ADX regimes, EMA 50 against EMA 200, directional indicators, an ATR and volume filter and a candle-body test, it flags trend and ra
Tracks RSI recovery from oversold territory on the price chart. RSI is calculated on the average of open, high, low and close, with a moving average of the RSI. When RSI drops below the oversold level the script shows a watch label, marks an alert after RSI cr
This indicator plots Malaysian support and resistance levels on the price chart. It finds swing highs and lows, then marks those prices as support or resistance and labels each level Fresh, Unfresh, or Flip after retests and breaks. Separate major swing settin
Composite Market Bias is a separate-pane indicator that scores bullish and bearish conditions from RSI, fast versus slow EMA, MACD histogram, Bollinger Band position, and price versus a 50-period EMA. It plots the resulting bias score with RSI, EMA trend, MACD
An oscillator in a separate pane that estimates the Hurst exponent with rescaled range analysis over three window sizes, with optional bias correction and smoothing. Hysteresis around trend and mean-reversion thresholds classifies the market as trending, mean-
A Pine v5 strategy that applies time-series momentum, taking the sign of past returns over about one, three and twelve months and averaging them into a long or short score. Position size is scaled to a target annual volatility with a maximum leverage cap, with
An overlay indicator for short-term charts that plots a fast and a slow EMA, 9 and 21 by default. A buy label appears when the fast EMA crosses above the slow EMA and RSI is above 50 or below the oversold level. A sell label appears on the opposite cross with
A simple strategy that goes long when a 20-period EMA crosses above a 50-period EMA and short on the opposite cross. Each entry gets a stop one ATR away and a take profit set at a risk to reward multiple of the ATR, adjustable by one input. Position size is a
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.