This strategy builds two SuperTrend lines from moving-average price estimates and ATR bands, then classifies trend direction with a weighted k-nearest-neighbors procedure. For each line, it stores recent SuperTrend values and labels them according to whether…
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
8,851 documents
This strategy pairs zero-line crossovers of the Awesome Oscillator (AO) with a short exponential moving average (EMA) as a directional filter. It enters long when AO crosses above zero while the close is above the EMA, and enters short when AO crosses below…
This script combines several configurable trading approaches: TEMA and least-squares moving-average signals, reversal indicators, swing-based zones, and a separate long-term/short-term moving-average method. It calculates trend and volatility references,…
This long-only trend strategy uses a rising 40-period EMA as its directional guide and requires ADX to exceed a configurable threshold for its base entry. It also offers pullback re-entries: price must approach the EMA within a selected ATR distance, then…
This strategy uses a 9-period and 20-period EMA crossover for entries, with the 50-period and 200-period EMA relationship defining the broader direction. It adds confirmation from RSI and above-average volume, restricts trading to a configurable UTC window,…
This Bitcoin-focused trend-following strategy looks for a volatility squeeze to release, then requires directional agreement from several indicators before entering. A squeeze is defined by Bollinger Bands sitting inside Keltner Channels; a release is…
This intraday strategy seeks pullbacks that resume an established short-term trend. For a long, the fast EMA must be above the slower EMA, price must satisfy an optional longer-term EMA filter, and the bar must dip to or below the fast EMA before closing…
This strategy combines several technical filters to seek intraday entries in the direction of a broader bias. It checks whether price is above or below a moving average calculated on a 15-minute timeframe, then requires a short moving-average cross, matching…
This strategy looks for price to break the high or low formed by the previous two candles, with a 50-period exponential moving average as a directional filter. A long signal requires price above the average and a move above the two-bar high; a short signal…
This crypto strategy combines swing failure patterns with confirmation from volume, stablecoin dominance, and aggregated open interest. A long setup follows a break below a prior swing low and close back above it; shorts use the reverse pattern. The sweep…
This strategy takes long or short entries when the direction of a Supertrend indicator changes, using confirmed direction values. A separate EMA-and-ATR channel is plotted for context, but the shown entry conditions are driven by Supertrend changes rather…
This indicator scans a configurable range of lookback periods and selects a regression window when its Pearson correlation reaches a chosen positive or negative threshold. It plots the selected correlation alongside a reference from the longest period, and…
This strategy uses Supertrend line crossings to enter long or short trades, optionally requiring price to be on the appropriate side of a 200-period EMA and ADX to exceed a threshold. An optional session filter restricts entries to Indian market hours, and…
Designed for four-hour charts, this strategy seeks swing entries through a fast and slow EMA crossover. A long entry requires the fast EMA to cross above the slow EMA, with RSI and ADX thresholds, a stochastic condition, a higher close than the previous bar,…
This strategy uses an ATR-based Supertrend to identify directional changes and enter long or short positions when its trend state flips. It builds trailing upper and lower bands from the midpoint price and ATR, with a choice between built-in ATR and a simple…
This strategy combines an ATR based trend tracker with a score assembled from trend direction, price and equilibrium relationships, RSI conditions, and directional movement. Entries can require a minimum score and optionally pass additional filters for ADX,…
This Pine library provides methods for drawing an initial line between two user supplied points and extending it as a trendline. The user provides the horizontal distance, endpoint values, and conditions for creating and continuing the line; the library…
This document presents a long-only strategy for multi-month positioning in major US indexes, using the S&P 500 as a broad-market filter and the Nasdaq-100 for additional timing checks. It buys when the S&P 500’s daily lows remain above its 21-day EMA for…
This long-only position strategy combines daily signals from the S&P 500 and Nasdaq-100. It enters when the S&P 500 has held above its 21-day EMA for four consecutive days, Nasdaq-100 lows are above their 14-day and 21-day EMAs, recent closes do not show…
This strategy seeks directional moves by comparing price change over a configurable momentum period with an ATR-scaled threshold. It also requires momentum to be accelerating, the latest close to continue in the same direction, and normalized momentum to…
This strategy builds sloping zones from successive pivot highs and lows, using a volatility-based padding distance to form upper and lower channels. When price moves beyond a zone boundary, it generates a directional signal. The code trades an upper-zone…
This trend continuation strategy uses the 50 EMA as a pullback level and the 200 EMA to define direction. In a bullish regime, price must have touched or crossed below the 50 EMA on the previous bar and then close back above it. The bearish setup mirrors…
This long-only strategy uses a Supertrend direction change to identify a potential entry: it buys when the indicator switches from bearish to bullish. It closes the position when Supertrend reverses bearish, and also submits a stop-loss and profit-target…
This strategy seeks entries when a range filter and smoothed Heikin-Ashi candles agree on direction, optionally requiring confirmation from Heikin-Ashi direction on a higher timeframe. A signal is taken when the combined state turns bullish or bearish,…