A Pine v5 strategy that draws trendlines through confirmed swing highs and lows on the price chart. Swing pivots are confirmed after a set number of bars to the right, and a minimum slope angle removes flat lines. A trade mode setting chooses between breakout
This strategy executes trades based on dual Simple Moving Average (SMA) crossovers while managing risk through a dynamic trailing stop. It enters a long position when the fast SMA crosses above the slow SMA, and a short position when the fast SMA crosses below
A chart-overlay indicator that builds a volatility-based trend line from a smoothed price range and marks entries when the trend flips, plus reload entries after pullbacks. Each entry gets a stop sized from the distance to the trend line or an ATR multiple, an
The Aetherium Institutional Market Resonance Engine is an overlay indicator that combines coherence analysis, institutional liquidity scanning, and cycle resonance to identify market setups. It measures directional market alignment, calculates volume spike clu
This long-only strategy calculates fast and slow moving averages to generate trend-following trade signals. It enters a long position when the fast moving average crosses above the slow moving average, and closes the trade when a bearish crossover occurs. Movi
Calculates the standard Supertrend indicator using built-in Pine Script functions based on Average True Range (ATR) and a multiplier factor. It plots a green support line during an uptrend and a red resistance line during a downtrend directly on the price char
The Parabolic SAR strategy calculates the Parabolic SAR value to detect trend reversals on the price chart. It starts with a given acceleration factor and adjusts it dynamically between start and maximum values based on price movements. Long entries occur when
A strategy that trades with a short and a long EMA. A long entry needs price above the short EMA, which is above the long EMA, plus RSI below a level or price within a tolerance of a pivot low. Shorts mirror this in a downtrend near pivot highs. Each entry get
This strategy calculates the TOTAL MTPI using a combination of multiple indicators including Trend Sniper, EMA, MAMA, Kijun Sen, Supertrend and others to determine the overall direction of the cryptocurrency market cap index. It signals long entries when the c
This strategy uses two simple moving averages, 10 and 20 periods by default. It enters long when the fast average crosses above the slow one and enters short on the opposite cross. Each trade is paired with an ATR-based stop loss and take profit, using separat
A simple long-only strategy for the price chart built on two simple moving averages. It buys when the fast average crosses above the slow one and closes the position when the fast crosses back below. A stop loss and a take profit, entered as numeric inputs, ar
This indicator detects a selectable set of candlestick patterns and plots them on the price chart. Fast and slow simple moving averages provide a trend context for pattern interpretation. Users can turn individual formations on or off, including doji variants,
This indicator calculates John Ehlers' fractal dimension of recent price movement and plots it in a separate pane. It compares the average high-low range over two successive halves of a lookback window with the range over the full window, then converts that ra
A strategy-type script for the price chart that draws the high, low and midpoint of the first part of each session, set by start hour and minute inputs, with alerts when price crosses the high or low. It adds VWAP and a SuperTrend with adjustable ATR period, m
This strategy plots the Supertrend indicator directly on the price chart using an Average True Range period and factor multiplier. It generates long entry orders when the Supertrend turns upward and short entry orders when it turns downward, simultaneously dis
A price-chart overlay that projects a high, mid and low estimate for the next three bars. It averages the open-to-close midpoints, the open-to-close changes and the high-low ranges over a configurable lookback, then chains each estimate into the next. It impor
This indicator plots an ATR trailing stop on the price chart. It multiplies the average true range by a user multiplier and ratchets the stop with price while the close stays on the same side of the line. When price crosses the stop, the line flips to the oppo
This Pine v5 strategy compares a 20-period EMA with a 50-period SMA. It enters long when the EMA is above the SMA and short when below, and also contains a second set of pullback entries and crossover-based closes. The code mixes two overlapping rule sets, so
Nick Rypock Trailing Reverse plots a percentage trailing stop on the price chart and reverses its direction when the close crosses that level. In an uptrend it trails below the highest close by the correction coefficient; in a downtrend it trails above the low
This indicator plots four customizable moving averages directly on the main price chart using default lengths of 3, 8, 21, and 50 periods. It fills the space between adjacent averages in green or maroon depending on trend alignment. Additionally, it computes B
This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross
This strategy plots up to four volume-weighted average price lines on the price chart: midnight, previous day, session, and a custom anchor such as session high and low, week, or month. It enters when price crosses two selected lines, using same-bar, position,
This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts
This educational indicator calculates 20-period and 60-period Simple Moving Averages (SMA) directly on the price chart. It detects bullish golden crosses and bearish death crosses between the two averages, marking occurrences with chart labels below or above b
This indicator trains a single-neuron artificial neural network (perceptron) on each bar to classify price movement and plot an adaptive moving average on the main chart. It evaluates historical sample data to iteratively adjust weights using a step activation
This strategy overlays moving averages on the price chart to generate long and short trade signals compatible with 3Commas bot automation. It sets stop losses relative to recent swing pivots buffered by an ATR multiplier, while exits are handled by a risk-to-r
The Adaptive Price Zone indicator calculates volatility bands around a double-smoothed exponential moving average baseline directly on the price chart. It calculates internal smoothing factors using the square root of the user-specified period, double-smoothin
Moon Dev SMA Ribbon 20/40 calculates two simple moving averages (default 20 and 40 periods) and overlays them directly on the price chart. The space between the moving averages is filled with a dynamic gradient that adapts in color and transparency based on tr
This strategy evaluates simple moving averages and the Relative Strength Index to generate trading signals. It calculates a 10-period SMA, a 30-period SMA, and a 14-period RSI. Long positions are entered when the fast SMA crosses above the slow SMA while RSI i
This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta
This indicator draws a classic Ichimoku cloud on the price chart. It plots the Tenkan-sen and Kijun-sen as Donchian midpoints and fills the cloud between the two leading spans, displaced 26 bars ahead, green when Lead 1 is above Lead 2 and red otherwise. Conve
This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th
The VWAP Cumulative indicator calculates and plots a continuous Volume Weighted Average Price directly on the main price chart. Instead of resetting at session or daily boundaries, it computes a running cumulative VWAP using typical price and volume across all
This indicator plots the Arnaud Legoux Moving Average on the price chart. It weights recent source bars with a Gaussian window whose peak is shifted by the offset and whose width is set by sigma. The period input sets the lookback, and the source input selects
This indicator plots the percentage difference between a fast exponential moving average and a slow one, scaled by the close, in a separate pane. It treats that gap as a standardized measure of trend strength and draws a zero line. Users set both EMA lengths a
This indicator detects and labels multiple classic candlestick formations directly on the price chart. It calculates candle body and shadow dimensions relative to exponential moving averages and confirms prevailing trends with simple moving averages. When matc
This indicator plots market structure elements directly on the price chart, identifying internal and swing break of structure and change of character. It calculates bullish and bearish order blocks, equal highs and lows, and swing points while highlighting tre
This indicator plots John Ehlers's predictive moving average on the price chart. It builds a weighted average of the selected source, applies a second weighted average, and projects a prediction with a slower trigger. It draws the higher of those two series an
This strategy implements a trend-following Donchian breakout system with pullback-based pyramiding. It initiates trades on Donchian channel breakouts and sizes positions based on ATR volatility risk. Instead of immediately adding units when the trend advances
Pocket Scout - SPY/QQQ is a mobile-optimized intraday bias indicator designed for major US equity ETFs and indices. It overlays a 9/21/50 EMA ribbon, session VWAP, prior day high/low/close levels, and intraday high/low lines directly on the main price chart. T
Crossing EMAs C is an overlay strategy designed to demonstrate moving average crossover signals integrated with Zignaly alert triggers. Despite its name, the script calculates 14-period and 28-period simple moving averages. It enters a long position when the f
Nexural Pressure Pro is a composite pressure indicator that measures directional market momentum using volume-weighted directional movement, order flow delta, aggression, and efficiency ratio metrics. It filters out low-activity bars using configurable volume
EMA Ribbon (9/21/55) is a TradingView strategy that calculates three exponential moving averages with periods 9, 21 and 55. It plots the EMAs on the price chart and colors the background ribbon according to bullish or bearish alignment. The strategy enters lon
This indicator calculates the Durbin-Watson test statistic to measure serial autocorrelation in log returns over a user-defined lookback period. It performs a linear regression of log returns against bar indices to extract residuals and computes the ratio of s
This strategy identifies trend retracements and breakout entries using an adjustable moving average ribbon alongside higher-timeframe anchored moving averages, fractal pivots, and support and resistance level extensions. Bar colors can be customized using a 3-
LunarTick ADX calculates the Average Directional Index (ADX) along with positive (+DI) and negative (-DI) directional indicators in a separate pane. It identifies trend direction by tracking crossovers between +DI and -DI, plotting crossover markers directly o
This indicator calculates a lag-compensated SuperSmoother based on John Ehlers' filter techniques, combining hybrid Butterworth filters with dynamic lag adjustment. It computes adaptive trend metrics and lag-compensated momentum, plotting them in a separate pa
This strategy overlays a 90-period simple moving average from the one-hour and four-hour charts with a daily session VWAP on the price chart. It buys when VWAP is at or above the four-hour average and crosses above the one-hour average, and sells short in the
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.