This strategy plots Bollinger Bands and an exponential moving average on the price chart. It enters long when price touches the lower band above the EMA and a bearish candle is followed by a bullish candle, and enters short on the mirrored upper-band setup. Ex
PineForge Cascade MTF Tuple is a multi-timeframe trend-following strategy designed for price charts. It uses a single security request to retrieve an Exponential Moving Average and Average True Range from a higher timeframe. The strategy plots an entry thresho
This strategy plots an asymmetric Bollinger envelope on the price chart. The upper band is a simple moving average plus a larger standard-deviation multiple, and the lower band uses a smaller multiple. It enters long when close crosses above the upper band and
A long-only session strategy that trades inside a configurable time window, 08:00 to 16:00 UTC by default. It enters long at the start of the window or when a 16-period EMA crosses above a 44-period EMA inside it, and closes the position when the window ends.
This strategy calculates Bollinger Bands and RSI to trigger dollar-cost averaging buy orders. It enters long positions whenever the closing price dips below the lower Bollinger Band while the RSI is below 50. Order units are calculated dynamically based on a f
Psychological Levels is a strategy that plots horizontal grid lines based on whole, half, and quarter psychological price levels directly on the chart. It triggers trades during designated intraday session windows, filtering signals using a multi-timeframe mov
This strategy identifies severe close-to-close volatility shocks and triggers an immediate exit from any open long position. It enters long when the rate of change of close crosses above a user-defined momentum threshold and the close sits above the trend EMA.
Booz Strategy is a price-chart strategy that opens longs when a fast EMA crosses above a slow EMA and shorts when it crosses below, provided an optional longer moving-average trend filter agrees. SMA or EMA choices and lengths change the filter and a plotted s
This Pine Script v6 strategy gates long trades to a user-defined session window (default 0900-1700 Asia/Taipei) and enforces a maximum daily filled orders limit. It generates entries solely on fast EMA crossover above the slow EMA while inside the session. Pos
This strategy attempts to capture temporary market dips by identifying high-volume spikes during oversold conditions. It enters a long position when volume exceeds a upper standard deviation channel based on its simple moving average while the RSI remains belo
Psychological Levels is a price-chart strategy that draws quarter, half, and whole rounded price levels. A rounding value sets the level spacing, and each level type can be toggled with its own color, line style, and width. Buy and sell volume thresholds, a pr
A long-only breakout strategy that uses a stop-limit style entry. It tracks the highest high of the previous 35 bars and the range midpoint, and arms an order when the close is above the midpoint but below an activation level set a fraction of ATR above that h
Breakout Trend Follower V2 is a price-chart strategy that enters long when price breaks a recent swing high. It uses the recent swing low as the stop and moves that stop up as higher lows form, exiting when a higher low is breached. Users set the backtest date
MC Bias Strategy Example is a Pine Script strategy designed to demonstrate automated trade execution driven by an external Markov Chain bias indicator. The script accepts a user-selected data source to determine directional bias and executes trades based on th
This strategy calculates a linearly weighted moving average centerline explicitly using a while loop, accompanied by a standard deviation upper band. It enters a long position when the close crosses over the upper band. Exits occur when the price crosses back
This strategy trades breakouts, pullbacks, and reversals in the chosen direction on the price chart. Entries can require new long-term highs or lows and recent moving-average alignment, with optional weekly or monthly Supertrend filters. Exits can follow an op
A long-only strategy that enters when the close crosses above a 34-period simple moving average. Each trade has an ATR-based protective stop and is closed after a fixed number of bars if still open. Inputs set the average length, hold period, ATR length and st
This Pine v4 strategy draws on the price chart and filters breakouts with a fixed Supertrend, ATR length, volume moving-average markup, and moving-average alignment, plus short and long high-low periods. Trade direction defaults to long and can include shorts.
This strategy trades swing high breakouts on lower timeframes in alignment with higher-timeframe moving average trends. It evaluates price highs using a configurable lookback period and applies higher-timeframe moving average filters along with an optional ATR
The PineForge Loopback Method For is a strategy that calculates an average vote by comparing current close to historical closes across user-defined horizons. It enters a long position when the average vote crosses above a minimum threshold and price exceeds th
BT-5M-1H is a mean-reversion strategy designed for 5-minute charts that simulates 1-hour Bollinger Bands to identify overbought and oversold conditions. It takes positions when price crosses standard deviation multiplier levels and exits using configurable log
The Range Percent Breakout Strategy identifies range contraction and inside bar patterns where the current bar's range is within a specified percentage threshold of the previous bar. When this condition is met while flat, breakout levels are established above
The strategy calculates a volume-weighted moving average of close prices as the volume-weighted center and a price-volume trend smoothed by EMA as the signal line. It plots the VWMA and PVT distance on the price chart. The strategy enters long positions when p
This strategy combines percentage-based moving average channels, a linear regression curve, and an external timeframe Hull moving average variant to generate trade signals. Buy entries trigger when the linear regression crosses above the smoothed moving averag
This multi-filter strategy triggers intraday entries by combining Relative Strength Index (RSI) range conditions with Volume Weighted Moving Average (VWMA) crossovers, Simple Moving Average (SMA) price alignment, and volume oscillator filters. Users can restri
This strategy calculates an ALMA smoothed version of the close price and the correlation between close and volume. It enters long trades when price crosses above ALMA and correlation exceeds the minimum threshold. It exits on price crossing below ALMA, correla
BTC Bot is a trading strategy designed for cryptocurrency charts. It calculates Weekly Pivot Points and a smoothed momentum oscillator based on RSI and EMA. Long entries trigger when the oscillator crosses above zero, while short entries trigger when price bre
A momentum scalping strategy designed for 5-minute charts that combines the Relative Strength Index (RSI) with fast and slow Simple Moving Averages (SMA). It triggers long entries when the 14-period RSI exceeds 70 while the 5-period SMA is above the 20-period
A long-only strategy that plots the prior day's high, low and midpoint on the price chart. It enters long when the close crosses above the prior daily high, provided the prior day's range met a minimum percentage. It closes when price falls below the prior dai
This strategy constructs a synthetic Bitcoin price feed by averaging open, high, low, and close data across seven cryptocurrency exchanges. It derives a composite price value using quadratic averaging and plots a volatility envelope around its simple moving av
This strategy is a request.security parity probe. On a 15-minute chart it reads the 60-minute close with lookahead off and opens one long when that higher-timeframe close changes from the prior bar. It closes the position on the following bar and forces a flat
This strategy plots the RSI of Bitfinex Bitcoin long and short interest in a separate pane and colors a zero line from changes in those series versus short exponential moving averages. It opens a long when the long-interest RSI crosses above the short-interest
This strategy plots a fast and a slow exponential moving average on the price chart. It enters long and closes any short when the fast average crosses above the slow average, and enters short and closes any long when the fast average crosses below the slow ave
This strategy plots a moving average with a range band on the price chart and places stop entries when the source crosses the upper or lower band. Long and short orders are cancelled if price returns through the average or reaches the stored stop price. Option
ScarAlgo v1 is a trend-following and market-structure strategy plotted directly on the main price chart. It triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum os
A long-only strategy that enters when a 19-period EMA crosses above a 58-period EMA. Half of the position is closed by a market order once price reaches an ATR multiple above the average entry. The rest is closed when the EMAs cross back down or when the close
Bulle de bollinger is a price-chart strategy that plots a 20-period simple moving average and two-standard-deviation Bollinger bands, with a fill between the bands. It enters long when the prior bar's open and close are below the lower band, and short when the
This strategy draws up to three session range boxes and optional backgrounds on the price chart. It records each session high and low, then looks for a breakout during a later trading window after a set number of candles close outside the range. Entries can be
A long-only breakout strategy that waits for volatility contraction, defined as ATR falling below a set fraction of its own moving average. While that holds, it arms a buy stop just above the highest high of the prior 28 bars, plus a small ATR buffer, and canc
The script plots the SMA middle band along with Bollinger upper and lower bands with two standard deviations, filling the area between them on the price chart. It signals long entries on a close crossing above the lower band after the previous bar was below it
This strategy overlays a fast and a slow exponential moving average on the price chart and treats their crossovers as entries. It opens a long position when the fast average crosses above the slow average and, when shorts are allowed, opens a short on the oppo
This educational strategy executes trades based on specific days of the week, entering long on a chosen weekday (Monday, Tuesday, or Wednesday) and closing or reversing to short on Friday. It plots dynamic stop loss and take profit price levels directly on the
This session-based strategy triggers long entries at the start of the New York trading session when trend and momentum conditions align. It calculates a 38-period Exponential Moving Average and a 14-period RSI. A long position is taken at session open if the c
This strategy holds a long position between user-defined start and end dates. It enters long with the full equity while the chart time is inside that window and closes the position when time falls outside it. Day, month, and year inputs set both boundaries. It
This strategy executes long and short trades on the price chart by combining multi-timeframe smoothed Heikin-Ashi trends, higher-timeframe Hull Moving Average variations, and an ATR-based trailing stop. Users can adjust timeframes, smoothing lengths, Hull form
The Cadence Matrix Pairing strategy calculates price direction changes and volume confirmation across short, medium, and long horizons using close comparisons and simple moving averages of volume. It assembles these binary votes into a transposed matrix and ta
This strategy searches for long buy-and-hold entries on the price chart. It calculates a user-length EMA and a fixed 12/26 MACD, then opens a long position when price is within the maximum EMA distance, that distance is not shrinking, MACD is at or below zero,
This strategy calculates smoothed Heikin-Ashi candles alongside a moving average of the Relative Strength Index to enter trend reversals. It triggers long entries when smoothed Heikin-Ashi turns bullish while RSI trades above its moving average, and short entr
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.