The STRG One Bar Pursuit strategy identifies single-bar momentum reversals by monitoring shifts between bullish and bearish candlesticks starting from the year 2024. It enters a long position when a bullish candle follows a bearish candle and enters a short po
This strategy implements a single-layer perceptron machine learning model built from scratch to generate trading signals directly on the price chart. It calculates predictions based on sample size, threshold settings, and optional volatility or volume filters.
This strategy simulates a dollar-cost averaging (DCA) trading bot that enters positions when a short moving average crosses over or under a long moving average. It manages trades by placing scaled safety orders as price drops, lowering the average position ent
The ABC and Parabolic SAR Strategy calculates ABC chart patterns using a ZigZag structure alongside Fibonacci retracement levels and a trend cloud formed by six moving averages. It visualizes trend direction and pattern signals directly on the main price chart
This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-
Burgle Bounce is a price-chart strategy that treats a move toward one of up to four simple or exponential moving averages as a test when price comes within a user-set percentage of ATR, then exits toward a target average under a separate error margin. Longs an
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses
Greeffer RSI Strategy is a trading strategy that generates buy and sell entries based on Bollinger Bands and RSI levels. It places stop orders at upper and lower Bollinger Bands on band crossovers, and adds positions when RSI reaches extreme levels. Users can
This strategy trades Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co
This strategy executes trades based on candlestick engulfing patterns aligned with a 200-period exponential moving average trend filter. It enters long positions when a bullish engulfing candle follows three consecutive bearish candles while price trades above
This is a Pine Script strategy that executes a fixed historical backtest on BTC-USD. It places multiple manual trades using strategy.order at specific timestamps and prices, with corresponding close conditions based on time. Some trades are long and some are s
Simple Long Term Strategy plots five exponential moving averages on the price chart and trades crossovers between selected averages. It enters long when the first selected average crosses above the fifth and enters short on the opposite cross, only inside the
This strategy plots a Keltner channel from an EMA basis and ATR bands on the price chart. It enters long when price crosses back above the lower band while trading above a slower trend EMA, and short when price crosses back below the upper band while below tha
This strategy marks an n-bar pivot low and treats it as confirmed when the close crosses above that bar's high. On confirmation it stores a sell-to-close level at the pivot low, a standard-deviation trailing stop, a retrace level for adding size, and a rounded
This strategy draws optimal trade entry zones on the price chart from confirmed swing pivots. A later swing high after a swing low defines an up impulse, and the reverse defines a down impulse. It then marks the 0.62 to 0.79 Fibonacci retracement of that swing
This long-only trend-following strategy combines Ichimoku Kinko Hyo components with higher timeframe moving average filters. It triggers long entries when price trades above a higher timeframe EMA and a bullish Tenkan-Sen cross above Kijun-Sen occurs under fav
This strategy trades crossovers between a weekly-anchored Volume Weighted Average Price (VWAP) and a 4-hour 90-period exponential moving average. It plots both indicators directly on the price chart. A long position is opened when weekly VWAP crosses above the
This strategy trades trend pullbacks on the price chart. It goes long when the 50-period EMA is above the 200-period EMA, price is above the slower average, RSI of length 2 is below 20, and ADX is above 15. Shorts mirror that in a downtrend with RSI above 80.
This strategy evaluates momentum conditions in a separate pane to trigger long and short positions. Although titled after stochastic crossovers, the code calculates two Relative Strength Index series for trade signals. It enters long when the primary oscillato
This strategy builds Chandelier trailing stops from the highest high and lowest low over an ATR window, offset by an ATR multiple. The long stop only ratchets up and the short stop only ratchets down. Direction turns long when the close exceeds the prior short
SMC Quant Engine is an intraday trading strategy that combines Smart Money Concepts with a quantitative scoring system. It identifies order blocks and fair value gaps aligned with higher-timeframe 240-minute moving averages, ADX trend strength, and volume. Ent
Ichimoku Cloud — Large Cap is a long-only trend-following strategy designed for large-cap stocks. It calculates standard Ichimoku components, including Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span. Trades enter on a bullish Tenkan/Kijun
This strategy plots a 12-line moving average rainbow directly on the price chart using customizable types such as EMA, SMA, RMA, WMA, HMA, or VWMA. It enters positions based on moving average alignment and turnover signals across the ribbon. Exits are managed
This strategy identifies hidden bullish and bearish divergences between price pivots and the True Strength Index (TSI) indicator. It incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions en
This strategy identifies price consolidation ranges during Asia session hours and trades mean-reversion reclaims following liquidity sweeps. It marks an initial range box, measures sweep depths past box boundaries using ATR multiples, and enters trades when pr
This strategy calculates and plots up to three Double Exponential Moving Averages directly on the price chart. It signals entries based on DEMA crossovers and crossunders, using an optional third moving average as a directional trend filter. Position sizing al
This strategy calculates and plots the traditional Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It enters a long position when the MACD histogram is above zero and closes the long position when the histogram
This strategy applies a Supertrend calculation to Heikin Ashi price data to identify trend direction and potential market reversals. It executes trades based on Supertrend trend shifts and incorporates an On-Balance Volume filter. Risk management includes a co
Calculates composite scoring across multiple technical indicators including EMAs, SuperTrend, Parabolic SAR, Hull Moving Average, RSI, MACD, WaveTrend, Stochastic, Bollinger Bands, and ATR. Trading entries trigger on the price chart when cumulative weighted sc
This strategy evaluates low timeframe range breakouts filtered by higher timeframe inside bar conditions. It uses security calls to fetch higher timeframe price data to detect inside bars and color-code the chart background and bars. A customizable session fil
Calculates a 9-period fast EMA, 21-period slow EMA, and 200-period trend EMA overlaid on the price chart. It enters long positions when the fast EMA crosses above the slow EMA while price is above the 200 EMA, and short positions when the fast EMA crosses belo
A minimal strategy that trades the close crossing a 152-period simple moving average. It enters long when the close crosses above the average and short when it crosses below, reversing the position each time. The length is fixed with no adjustable inputs, and
This script is a simple moving average crossover strategy. It calculates and plots two SMAs on the price chart: a fast MA of length 9 and a slow MA of length 21. It generates long signals on the crossover of fast MA above slow MA and exits positions on the cro
This strategy combines multiple technical indicators into a unified trading system, including RSI, Williams %R, TSI, KDJ, Bollinger Bands %B, Nadaraya-Watson filter, and an RCI Ribbon. Traders can individually toggle each indicator module on or off while custo
A strategy based on the accumulation, manipulation, distribution idea. It finds a compressed Donchian range, waits for it to mature, then looks for a sweep of one boundary followed by a close back inside the range. A low sweep goes long and a high sweep goes s
A long-only crypto spot strategy that finds support and resistance from pivots on four timeframes (5 minutes to 4 hours) and enters on a retest of support within a set number of bars. It blocks entries where price pierced support and reclaimed it, can treat br
This strategy executes mean-reversion trades using the Relative Strength Index combined with Bollinger Band boundary audits. It enters long when the RSI crosses above the oversold threshold while the bar low touches or breaches the lower Bollinger Band. Conver
This strategy implements directional trading plans inspired by small-cap momentum patterns, incorporating Triangular Moving Average (TMA) crossings, VWAP thresholds, and breakout logic. It enters trades based on customizable combinations of price triggers, TMA
A strategy that places limit orders at the midpoint of a candle with no wick on the entry side, when a trend quality measure is above a bull threshold or below a bear threshold. Further filters cover close position within the candle, minimum body size relative
Multi Variable Declaration is a strategy designed to demonstrate multiple variable declaration syntax within a trading model. It calculates a 12-period price channel midpoint alongside an exponential moving average spread (EMA 9 minus EMA 21) to establish tren
A strategy that marks order blocks after an impulsive move: a candle opposite to the move whose follow-through exceeds an ATR multiple. A box is drawn on the price chart and a limit order is placed at the block midpoint when price retests it. An optional 200-p
This strategy detects Opening Range Breakouts on indices during the New York trading session. It captures the high and low of the initial 30-minute bar from 9:30 to 10:00 AM ET. Signals trigger on price crossing above the range high when combined with an EMA 2
A long-only moving average strategy that can read its signals from another symbol. It enters when the signal symbol closes more than one percent above a 120-period SMA, EMA or RMA, and exits when it closes one percent below, or optionally when its high stretch
BTC ATH Golden Cycle v5 is a Bitcoin-focused strategy that models long-term market trends based on Bitcoin halving cycles. It combines a ZigZag pivot library, Neo-Ichimoku Cloud, Rainbow ribbon visualizer, Geometric Mean Index, and automated Supply and Demand
Calculates classic support and resistance pivot levels using Traditional, Fibonacci, or Camarilla formulas from a higher timeframe. The strategy offers two execution modes: Bounce mode trades reversals within a customizable percentage buffer of support and res
This strategy plots the Relative Strength Index in a separate pane and fades extremes. It opens a long when RSI crosses back above the oversold level and a short when RSI crosses back below the overbought level. Open trades exit at a percentage stop loss or ta
A strategy on the price chart that turns external indicator signals into entries. Up to five signals can be enabled, each with long and short source inputs, a name and a usage mode. Position size is a fixed number of contracts, and an ATR length and an optiona
A long-only strategy for the gold-backed PAXG token that buys near the lower edge of a smoothed channel. The channel is an EMA of the highest high and lowest low over an adjustable range, and a buy needs price at the lower line with RSI turning up from oversol
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.