This long-only strategy seeks rebounds after a sharp pullback from a 20-period exponential moving average. It combines an oversold smoothed RSI reading, a bullish candle, and a sector-index trend filter, then applies a reset condition to avoid repeated…
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 strategy enters long when a faster EMA crosses above a slower EMA and short when it crosses below. Trading can be restricted to a 15-minute chart and weekdays. On a reversal signal, the script closes the existing opposing position before opening the new…
This strategy combines RSI, MACD histogram, short-versus-long EMA, Bollinger Bands and SuperTrend into a majority vote. Each enabled indicator contributes a buy, sell or neutral reading based on its rule; the combined signal is the side with more votes. When…
This strategy tracks confirmed pivot highs and lows over a configurable swing period. A breakout is triggered when price exceeds the latest active pivot, using either candle wicks or closing prices; each pivot can trigger only once. Entries are evaluated at…
This XAUUSD strategy combines EMA trend direction with pullbacks, RSI triggers, and optional session and ADX filters. Long entries require price and the fast EMA to be above the 200-period EMA, price near the fast EMA, a recent RSI dip into oversold…
This long-only TSLA strategy combines trend filters with two custom momentum measures. It requires price above the 50- and 200-period EMAs, BlueWave and smoothed money flow above zero, and both indicators rising. A signal is taken only when these conditions…
This long-only strategy combines a lower-timeframe RSI reversal signal with dollar-cost averaging. A base position opens when RSI crosses upward through its oversold threshold. If price falls, up to five safety orders add exposure at progressively wider…
This script provides a simple framework for backtesting externally supplied long and short signals. It interprets an increase in each input series as a signal, enters only while flat, and attaches percentage-based stop-loss and take-profit orders to open…
This strategy identifies pivot highs and lows, then treats a close above a tracked pivot high as a bullish breakout and a close below a pivot low as a bearish breakout. A configurable time window, interpreted in London time, can restrict entries; an optional…
This indicator uses two selected features, drawn from RSI, CCI, rate of change, and normalized volume, to compare current market conditions with stored historical observations. Each observation is paired with a label representing a subsequent price…
This long-only ETH strategy arms a base entry when the four-hour RSI falls below a configurable oversold threshold. If price declines from the base entry, it can add up to five averaging orders at fixed percentage offsets. The example uses progressively…
This strategy combines Awesome Oscillator saucer signals with Williams Fractals and an Alligator-derived level to identify short-term trend direction. It takes long entries when the oscillator forms a rising saucer above zero, the short-term trend filter is…
This educational strategy example shows how to set stop-loss and take-profit distances from cash amounts in the symbol’s currency. It converts each dollar target into price points using the instrument’s point value, minimum tick size, and the absolute…
This Pine Script template manages one open position at a time using buy and sell signals supplied by another indicator. Same-direction signals are ignored while a trade is open. Opposing signals can be ignored, used to close the position, or used to close…
This short-only strategy for the XMR/USDT perpetual contract starts a trade when a five-minute RSI with a nine-period lookback crosses down through 80. It can use a limit or market base entry, then add up to three equal-sized averaging orders at successive…
This Pine Script library provides reusable components for assembling trading strategies, including entry and exit definitions, filters, qualifiers, dollar-cost averaging, stop losses, take profits, trailing exits, and ATR-related controls. Its types expose…
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 stock strategy enters long when a confirmed close exceeds the prior lookback high and short when it falls below the prior lookback low. Optional filters require price to be on the appropriate side of a simple moving average and breakout volume to exceed…
This backtest script builds directional bias from swing pivots and breaks of structure. A bullish break marks the latest swing low as a valid level; a bearish break marks the latest swing high. On a break, it searches back through recent bars for an…
This strategy divides a fixed XLM price range into geometric or arithmetic levels and assigns an investment amount to each slot. It opens a long position when a bar closes across a level downward, then closes that slot’s position when price crosses the next…
This Pine Script template tracks simulated performance against configurable prop trading challenge constraints. It sets account-size-specific thresholds for daily and total losses and profit targets, counts trading days, and presents pass or fail status in a…
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 intraday strategy records the high and low during a configurable opening window, starting at 9:30 a.m. Eastern. After that window closes, it looks for price to break beyond the range and requires a chosen number of consecutive closes outside it before…