R19 combines trend-strength and price indicators to generate long and short signals, primarily using a configurable reference market such as BTC/USDT. Its conditions use MACD crossovers, ADX strength, price relative to a simple moving average, RSI relative…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
4,613 documents
This Pine strategy places stop orders just above the highest high and below the lowest low over a configurable lookback. A break through either boundary can open a long or short position, with pyramiding disabled. Entries are only submitted when the script…
This chart indicator estimates the outcome of investing a fixed amount at a chosen daily, weekly, or monthly interval over a user-selected date range. For each eligible period, it divides the contribution by the selected timeframe’s price, accumulates asset…
This Pine strategy builds an adaptive moving average using Kaufman’s Efficiency Ratio (ER): the average responds more quickly when price movement is efficient and more slowly when it is choppy. It estimates deviation around the KAMA to form bands, classifies…
This strategy uses a simple moving average crossover to start a directional grid. On a bullish crossover it places up to ten stop entries at successively higher percentage levels; on a bearish crossunder it places corresponding entries below the trigger…
This strategy uses three-bar swing patterns as entry signals and filters them with a daily fractal bias. A local bullish fractal occurs when a bar’s low is below the preceding low and the following bar’s low is higher; the bearish version reverses the high…
This strategy combines fast and slow EMA crossovers with order-flow and trend filters. A bullish crossover qualifies when either open-interest change exceeds its threshold or smoothed signed volume is positive, and price is above the currently visible…
This script builds a smoothed reference line from a moving average adjusted toward VWAP, then places two pairs of bands around it using rolling price standard deviation. The line is called an ML prediction in the script, but the shown calculation is a…
This strategy combines Bollinger Band position, long moving averages, and RSI into a score for identifying oversold conditions. A close below the lower band adds a point; being below progressively longer averages adds up to 1.5 points; and lower RSI readings…
This MCX silver strategy combines a configurable higher- or lower-timeframe entry signal with position and loss controls. The long signal can require price above a volume-weighted moving average, above a lower standard-deviation band, and positive rate of…
This strategy uses a lagging Parabolic SAR crossing price to identify directional entries and exits. Once a position is active, Williams-style fractal breakouts help generate take-profit or re-entry events: favorable price progress through higher or lower…
This educational template demonstrates how a rule-based strategy can manage several distinct entries, each with its own stop-loss and take-profit levels. Bullish and bearish candle patterns trigger long or short orders, while direction controls and an…
This intraday strategy defines an opening range from the first three five-minute candles after the regular-session open. It waits for a five-minute close beyond the range high or low and also requires a fair value gap relative to a candle ten minutes…
This long-only dollar-cost-averaging framework is calibrated for JUP perpetual futures on a four-hour chart. It opens a base position when four-hour RSI falls below a configurable oversold threshold. If price declines from the base entry, up to five…
The STP Flip strategy uses an EMA-centered band widened by an ATR multiplier to determine direction changes. It is designed to remain in a position until the indicator flips, with optional per-trade profit or loss limits and a trailing profit stop. Settings…
This strategy uses the Arnaud Legoux Moving Average (ALMA) as a directional filter: it favors longs when price is above the average and shorts when price is below. Entries are allowed only during selected London and New York trading windows. An optional TTM…
This script divides a chosen price range into evenly spaced grid levels and trades only long. When price falls below a grid level, it opens a position sized from an equal share of initial capital; when price rises across the next level, it closes the…
This strategy script describes a long-only averaging plan for the POL perpetual market. It opens a base position when the four-hour RSI falls below an oversold threshold, then places up to five additional buys at fixed percentage declines from the original…
This Pine Script strategy template organizes the components needed to test a trading system: date filters, indicator and filter placeholders, entry and exit sections, position sizing, stop and target calculations, and performance displays. It includes…
This strategy script targets Micro E-mini Nasdaq futures during the New York session. It uses a 20-period exponential moving average as a directional filter: a long setup occurs when price closes above the average after touching it, and a short setup occurs…
This ETH strategy opens a long position when a 14-period RSI on the four-hour timeframe falls below a configured threshold. After entry, it adds up to five averaging orders at fixed percentage declines from the base entry price, with order sizes increasing…
This script describes a long-only grid strategy for XAU. It places grid levels between user-defined upper and lower prices, using either geometric spacing or arithmetic spacing. A close crossing downward through a level triggers a buy; a later upward…
This intraday strategy records the high and low during a configurable opening window, then waits for price to close beyond either boundary. After an upside or downside breakout, it looks for a later rejection at the session's anchored VWAP: price must touch…
The Vegas Reversal Strategy treats a sufficiently large one-sided candle wick as a possible reversal signal. It measures the upper and lower shadows against a configurable fraction of the candle’s closing price, and ignores a bar when both shadows meet the…