This long-only momentum strategy transforms the Commodity Channel Index through scaling, weighted moving average smoothing, and a hyperbolic tangent mapping that confines readings to a range from -1 to +1. It enters when the indicator rebounds through a…
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 combines three Supertrend direction signals for long entries and a separate set of three for short entries. It opens a long position when all selected buy indicators are up, and opens a short position when all selected sell indicators are down;…
This document outlines a trend-following strategy combining fast and slow moving-average signals with a trend ribbon based on price relative to another moving average. It describes configurable position sizing using a portfolio percentage and leverage, plus…
This long-only strategy combines Bollinger Bands, RSI, and ATR for mean-reversion trades. It looks for a close below the previous candle’s lower Bollinger Band, alongside a bullish previous candle and an RSI reading at or below 25. It exits when RSI rises…
This strategy generates long entries and exits from crossovers among three configurable moving averages. Traders can select each average’s type, lookback period, price source, and timeframe, and can enable or disable trading for each pair of averages. Upward…
This strategy scales exposure to SPY using rolling price extremes, with a 200-day moving average as a market-regime filter. When SPY is above that average, a close at a period low increases the target share allocation in increments. A close at a period high…
This model adapts Turtle-style trend trading through two breakout systems for long and short entries and exits. It sizes units using account capital, a chosen risk fraction, ATR as a volatility measure, and contract point value. A second account calculation…
This document presents a configurable daily-timeframe strategy framework built from five ICT or smart-money-concept modules: acceptance and rejection at support or resistance, swing failure patterns, higher-timeframe liquidity magnets, displacement moves,…
This strategy enters long when price crosses above a simple moving average and short when it crosses below. It combines an initial stop, a rule to move protection to the entry price after a favorable move, and two profit objectives that scale out a larger…
This example strategy uses a 14-period Relative Strength Index (RSI) with overbought and oversold thresholds to generate long and short signals. It also describes custom conditions, risk-based position sizing, fixed take-profit and stop-loss levels, chart…
This Pine Script example shows how to set a strategy’s stop loss and take profit as cash amounts in the symbol’s currency. It uses a moving-average crossover for illustrative long and short entries, then converts the configured money amounts into tick…
The document describes how to convert between coin quantities and contract counts for OKX swap instruments. It uses the exchange’s public contract conversion endpoint, supplying an instrument identifier, conversion price, quantity, and—when converting…
This strategy compares selected altcoins’ prices relative to Bitcoin with a shared index. It aims to short coins trading above that reference and buy coins below it, with position values scaled to the size of each deviation. The updated approach uses an…
The document contains a configurable long-and-short trading system for Bitcoin, with a published four-hour backtest configuration. Its visible logic combines directional movement and ADX strength, an EMA spread compared with its smoothed value, and a custom…
This short-term cryptocurrency strategy combines RSI, Bollinger Bands, and VWAP. The description proposes buying when price crosses above the lower band or RSI falls below 25, provided price is above VWAP; it proposes selling when price crosses above the…
This Freqtrade example demonstrates splitting trade entries and exits into equal time-based portions. It sets a per-slice stake from the proposed amount, then uses filled order counts and timestamps to decide when another entry or exit portion is due. The…
This article generalizes a position sizer originally tied to one prop-firm challenge by moving program-specific terms into a configurable rule set. The rules cover phase targets, daily and overall loss limits, whether the daily limit expands with intraday…
The article proposes moving parameter reoptimization into an Expert Advisor so it can adapt without stopping for repeated manual runs in the Strategy Tester. A genetic algorithm searches for inputs, initially for a selected strategy and later potentially for…
The article describes an MQL5 trading system organized as an ensemble of seven agents with different intended horizons and styles, including trend following, momentum, breakout, scalping, volatility, and swing trading. Each agent interacts with market data…
The article explains an MQL5 Expert Advisor that uses RSI thresholds to open trades and a zone recovery process to respond when price moves against an initial position. It defines zone boundaries and profit targets around the entry, then opens an opposing…
The article describes a market-neutral limit-order grid built from historical return distributions rather than a directional forecast. It calculates rolling returns from price data, sorts them, and uses empirical percentiles to estimate levels at which…
This notebook constructs market microstructure measures from NASDAQ ITCH trade data, aggregates trades into intraday bars, and distinguishes liquidity proxies from order-flow signals and order-book state. It classifies individual trades with a tick rule…
This notebook demonstrates how to tune StopLoss, TakeProfit, and TrailingStop rules for a momentum portfolio while preserving a chronological separation between calibration and evaluation. It tests individual rule widths and joint combinations using…
This document compares alternative position-sizing methods for CME futures strategies selected from a baseline ranked by equal-weight validation Sharpe. Equal weighting treats every selected product alike, although futures contracts can have very different…