Corpus Array Basic State is a strategy designed to demonstrate state tracking using Pine Script arrays. It calculates a 20-period exponential moving average (EMA) and populates an array with closing prices during the initial bars. The strategy enters a long po
A strategy that trades crosses of price through VWAP when volume is higher than its 20-bar average by a set multiple. A cross up with a volume spike opens a long and a cross down opens a short, one position at a time. The stop is an ATR multiple from entry and
Hammers and Stochastic Strategy overlays signals on the price chart by combining candlestick pattern detection with the Stochastic oscillator. It identifies standard hammer and inverted hammer candles and validates them with Stochastic oversold and overbought
This strategy calculates ATR-based Chandelier Exit bands anchored to highest and lowest price extremes, plotting trailing stop levels directly on the price chart. It enters long or short positions when price crosses opposite bands, subject to an optional 200-p
An experimental strategy that places one long entry per day at 00:45 exchange time on a 15-minute chart, between a start date and an end date. It tracks a running average cost for a fixed BTC size and plots it as a blue DCA base line. All positions are closed
A strategy that looks for V-shaped reversals using deviation-based pivots from an imported library. A deviation multiplier and depth set how large a move counts as a pivot. After a pivot, the script checks for a first breakout and then a confirmation breakout,
The script calculates multiple offset VWAP lines alongside Doji candle filters to generate trading signals on a five-minute cryptocurrency chart. It identifies bullish entry conditions when non-Doji green candles break above upper VWAP thresholds, and bearish
This strategy plots a Supertrend line from ATR length and factor, plus a single EMA, on the price chart. It enters long when Supertrend turns bullish or while the trend is bullish and price crosses back above the EMA below the last entry price. Short entries m
This strategy is designed for 1-minute S&P 500 futures trading using multi-timeframe data and Fibonacci-weighted standard deviation bands around volume-weighted moving averages. It requests data from multiple higher timeframes without lookahead to prevent repa
STRG-Kijun is an Ichimoku-based trend-following strategy that generates trading signals when the Kijun-sen (base line) changes slope direction. It plots the standard Ichimoku cloud, baseline, lagging span, and directional signal arrows directly on the price ch
This strategy combines a triple exponential moving average system with a Stochastic RSI oscillator to identify trend-following entry opportunities directly on the price chart. It plots 50, 100, and 200-period EMAs while computing smoothed Stochastic RSI values
This strategy overlays Bollinger Bands on the price chart and trades a long squeeze setup. It enters long when band width is below 0.022 and volume is at least the seven-bar average, using a stop order at the lower band. It places a short order when close cros
Seykota Alt 22 is a trend-following strategy combining 55-bar Donchian channel breakouts for entries with a Parabolic SAR trailing stop for exits. Position sizing and initial stop-loss levels are determined using Average True Range (ATR). The strategy supports
This strategy detects momentum divergences based on shifts between color states of the Squeeze Momentum indicator. It enters long positions when lower price lows form alongside higher oscillator values, and enters short positions on higher price highs with low
The TSI Strategy - Eterna MCP calculates the True Strength Index using double-smoothed momentum and an exponential moving average signal line. It opens long positions on bullish signal line crossovers occurring below zero or in oversold territory, and short po
This strategy combines moving averages, ATR volatility bands and ADX trend strength on the price chart. It calculates ADX from price data and adjusts the ATR multiplier dynamically based on whether ADX is rising or falling. Long and short entries are controlle
The RSI Trend Strategy combines a short-period Relative Strength Index with 30-period and 100-period Simple Moving Averages to identify trading opportunities on the main price chart. Long positions trigger when a 5-period RSI drops below 30 while price sits ab
This strategy tests a short-only trend-following system based on 50-period and 200-period exponential moving averages. It enters short when the fast EMA is below the slow EMA, the close crosses below the fast EMA within a defined lookback period, and a bearish
This strategy overlays the price chart and switches among RSI-2 mean reversion, SuperTrend, MACD crossover, triple EMA, Bollinger Bands, or a combined multi-indicator mode. It enters from the selected signals and exits with percentage take-profit and stop-loss
This strategy builds the opening range high and low during the first configurable minutes of the New York regular session, then enters on a close break of that range. A long triggers when price crosses above the range high while flat; a short triggers on a cro
This strategy plots Bollinger Bands on the price chart and trades when a candle-zone price sits beyond a band. It enters long when a point a set percentage up from the low is below the lower band. Short entries are optional and off by default; otherwise it clo
This trading strategy combines Stochastic, RSI, ATR, and multiple Exponential Moving Averages (20, 50, and 200) alongside Fibonacci zones to generate trading signals for gold (XAUUSD). It supports flexible execution modes including scalp and confirm entries, c
This Pine Script v4 strategy draws in a separate pane. It calculates a WaveTrend oscillator from typical price, plots the fast and slow lines, their difference, and crossover markers against two overbought and two overold levels. It also builds Bollinger and K
This strategy detects pivot highs and lows on the chart to form range levels. It tracks recent pivot points and calculates a price range around their average adjusted by the difference percentage. Horizontal lines are drawn at potential break levels. The strat
A heavy strategy and chart overlay that combines an ATR-based trend core, three lookback layers, volume profile consolidation zones, harmonic, classical and candlestick pattern engines, and forecast cones with a feedback learning rate and Bayesian lookback. Op
This validation strategy monitors price crosses against a dynamic level derived from a 20-period simple moving average drawn as a line object. It enters a long position when the closing price crosses over the line level and exits when price crosses under it. A
This strategy opens a long position when the chart time is exactly 08:30 UTC and closes that long when the time is exactly 08:00 UTC. It draws on the price chart and uses no user inputs. The main behavior is a clock-based daily cycle rather than an indicator s
A strategy for 5-minute charts that turns a triggered retest of a broken 15-minute delta level into orders. Entry needs a new trigger, a flat position, a cooldown module allowing the trade and, by default, agreement with the 4-hour bias. The stop sits at the z
A long-only strategy that uses an EMA ribbon built from the 144-period EMA of highs and lows as the trend filter, with an optional rising-slope requirement and a set of Fibonacci-length EMAs for alignment. After a shallow pullback into the ribbon it stores the
TeleNexus Sovereign Calendar Swing V6 is a time-driven trading strategy that executes trades based strictly on day-of-week seasonality. It opens a long or short position on a user-defined entry weekday when flat and closes open positions on a designated exit w
A strategy version of the paint bar setup. It detects candles whose low is above the high from two bars earlier, or the mirror case, and trades only inside up to three user-set sessions on weekdays. Inputs set the take profit multiplier, stop offset in bars, a
Corpus Array Stats Helpers is an experimental Pine Script strategy designed to test array manipulation and moving average functions. During the first 50 bars, the script collects close prices into an array to perform statistical calculations like sum, average,
A strategy that looks for spring and upthrust patterns inside a consolidation range. A spring is a high-volume bar that dips below the recent range low, closes back above it and closes up. An upthrust is the mirrored move above the range high. A range counts a
A strategy that reads an external oscillator, called the thermometer, through a source input and trades a chosen signal symbol, SPX by default, according to high and low temperature thresholds of 75 and 25. Buy and sell modes include buying high and selling lo
This strategy combines exponential moving averages, a Stochastic oscillator, and Squeeze Momentum calculations to identify long trade entries on the price chart. It enters long positions when the Stochastic K line crosses above D in oversold territory while pr
The Double EMA Crossover strategy plots a fast 9-period EMA and slow 21-period EMA on the price chart with a 200-period trend EMA filter. It generates long signals on golden crosses when price exceeds the trend EMA and MACD is bullish, and short signals on dea
This strategy captures the first bar of each new day as an opening range and plots those high and low levels on the price chart. It enters one long position if price trades above the range high, or one short if price trades below the range low, then blocks fur
An experimental strategy that buys a fixed BTC size once a day at 00:45 exchange time within a start and end date window, building a dollar-cost-averaged long. When price is below the average cost, it adds a short hedge sized to match the open long. A selector
A Pine v4 strategy that plots a 28-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
Supertrend + RSI Strategy [Alose] combines the classic Supertrend indicator with the Relative Strength Index (RSI) to enter and exit positions on the price chart. Long trades open when the Supertrend is bullish and RSI crosses above 50, while short trades requ
This overlay strategy is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an
This strategy calculates momentum signals using MACD crossovers filtered by EMA trend filters and an optional RSI indicator. It enters long and short positions directly on the price chart using customizable percentage-based stop loss and take profit targets. T
This strategy trades on the price chart from the current bar versus the prior close. It enters long when the bar closes above its open and that open is above the previous close, and enters short when the bar closes below its open and that open is below the pre
This strategy tracks an opening session time range to establish directional bias and triggers pullback trades using Stochastic RSI. Once price breaks out of the initial range, it establishes a directional bias and enters when the Stochastic RSI crosses over in
This strategy enters long or short when price breaks a Keltner channel built from an exponential moving average and an ATR multiple. It sizes each unit from a fixed equity risk percentage and an ATR stop, then can add units as price moves in the trade directio
Divergenced G003 is a strategy that identifies momentum divergences based on Squeeze Momentum Indicator color transitions to trigger long and short entries. Trades are exited using Curie closing moving average lines or configurable percentage-based stop loss,
This strategy calculates the Ultimate Oscillator in a separate pane from buying pressure and true range over fast, medium, and slow lengths, combined with a four-two-one weighting. It enters long when the oscillator crosses above the oversold level while remai
MA ATR ADX PP Strategy combines customizable moving averages with Average True Range (ATR) and Average Directional Index (ADX) filters to generate trade entries and exits on the main chart. The script supports eight moving average types, including SMA, EMA, Hu
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.