BodyOutlier A003 is a mean-reversion trading strategy designed for automated execution via Zignaly alerts. It identifies candlestick body outliers to place limit orders, buying at the low of unusually large bullish candles or selling at the high of large beari
Identifies three-candle Fair Value Gaps (FVG) and trades their initial retests in the direction of an exponential moving average trend filter. Long positions trigger when price enters a recent bullish imbalance from above while trading above the EMA; short pos
This script replays a specific set of historical trades for Bitfinex BTC/USD on a two-hour timeframe between January and February 2018. It executes predefined long and short positions at exact millisecond timestamps using hardcoded order sizes and price levels
This strategy plots a Fibonacci retracement of the previous day's high-low range on the price chart. It places a single long limit order at that level when the bar hour matches the chosen entry hour and the close is below the level. Position size follows the l
This strategy calculates the Chaikin Oscillator by taking the difference between fast and slow exponential moving averages of the Accumulation/Distribution line. It generates long and short entries when the oscillator crosses the signal threshold with directio
This strategy calculates dual Average True Range (ATR) trailing stops using two distinct multiplier levels alongside an optional Hull Moving Average (HMA) channel. It identifies market structure shifts and triggers positions when price crosses the primary ATR
This strategy detects equal highs and equal lows from swing pivots when two pivots sit within an ATR tolerance. A long entry follows a wick below an equal low that closes back above it on a bullish bar; a short entry follows a wick above an equal high that clo
The Enhanced DCA Strategy invests a fixed dollar amount at regular intervals (daily, weekly or monthly) into the asset after start date, deducting trading fees and tracking total invested, units acquired, current value, profit, ROI, Sharpe ratio, Sortino ratio
This strategy calculates trade signals by evaluating a daily session Volume Weighted Average Price relative to 90-period Exponential Moving Averages requested from 1-day and 4-hour higher timeframes. Long and short entries occur when VWAP crosses over or under
Demonstrates and tests Pine Script input metadata handling across numeric and other input types. It defines inputs using dropdown options, constant defaults, signed values, range bounds, timestamps, expressions, and colors, then plots the closing price in a se
This strategy combines higher-timeframe market bias filtering with an oscillator and ADX trend detection to generate trading signals. It calculates market bias using Heikin-Ashi values across custom timeframes and filters entries using dynamic or static ADX th
This strategy identifies high-volatility expansion bars by comparing the high-low range to a moving average plus standard deviation threshold. When range expansion occurs, it checks momentum over a specified lookback period. It opens a long position if the cur
This strategy implements a classic trend-following moving average crossover system on the price chart. It calculates a fast simple moving average (default 50) and a slow SMA (default 200). It enters long when the fast SMA crosses above the slow SMA and enters
Xsodus RSI Strategy is a long-only trading script that generates entry signals when the Relative Strength Index (RSI) crosses above a configurable oversold threshold. Traders can enable an optional trend filter requiring price to remain above an Exponential Mo
RG Structure v2.0 [Visual Edition] is a strategy that identifies pivot points over a lookback window to construct trendlines. It evaluates breaks and retests of these trendlines using scoring weights, violation penalties, and regime detection to generate entry
This strategy enters long positions when price tests and bounces off the prior week's low level within an allowed point tolerance during designated UTC trading hours. It requires the bar low to approach the prior week low and the close to rebound above it whil
This strategy plots a 14-period and a 28-period simple moving average on the price chart. It opens a long position when the fast average crosses above the slow average and closes that long when the fast average crosses back below. Position size defaults to 100
This strategy calculates three Supertrend directions from short, medium, and long ATR periods and multipliers on a chosen source. It enters long when all three trends are bullish and the position is flat, and enters short when none is bullish and the position
This strategy calculates and plots up to four Simple Moving Averages (SMAs) and four Exponential Moving Averages (EMAs) directly on the price chart. It generates trading signals based on price crossing over or under a selected baseline moving average, which ca
This strategy overlays trade setups directly on the price chart using fast, slow, and trend EMAs alongside RSI, ATR, ADX, and volume moving averages. It generates long and short signals through trend-pullback or mean-reversion logic, filtered across multiple t
This overlay strategy calculates a fast and a slow simple moving average of close and trades their crossovers. A cross of the fast average above the slow average opens a long; a cross below opens a short. Position size is fixed at one unit. After each entry it
This strategy executes trades based on Bollinger Band breakouts and ATR-based dynamic risk management. It opens a long position when price crosses above the upper Bollinger Band and a short position when price crosses below the lower band, provided no position
This strategy evaluates trading opportunities using a probabilistic scoring model combined with Smart Money Concepts (SMC) pattern detection, including Break of Structure (BOS), Fair Value Gaps (FVG), and Order Blocks. It overlays signals directly on the price
Momentum Rotation (Top 3) ranks ten large-cap US tech stocks by their six-month returns using daily closes. It rebalances monthly and holds the top three performing stocks long only on the price chart. A ranking table shows the current order. Main settings adj
This strategy executes mean-reversion trades when the Relative Strength Index rebounds from overbought or oversold zones in the direction of a higher-period trend EMA. It calculates indicators using confirmed bar closes to prevent live-bar recalculation. Entri
This strategy plots a 10-period and a 30-period simple moving average on the price chart. It opens a long position when the faster average crosses above the slower one and closes that long when the faster average crosses back below. Green and red markers and p
This strategy combines candlestick price action with Exponential Moving Average, RSI, and MACD filters to identify short-term trend trades. A long signal occurs when a bullish candle engulfs the previous open while price remains above the EMA, RSI stays below
The script is a Pine Script v4 strategy that generates buy and sell signals from crossovers of fast EMA (period 5) and slow EMA (period 10). It overlays signals directly on the price chart for cryptocurrency trading. Additional filters check for hammer candles
Dead Cross Over is a trend-following strategy that calculates a 10-period fast EMA and a 100-period slow EMA directly on the price chart. It enters a long position when the fast EMA crosses above the slow EMA while price sits above the slow EMA. The position i
This strategy enters long or short when a moving average of open prices crosses a moving average of close prices. It plots those averages and optional trend-coloured bars on the price chart. Settings choose the average type and length, an alternate-resolution
This Pine Script v5 file is an overlay strategy skeleton rather than a finished trading system. It sets initial capital, percent-of-equity order size, and a percent commission, then leaves placeholders for inputs, indicator calculations, entry and exit conditi
Sapphire Fibonacci Strategies is a multi-mode strategy that combines Momentum Breakout, Mean Reversion, and Fibonacci Retracement models built on Fibonacci-period moving averages. It generates long and short trade signals based on price crossovers and moving a
This strategy implements a trend-following system based on Donchian breakout channels and volatility-adjusted position sizing. It generates long entry signals when the close price breaks above the multi-bar highest high, provided an optional benchmark trend fi
The Scalp Agiota strategy calculates RSI and MFI values to identify overbought and oversold conditions for cryptocurrency scalping trades. It plots upward triangles on the price chart below the bar when RSI drops to 20 or lower and MFI to 10 or lower, signalin
MA & DMI is a strategy that combines moving average crossovers with Directional Movement Index filters to identify trade setups. It calculates a slow SMA, a medium EMA, and a fast EMA alongside ADX and DI values. Trade risk management uses an ATR-based multipl
Plots Donchian Channels and identifies trading setups based on price testing the channel extremes during high volume spikes. In long mode, it places limit buy orders when the low touches the lower Donchian band with volume exceeding a volume moving average mul
This strategy identifies trend continuation and accumulation setups on 5-minute charts. It enters long or short positions based on an aligned moving average stack, rising or falling price grinds within a lookback period, and a maximum bar size threshold to avo
This strategy identifies trend pullback entries using MACD signal line crossovers plotted in a separate indicator pane. Long trades enter on bullish MACD crossovers below the zero line when price is above a trend EMA and ADX exceeds a minimum threshold, with r
This strategy fades liquidity sweeps of confirmed swing highs and lows. It enters a reversal only after price sweeps a prior swing and closes back inside the range. The stop sits an ATR multiple beyond the sweep wick, the target is a fixed reward-to-risk multi
This strategy calculates up to three Double Exponential Moving Averages (DEMA) to generate trading signals based on moving average crossovers and crossunders. When configured, an optional third DEMA acts as a directional trend filter. It opens positions upon c
This strategy combines a triple Simple Moving Average (SMA) trend filter with Bollinger Band Width (BBW) volatility confirmation to trade gold. It evaluates the alignment of 20, 50, and 200-period SMAs alongside a BBW moving average expansion condition evaluat
This strategy plots a Williams Vix Fix, a WaveTrend oscillator, and a short rolling volume-weighted price filter in a separate pane. It measures how far the low sits below the highest close, then draws a moving average, standard-deviation bands, and a percenti
This strategy plots on the price chart and enters when price closes beyond the prior lookback high or low and also beyond a shorter confirmation range. Long, short, or both directions can be enabled. Optional filters require volume above a volume average or a
ORB Hunter is an Opening Range Breakout strategy that identifies price breakouts beyond a defined opening session window (such as 09:30 to 09:45 EST). It places long or short trades when price crosses the opening range bounds with buffer, confirmed by optional
This strategy combines Bollinger Band Width volatility ratio calculations with a Coppock Curve momentum indicator. It calculates the ratio of standard deviation to EMA over a user-defined length, along with an EMA of that ratio. Long positions are entered when
This Pine Script converts a Bollinger Band Breakout indicator into a strategy. It plots Bollinger Bands on the price chart using a 100-period SMA as the middle band with upper deviation of 3 and lower deviation of 1. Signals trigger on price crossing the bands
SassizStocEMA-Lazy Bear is a Pine Script strategy that plots on the price chart and combines a stochastic oscillator with near and far exponential moving averages. It is aimed at crypto markets. Long and short directions can be enabled separately, and crosses
The Impulse-Orders strategy detects impulse up and down movements on the price chart by checking for specific candle patterns relative to Fibonacci retracement levels. It tracks impulse starts and ends, confirming when the move reaches a user-defined percentag
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.