This Pine Script strategy generates entry signals from an EMA of length 20 crossed by close price. Long crossover enters long position and sets initial trailing stop below close using ATR multiplied by 2.0. Short crossover enters short and sets trailing stop a
EMA-Volume plots two exponential moving averages on the price chart and tints the background when the faster average crosses above or below the slower one. It also builds simple moving averages of raw and scaled dollar volume, then compares a 30-bar volume ave
This long-only strategy generates buy signals when price trades above both the 50-period and 200-period Simple Moving Averages while a smoothed RSI indicator crosses above a specified threshold. It exits positions when price drops below the 50-period SMA and t
The indicator computes the normalized deviation of close price from HLC3 SMA using ATR for trend measurement. It plots deviation Z-score, trend state (1 bullish, -1 bearish, 0 neutral via state machine), and strength level (0-2) in a separate pane. Settings ad
MACD Signal Turn calculates standard Moving Average Convergence Divergence (MACD) and signal lines using exponential moving averages. It identifies bullish crossovers that occur while the MACD line is below zero and bearish crossunders that take place while th
Kernal Cipher 3 is a momentum trading strategy that plots signal diamonds on the price chart for breakout, reversal and continuation setups. It calculates EMAs of varying lengths to detect trend regime and slope, ADX for strength confirmation, WaveTrend oscill
MTF Confluence Engine is a separate-pane indicator that evaluates trend, momentum, and volatility metrics across the current chart timeframe and two configurable higher timeframes. It combines EMA alignment, SuperTrend direction, RSI values, Bollinger and Kelt
This script calculates and plots an Exponential Moving Average (EMA) based on the closing price directly on the main price chart. It functions as a classic trend-following reference, smoothing price action to help identify direction or dynamic support and resi
This lightweight indicator template calculates a simple moving average based on a user-selected price source and lookback length. It plots the calculated moving average line, dynamically coloring it green when the price is above the moving average and red when
A separate-pane oscillator that smooths price with a selectable moving average, then scores its direction by looping over a range of lookbacks from a start to an end value. The score is compared with long and short thresholds to mark uptrend and downtrend stat
This Pine Script v6 strategy generates multi-layered trading signals plotted directly on the price chart. It combines eight modular signal engines: EMA crossover pullbacks, price action breakouts, RSI momentum and divergence, MACD histogram flips, volume surge
BTC RSI Momentum v25 is a momentum breakout strategy engineered for intraday Bitcoin perpetual contracts. It executes long or short entries when the Relative Strength Index breaches extreme threshold levels aligned with an EMA 200 trend filter, candle confirma
EMA Cross Strategy is a Pine v4 strategy that plots a fast and a slow exponential moving average, 13 and 48 by default. It enters long when the fast EMA crosses above the slow one and short on the opposite cross, with a trade direction option for long only, sh
A leveraged trend-following strategy for index futures that uses 20, 50 and 200 period EMAs to decide between long, flat and optional short positions. Leverage is higher in confirmed uptrends and steeper trends, lower for shorts, and reduced when ATR as a perc
This strategy tracks trend changes by calculating a 50-period fast Exponential Moving Average and a 200-period slow Exponential Moving Average. It triggers a long entry when the fast EMA crosses above the slow EMA and closes the position when the fast EMA cros
This strategy implements an Inner Circle Trader (ICT) framework by identifying order blocks, fair value gaps, liquidity pools, and optimal trade entry (OTE) zones. It computes a confluence score requiring a user-defined minimum threshold alongside 200 EMA and
This strategy plots a Bitcoin all-time-high cycle model on the price chart. It starts from a chosen date and can show an Ichimoku cloud, a fast and slow geometric mean, and supply and demand boxes. Drop percentage, rise percentage, and a weight set the cycle l
This strategy plots Ichimoku Cloud components on the price chart and generates trades based on trend confirmation. It enters long when a bullish Tenkan-Kijun cross occurs above the cloud or upon a bullish cloud breakout, with optional Chikou Span confirmation.
The Squeeze Momentum BB Enhanced indicator computes a momentum oscillator from close prices using linear regression or SMA. It identifies squeezes between Bollinger Bands and Keltner Channels to flag potential breakouts. Plots include colored momentum lines, f
VMC Strat Hybrid Trend is a long-oriented trading strategy plotted directly on the price chart. It combines an exponential moving average trend filter with WaveTrend, RSI, Stochastic RSI, and a custom Money Flow Index calculation. Long entries trigger when Wav
A minimal chart-overlay indicator that plots a 20 and a 50 EMA and prints large buy or sell labels on an EMA cross. A buy also needs volume above 1.5 times its 20-bar average, RSI between 35 and 65 and price above the fast EMA; a sell needs the opposite price
This strategy plots a slow trend EMA and a faster entry EMA on the price chart. It opens a long position when price is above the trend EMA, closes below the entry EMA, and crosses back above that entry EMA. It exits with a percentage stop loss and take profit
This strategy looks for three-candle patterns, namely the 123 pattern, PFR and engulfing candles, filtered by a trend of stacked EMAs, and adds an optional RSI divergence filter drawn as lines on the price chart. Further optional filters use volume and a stoch
This indicator plots Parabolic SAR circles and a configurable exponential moving average on the price chart. It treats the average of open, high, low, and close above the EMA as bullish and below it as bearish. A buy label appears when SAR is below the low, th
The Keltner Channel strategy plots upper and lower bands on the price chart overlay using an exponential moving average or simple moving average combined with ATR or range calculations. The source crosses the bands to generate signals. It enters long positions
A long-only strategy that enters when a fast simple moving average crosses a slow one, using the cross function so either direction of crossing can trigger the entry. Each open position gets a percentage take profit and a percentage stop loss calculated from t
SOLBTC MTPI is a Pine Script strategy designed to gauge whether Solana is outperforming Bitcoin to determine market allocation. It calculates a composite trend signal using liquidity-weighted moving averages with Supertrend logic, DEMA filters, and normalized
This indicator calculates and plots a standard Moving Average Convergence Divergence oscillator in a separate chart pane. It computes the fast MACD line, the slow signal line, and the histogram based on user-configurable short, long, and signal period inputs.
This indicator plots colored volume bars on the price chart, where green shows price up days and red shows price down days. It also draws an EMA of volume in yellow. The script detects bullish and bearish divergences by comparing price highs/lows to volume hig
This indicator calculates the lunar age from the chart date and marks a new moon above the bar and a full moon below the bar. It also plots the close as a daily 200-period moving average and weekly 20- and 200-period moving averages, each as a simple or expone
A long-only strategy for Bitcoin-style charts that combines an RSI-based momentum signal with a trend filter using one or two simple moving averages. It buys when the smoothed RSI signal crosses above zero while price is in an uptrend, sizes positions from a s
This indicator calculates multiple smoothed versions of a chosen dataset using Kalman filters with adjustable gain parameters. It plots the resulting lines on the price chart for visual comparison. The main settings allow selection of the input source and togg
CM_EMA Trend Bars is a trend-following indicator that plots buy and sell signal shapes on the price chart based on exponential moving average position. It calculates a single exponential moving average (EMA) using a customizable period, defaulting to 34 bars.
This indicator measures how far the close sits from a Hull moving average and plots that gap as a percentage in a separate pane. It also calculates an exponential moving average over the same trend length. The plotted line is red above 20, green below zero, an
TrendGlow is a price-chart indicator that recolors candles according to a bullish, bearish, or sideways trend. It imports a BullBear library and can combine Stochastic RSI, MACD, and SMA checks on a user-selected timeframe through request.security. Users toggl
This indicator calculates three Simple Moving Averages with periods of 55, 89, and 233 on closing prices and overlays them directly on the price chart. It evaluates a specific bearish crossover pattern where the 55-period fast moving average drops below the 89
This indicator calculates volatility-based envelopes directly on the price chart. It plots a central exponential moving average of closing prices alongside asymmetric outer bands. The upper band is derived from an EMA of price highs plus a standard deviation o
A Pine v4 strategy that plots a 30-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This strategy is a bare template that crosses a fast 15-period and a slow 45-period exponential moving average of the bar midpoint. It enters long on an upward cross and short on a downward cross, reversing between the two, and starts trading from a date set b
This indicator plots NYSE market breadth in a separate pane. It requests the daily advance-decline series, smooths the average of open, high, low and close with a 15-period simple moving average, and fills the area against a zero line green when that average i
Chop Zone measures the slope of a 34-period exponential moving average of the close. It scales the one-bar EMA change by the average price and a 30-bar high-low range, converts that slope into degrees, and paints a single column in a separate pane. Turquoise t
The Henderson Weighted Moving Average indicator calculates a smoothed moving average line using Henderson's symmetric weight kernel formula applied to the chosen source series over a specified period length. It plots directly on the main price chart pane. The
This strategy enters long when a bullish candle closes above an EMA and its upper wick is no larger than a set percent of the candle range, and short on the opposite bearish setup. It closes a long after price rises a small fixed fraction above the entry bar o
This strategy draws on the price chart and combines Stochastic RSI, the Money Flow Index, and an exponential moving average to open long or short trades. Longs use the lower oscillator thresholds and shorts use the upper ones, with direction limited to longs,
This strategy plots a fast and a slow simple moving average on the price chart. It enters a long position when the fast average crosses above the slow average and closes that long when the fast average crosses below the slow average. Percentage take profit and
MACD Histogram Percentile Rainbow calculates the standard Moving Average Convergence Divergence line, signal line, and histogram in a separate indicator pane. It evaluates the relative magnitude of histogram bars against historical data using a percentile rank
This indicator plots Donchian Channels alongside fast and slow simple moving averages directly on the price chart. It generates bullish breakout signals when the high reaches the upper channel while the close is above the 50 SMA (and optionally the 200 SMA). B
This strategy overlays the price chart to execute long and short trades on BTCUSDT. It requests multi-timeframe data across daily, 3-minute, 5-minute, 8-minute, and 10-minute periods to generate signals alongside VWMA volatility bands and smoothed moving avera
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.