Pine strategies & indicators
The Trigger Terminal script library: 98 strategies and indicators that run on exchange candles — back-test them on any pair, compare them, forward-test them on paper, or run them as bots.
Baseline
Ehlers Instantaneous Trendline (E.I.T): John Ehlers' near-zero-lag trend line with an alpha smoothing factor and a trigger line. Long when t
Indicator · 1 userEhlers Two Pole Super Smoother @DaviddTechEhlers Two-Pole Super Smoother: John Ehlers' two-pole filter that removes market noise with much less lag than an EMA of the same period. Lo
IndicatorG-Channel Trend DetectionG-Channel trend detection (full credit to AlexGrover): an efficient upper / lower channel of the price extremities with a filtered average i
IndicatorHull Moving AverageHull Moving Average (HMA): Alan Hull's weighted moving average that is both smooth and fast. The line colours with its direction; long when
IndicatorJurik Moving Average @DaviddTechJurik Moving Average (JMA): a very smooth, low-lag moving average with adjustable phase and power. The line colours green when rising and re
IndicatorMagic TC Pullback @DaviddTechMagic TC Pullback: two T3-style smoothed curves, a fast and a slow one. When the fast curve is above the slow one the trend is up and pullba
IndicatorRegime-Adaptive Robust Moving AverageA robust average that speeds up in trends, resists spikes, and marks real deviations.
IndicatorT3 @DaviddTechPart of the 100 scripts library built for Botify the Backtester using the Boilerplate from DaviddTech.
IndicatorTREND AKKAMTrend AKKAM: an ATR-based trailing trend line (or a fixed price-step mode) that flips when price closes through it. Long while price is abov
IndicatorTriple T3 Signal @DaviddTechThree T3 moving averages (Tillson's triple-smoothed EMA) of different lengths stacked together. When the lines are aligned and rising the tr
IndicatorTurtle Trade Channels Indicator @DaviddTechTurtle Trade Channels: the Donchian breakout channels of the original Turtle system — an entry channel (highest high / lowest low) and a sho
IndicatorBonds & Rates
Commodities
Confirmation
Coppock Curve: a weighted moving average of the sum of a long and a short rate of change, originally a long-term momentum timer. Long when t
IndicatorCoral Trend Indicator @DaviddTechCoral Trend Indicator: a cascade of exponential smoothings (in the style of LazyBear's version) that gives a smooth trend line with little l
IndicatorDominant Cycle Index OscillatorFinds the dominant cycle with a frequency scan, and times events only when that cycle is reliable.
IndicatorDorsey inertia - DI @DaviddTechDorsey Inertia (DI): Donald Dorsey's Relative Volatility Index (1993) smoothed with a linear regression to show the trend's inertia. Long wh
IndicatorDorsey inertia - DI @DaviddTechDorsey Inertia (DI): Donald Dorsey's Relative Volatility Index (1993) smoothed with a linear regression to show the trend's inertia. Long wh
IndicatorErgodic Oscillator RefactoredErgodic Oscillator (William Blau's double-smoothed momentum, the basis of the TSI) with a signal line and overbought / oversold levels. Long
IndicatorGrucha Percentage Index (GPI) with SMAGrucha Percentage Index (GPI): the share of rising candles over the last N bars, shown as a percentage around zero, with an SMA as a signal
IndicatorHACOLTHACOLT — Heikin-Ashi Candlestick Oscillator Long Term (Sylvain Vervoort, port by LazyBear): combines Heikin-Ashi candles with TEMA / EMA smo
IndicatorJpOscillatorJP Oscillator: a momentum oscillator built from a weighted price buffer and smoothed with a choice of moving average, plus a moving average
IndicatorKneedle Inflection EngineA pane-based momentum-inflection oscillator. It normalizes momentum into one 0-100 curve, finds the knees where it bends sharply, then confi
IndicatorKUSKUS Starlight + EMA @DaviddTechKUSKUS Starlight + EMA: finds where price sits inside its recent high-low range, smooths it and runs it through a Fisher transform to get a
IndicatorKUSKUS Starlight + EMA @DaviddTechKUSKUS Starlight + EMA: finds where price sits inside its recent high-low range, smooths it and runs it through a Fisher transform to get a
IndicatorLinear Regression Slope Histogram - Heartbeat Logic @DaviddTechLinear Regression Slope histogram (original by SparkyFlary, formula by alexgrover): the slope of a rolling linear regression line, with an E
IndicatorMarket Cycle SynchronizerA lower-pane cycle oscillator. It estimates the market's rhythm, shows where price sits in its cycle, checks whether a clean cycle is presen
IndicatorMetro Advanced with HeartbeatMetro Advanced: a fast and a slow StepRSI line on top of RSX (Jurik) or Cuttler's RSI. Long when the fast step line is above the slow one, s
IndicatorPID Trend ScoreA pane-based trend & directional-context indicator. A control-system score reads pressure, persistence, and short-term change, then filters
IndicatorPuddles Top & Bottom FinderPuddles Top & Bottom Finder: integrates the true range over several windows with Simpson's rule to measure how unusual the current move is,
IndicatorSmith-Predictor State EstimatorA pane-based statistical momentum & inertia oscillator. It estimates directional state with a predictor / correction engine, normalizes it t
IndicatorSmoothed Momentum - @DaviddtechSmoothed momentum (ESAM): momentum of price passed through John Ehlers' Super Smoother filter (2 or 3 poles) to remove noise without much la
IndicatorTop Bottom Indicator - TBITop Bottom Indicator (TBI, original idea by ceyhun): measures how far price is from its recent lowest low and highest high to spot exhaustio
IndicatorTrend Direction Force Index TDFI @DaviddTechTrend Direction Force Index (TDFI): compares a moving average with a smoothed version of itself and normalises the difference to show trend
IndicatorWilliams Percent Range - WPRWilliams %R momentum oscillator (-100 to 0) with an EMA of %R as a signal line. Long when %R is above its average (optionally only when leav
IndicatorXMA Coloured Histogram @DaviddTechXMA coloured histogram: the change between the current and previous EMA, shown as a histogram that only turns coloured when the move is bigg
IndicatorZero lag MACD @DaviddTechZero-lag MACD: MACD built from zero-lag moving averages so crosses come earlier than the classic MACD, with a choice of MA types for the osc
IndicatorCrypto
A regime-aware, self-adapting Kalman trend & event engine — rebuilt from the first version into a clean, publication-ready release.
Strategy · 1 userBitcoin Overnight Sessions (BITO)It holds Bitcoin only overnight, on three nights a week: Friday to Monday, Monday to Tuesday and Tuesday to Wednesday. US stock market hours
StrategyComputing Power Factor (BTC + ETH + LTC)This strategy trades Bitcoin, Ethereum and Litecoin, and only ever buys. It never shorts and never uses leverage. It only puts a small slice
StrategyCrypto Network Size Factor (BTC + ETH + LTC)Once a month this strategy looks at Bitcoin, Ethereum and Litecoin and asks how fast each coin's network grew. It measures that with hash ra
StrategyTEMA Trend Breakout on DOGE (12h) (😎 VLAD)Trades the Dogecoin perpetual future (DOGEUSDT) on Binance on 12-hour bars, long only. It buys when price makes a new 20-bar closing high wh
StrategyTop 5 Altcoins With a Bitcoin Short HedgeThis is a buy-and-hold altcoin portfolio with a Bitcoin short bolted on as insurance. On the first day of each year it buys the five largest
StrategyForex
This strategy trades eight currencies against the US dollar: the Australian, Canadian and New Zealand dollars, the euro, the British pound,
StrategyInflation and the US Dollar (UUP)This one trades the US dollar fund UUP, long or short, and only looks at the market once a month. On the first trading day of each month it
StrategyJump-Only FX Momentum (5 EM Currencies)This strategy trades five emerging-market currencies against the US dollar: the Czech koruna, the Hungarian forint, the Mexican peso, the Po
StrategyGold & Metals
This strategy trades the gold ETF (GLD) around four big gift-giving holidays: Christmas Eve, Lunar New Year, Diwali and Eid al-Fitr. It buys
StrategyGold/Silver Kalman Pair Trade (GLD + SLV)This strategy trades gold against silver using two funds, GLD for gold and SLV for silver. It is always either flat or holding one fund long
StrategyMulti-Asset
This is a simple stock and gold portfolio with a small Bitcoin add-on. Most of the time it holds 30% in the S&P 500 fund (SPY) and 70% in th
StrategyBitcoin Signal for Growth Stocks (QQQ + SHY)This strategy always has all of its money in one of two funds: the Nasdaq-100 fund (QQQ) or a fund of 1 to 3 year US government bonds (SHY).
StrategyBonds Market Timing (IEF/SHY/HYG/LQD/TIP)This strategy splits money across five US bond funds: 7-10 year Treasuries (IEF), 1-3 year Treasuries (SHY), high-yield company bonds (HYG),
StrategyChatGPT Trend Allocation (SPY + IEF + DBC)This strategy splits money across three funds: US stocks (SPY), 7-10 year US Treasury bonds (IEF) and a broad commodities fund (DBC). Every
StrategyCommodities Timing on Fed Policy (5 ETFs)This is a monthly portfolio of five funds: US stocks (SPY), stocks of other developed countries (EFA), 7-10 year US Treasuries (IEF), invest
StrategyCrisis Hedge Seasonality (6 Safe-Haven ETFs)This strategy rotates between six funds that people tend to buy when markets panic: the Swiss franc (FXF), the Japanese yen (FXY), the US do
StrategyFlexible Asset Allocation (7 ETFs + Cash)This is a monthly rotation across seven funds that each stand for a whole asset class: US stocks (VTI), developed stocks outside the US (VEA
StrategyLethargic Asset Allocation (QQQ/IWD/GLD/IEF)This is a lazy four-fund portfolio. It always holds 25% each in IWD (US large value stocks), GLD (gold) and IEF (7 to 10 year US Treasuries)
StrategyPaired Switching: Stocks vs Bonds (SPY + AGG)This strategy holds one of two funds at a time: SPY, a US stock market fund, or AGG, a US bond fund. Four times a year, at the start of Marc
StrategyQQQ/Bitcoin Breakout Rotation (QQQ + BTC)This strategy keeps all its money in one of three places: the Nasdaq-100 fund (QQQ), Bitcoin, or cash. Every US trading day, just before the
StrategyRegime-Aware Cap Rotation (SPY+MDY+IJR+SHY)This strategy holds one US fund at a time and only ever buys. Three of the choices are stock funds split by company size: large companies (S
StrategyTrading VIX ETFs (SVXY + VXX + VIXM)This strategy trades volatility funds: funds that follow VIX futures, the market's fear gauge. Two of them gain when fear falls (SVXY and ZI
StrategyStocks & Indices
This strategy rotates between four commodity funds: farm goods (DBA), industrial metals (DBB), energy (DBE) and precious metals (DBP). It on
StrategyCommodity Index Bond Timing (6 Countries)This strategy trades the 10-year government bonds of six countries: the US, the UK, Germany, Japan, Canada and Australia. Once a month it lo
StrategyCountry Equity Momentum (24 Country ETFs)This strategy picks between the stock markets of 24 countries, using one fund per country: 23 iShares country funds plus SPY for the US. It
StrategyFirst Half-Hour Reversal (SPY+QQQ+IWM+DIA)This strategy trades four big US stock index funds: SPY (S&P 500), QQQ (Nasdaq 100), IWM (Russell 2000) and DIA (Dow Jones). Every morning i
StrategyFlight to Quality in Bonds (6 Countries)This strategy trades government bonds of six countries: Australia, Canada, Germany, Japan, the UK and the US. Every day it looks at how jump
StrategyForeign Central Bank Drift (EWJ + EWL + EWU)This strategy trades three US-listed country stock funds, each tied to its own central bank: Japan (EWJ, Bank of Japan), Switzerland (EWL, S
StrategyGap-and-Go on SMCI (2h) (😎 VLAD)Trades Super Micro Computer (SMCI) stock on 2-hour bars, long only. It buys when a bar opens more than 0.3% above the previous close and the
StrategyGrowth Gap Factor in Bonds (5 Countries)This strategy trades the 10-year government bonds of five countries: Australia, Canada, Germany, the UK and the US. Once a year, at the end
StrategyLow-Volatility Momentum on APP (1d) (😎 VLAD)Trades AppLovin (APP) stock on daily bars, long only. It buys when the stock is above where it was 50 trading days ago and its recent volati
StrategyML Volatility Targeting of Equity Indices (Quantpedia #799)increase exposure when calmer markets are expected and reduce it when volatility is forecast to rise.
StrategyNiche ETF Reversal (DBMF + WTMF + MNA + PBP)This strategy trades four small, specialised funds: two managed-futures funds (DBMF and WTMF), a merger-arbitrage fund (MNA) and a covered-c
StrategyOutside-Bar Reversal on IGV (2h) (😎 VLAD)Trades IGV, the iShares software-sector ETF, on 2-hour bars, long and short. It looks for an outside bar, one that trades above the previous
StrategyOvernight Anomaly in US Stocks (SPY)This strategy buys the S&P 500 ETF (SPY) a few minutes before the stock market closes and sells it at the next morning's open. It holds the
StrategyRange-Position Breakout on IBM (3h) (😎 VLAD)Trades IBM stock on 3-hour bars, long only. It buys when the close sits in the top 10% of the last 50 bars' high-low range, right up against
StrategySMA Trend + Big Bar on ARKK (3h) (😎 VLAD)Trades the ARK Innovation ETF (ARKK) on 3-hour bars, long and short. When the 20-bar average is above the 100-bar average and a big green ba
StrategySqueeze Breakout on NET (2h) (😎 VLAD)Trades Cloudflare (NET) stock on 2-hour bars, long and short. It waits until prices have gone quiet, then buys a close above the 50-bar high
StrategyStd-Dev Thrust on LG Chem (3h) (😎 VLAD)Trades LG Chem shares on the Korea Exchange (KRX:051910) on 3-hour bars, long and short. It buys when one bar's close jumps above the previo
StrategyTrend + Quiet Pullback on SNPS (2h) (😎 VLAD)Trades Synopsys (SNPS) stock on 2-hour bars, long and short. In an uptrend it buys a quiet bar that has dipped below its 50-bar average; in
StrategyTurn of the Month in Equity Indexes (SPY)This strategy trades the S&P 500 ETF (SPY) once a month. It buys 5 minutes before the close on the 5th-to-last trading day of the month and
StrategyUnemployment Gap Bond Factor (5 Countries)This strategy trades 10-year government bonds of five countries against each other: Australia, Canada, Germany, the UK and the US. Once a mo
StrategyVortex Trend on DELL (2h) (😎 VLAD)Trades Dell Technologies (DELL) stock on 2-hour bars, long only. It buys when the Vortex indicator's up line crosses above its down line, a
StrategyYield Change Reversal in Bonds (5 Countries)This strategy trades the 10-year government bonds of five countries at once: Australia, Canada, Germany, the UK and the US. It holds some of
StrategyZ-Score Thrust on Tata Steel (2h) (😎 VLAD)Trades Tata Steel shares on India's NSE on 2-hour bars, long only. It buys when the price starts rising much faster than it normally does, m
StrategyVolatility
Volume/Volatility
ATR Bands (original by AlexanderTeaH): upper and lower bands placed a multiple of the Average True Range above and below price. Use them for
IndicatorGarman Klass Volatility @DaviddTechGarman-Klass volatility: an open-high-low-close volatility estimator that is more efficient than close-to-close volatility, with a moving av
IndicatorHawkEye Volume @DaviddTechHawkEye Volume (after LazyBear, code by aamonkey): colours each volume bar green, red or grey depending on where the bar closed in its range
IndicatorJurik Volatility BandsJurik Volatility Bands: adaptive upper and lower bands built on Jurik's volatility measure around a smooth centre line. Price pushing throug
IndicatorMarkov-EWMA Volatility GovernorAn adaptive overlay moving average governed by a volatility-regime model. It reads whether conditions are stable, neutral, or explosive, ada
IndicatorStiffness Indicator @DaviddTechStiffness Indicator (Markos Katsanos): the share of the last N closes that stayed above a moving average minus a fraction of the standard de
IndicatorTTM Squeeze @DaviddTechTTM Squeeze (original credits Beardy_Fred): Bollinger Bands inside Keltner Channels mark a volatility squeeze (dots), and a momentum histogr
IndicatorTTM Squeeze @DaviddTechTTM Squeeze (original credits Beardy_Fred): Bollinger Bands inside Keltner Channels mark a volatility squeeze (dots), and a momentum histogr
IndicatorVolatility Quality - Zero Line Averages @DaviddTechVolatility Quality — zero-line averages (Thomas Stridsman's VQ): weights each bar's direction by how big its range is compared with the true
IndicatorVolume OscillatorVolume Oscillator: the difference between a short and a long moving average of volume, in percent. Positive means volume is expanding, negat
IndicatorOther
Estimates the effective dimension of recent returns - structure versus noise - as a signed trend/chop score.
IndicatorLyapunov Exponent EstimatorPhase-space regime detection - chaos versus stability - with confirmed breakout and reversion events.
IndicatorMACD oversold + overbroughtMACD with overbought / oversold zones: the classic MACD and signal line with Bollinger Bands drawn on the MACD itself, so extreme readings s
IndicatorMultiscale Wavelet Entropy ScoreA structure-aware directional indicator, rebuilt from the first version into a clean, publication-ready release. It asks whether the market
Indicator