This strategy uses crossovers between two smoothed MACD signal lines to open long or short positions. After an initial entry, it places additional limit orders at progressively farther retracement levels, increasing order size by a configurable multiplier.…
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 mean-reversion approach measures price against a moving average and divides deviations into bands. It scales into a position as price moves farther below the average, using larger unit amounts at deeper levels, then sells in corresponding stages as…
This example implements a daily breakout approach for a futures contract. It uses the previous session’s high and low as upper and lower trigger levels. A move above the high sets a long target, while a move below the low sets a short target. The example…
This excerpt describes a long-only dollar-cost averaging framework using two separate lower-timeframe RSI signals. An RSI crossing upward through an oversold threshold arms a base entry; an RSI crossing downward through an overbought threshold can trigger a…
This document presents the setup for a long-only EURUSD grid strategy. It places grid levels between configurable high and low prices, with geometric spacing by default and arithmetic spacing as an alternative. The accompanying description says the bot buys…
This example implements a two-sided grid for a futures contract. Starting from a reference price, it calculates successive levels at fixed percentage intervals: lower levels for a long grid and higher levels for a short grid. As price crosses levels, the…
This system is designed for range-bound markets and uses ADX to gate trades when directional strength is low. It contains two separate, mutually exclusive signal modules: one combines price deviation from the Bollinger Band middle line with MACD crossovers…
This Pine Script template combines RSI threshold signals with risk-based position sizing. It enters long when RSI crosses below the oversold level and short when RSI crosses above the overbought level, provided the current position allows that direction. RSI…
This position-sizing example links trade quantity to account equity. It divides equity by a leverage parameter to derive a benchmark, rounds that benchmark down to a whole number with a minimum of one, then adjusts the quantity in unit steps toward that…
This strategy combines three indicators as a multi-part entry filter. For a long, QQE MOD must turn blue, SSL Hybrid must be blue with price above its moving-average channel, and Waddah Attar Explosion must be green and above its explosion threshold. Short…
This strategy uses the relative position of fast and slow simple moving averages to signal long or short positions. Its default periods are 20 and 50. A 14-period ATR multiplied by a configurable factor sets the stop distance, while a chosen fraction of…
This long-only system scores trend conditions using eight components: the ordering and separation of smoothed EMAs, their slopes, path efficiency, positive momentum and rising-bar persistence, ATR relative to its baseline, breakout strength, and pullback…
The AC countertrend strategy buys sharp pullbacks while a broader trend filter remains bullish. It defines that regime using a faster 40-day EMA above an 80-day EMA. Pullback depth is measured as the gap between the close and the highest close over 20 days,…
This educational strategy uses separate moving-average crossover rules for entering and exiting positions. Entry requires the fast and slow averages to remain crossed for a configurable observation period. While a position is open, a second pair of averages…
This strategy script combines an exponential moving average filter with the previous daily candle and trade management rules. It offers switches for long and short entries, uses a configurable EMA length set to 200 by default, and can filter trades using the…
This trend-following breakout method combines fast and slow EMAs, RSI, prior-bar price levels, and ATR-based exits. It treats the EMA relationship as directional context, requires RSI above or below its midpoint for confirmation, and enters when price…
The described approach buys after a 5% decline, adds long positions on further weakness within a limited candle window, and aims to close each position after a 5% rise from its entry. It allows up to four additions and describes a 3% stop loss. The published…
This strategy combines RSI thresholds with the rate of change of a weighted moving average to generate directional trades. The stated long condition is RSI above 60 alongside a negative moving-average ROC threshold; the short condition uses RSI below 40 and…
This Bitcoin strategy combines a one-hour EMA trend filter, a 15-minute RSI pullback condition, and a three-minute Stochastic RSI crossover for entry timing. Longs require an upward higher-timeframe trend and weaker readings on the shorter intervals; shorts…
This strategy pairs moving average trend signals with Average True Range based profit targets and volatility-sensitive position sizing. The description says to go long when a shorter average crosses above a longer one, and short on the reverse cross. After…
This EUR/USD strategy smooths a 20-period RSI with a five-period EMA and uses the 50 level as a directional trigger. A cross above the threshold opens a long position, while a cross below opens a short position. Each side has a fixed 50-pip profit target and…
This intraday futures strategy records the high and low of the 09:30 New York one-minute candle as an opening range. From 09:31 through 11:30, it looks for a candle close to cross beyond either boundary, with the prior close still on the other side. It…
This short script demonstrates a basic scheduled accumulation method: it checks the date once per minute and submits one market buy for a configured amount when the date differs from the last recorded investment date. The amount is fixed rather than adjusted…
This document presents a long-only XRP perpetual futures approach that arms an entry when 4-hour RSI(14) falls below 28. After the base position, it places up to five averaging orders at fixed price declines of 2%, 5%, 9.5%, 16%, and 25% from the base entry,…