This document presents a simple Binance spot grid approach. At timed intervals, when no orders are open, it places a buy below the best bid and a sell above the best ask, each offset by half the configured grid spacing. When either order fills, it cancels…
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
3,101 documents
This long-horizon Bitcoin framework organizes trades around halving dates. It proposes buying near a halving, taking profits gradually during a later post-halving window, and restarting dollar-cost averaging after a longer interval when the market is…
This long-only breakout system enters when the closing price rises above the upper Bollinger Band and closes the position when price falls below the lower band. The middle band can use several moving-average methods, while the upper and lower bands are set…
This document describes a spot selling tool that breaks a large target quantity into smaller orders. Each order is sized around a configurable average, with a random variation, and priced as an offset from the current best ask. The tool waits for an order to…
This workflow automates a dollar-cost averaging process for cryptocurrency spot purchases. On a recurring hourly cycle, it gathers market data to calculate MACD, RSI, ATR, and OBV, and retrieves recent crypto news for AI-based short- and long-term sentiment…
This strategy uses consecutive candles with the same direction as a simple short-term trend signal. Candle direction is determined by comparing close with open; after a configurable run of upward candles it enters long, and after a run of downward candles it…
This strategy combines RSI thresholds, crossings of a rolling 125-period high, and a volume surge filter. The stated RSI defaults are 14 periods, with oversold and overbought levels of 30 and 70. A long or short entry can be triggered by an RSI threshold…
This document outlines a simple recurring Bitcoin purchase simulation. At each fixed interval, it spends a preset amount of currency to buy BTC at the observed latest price, accumulates the purchased quantity, and compares the holding’s current market value…
This controller tracks an asset balance on a spot exchange and compares it with a short position on a perpetual market. It calculates a target hedge by multiplying the spot balance by a configurable hedge ratio, then measures the difference between that…
This spot strategy repeatedly rebalances one cryptocurrency toward a target share of account value. When the asset’s share moves below the target by a configured adjustment threshold, it places a buy order; when the share moves above the target threshold, it…
This document describes a single-coin spot strategy that repeatedly returns the portfolio toward a target coin allocation. When the coin’s share of account value moves below the target by a set adjustment band, the bot places a buy order; when it moves above…
This document describes a spot trading workflow in which an external AI service gathers data and news, forms a buy, sell, or hold decision, and sends a structured signal to an execution bot. The bot receives signals through a channel, checks required fields…
SuperTREX combines RSI threshold crossings with ATR-based trend levels to generate directional signals. An RSI crossing above the oversold threshold records a long reference price, while a cross below the overbought threshold records a short reference price.…
This introductory execution strategy splits a target cryptocurrency purchase into smaller limit orders to reduce the market impact of a large buy. It sets each bid below the best bid by a configurable depth, varies order size randomly around a chosen…
This strategy combines EMA and ADX trend classification with RSI pullback conditions, a four-hour context check, and below-average volume as an entry filter. Long trades require price above the EMA with ADX above the stated trend threshold, a prior close…
This document presents an implementation framework for calculating Stochastic RSI from price records. It first obtains RSI, then compares each value with the rolling RSI high and low over a selected lookback window. Moving averages smooth the resulting…
This strategy uses a 21-period and 55-period exponential moving average (EMA) relationship to identify directional moves, with a Supertrend indicator intended to confirm the prevailing trend. The document also describes 200- and 233-period averages as…
This strategy uses 14-period and 28-period simple moving averages. A cross above the longer average starts a long position; a cross below it can close positions, subject to a gain condition in the supplied source. The source also includes an averaging…
This strategy combines unusual volume or candle-body readings with candle direction and recent highs or lows to generate long and short signals. Z-scores are calculated against a moving average and standard deviation over a configurable lookback; the user…
This strategy combines moving averages, MACD, RSI, Stochastic, and VWAP readings to seek aligned directional signals from 15-minute price data. A long requires a fast moving average to cross above a slow one, MACD to exceed its signal line, RSI to be above…
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 monitor searches a small, predefined set of spot currency pairs on Binance, OKX, or Bybit for two possible triangular conversion routes through a selected base currency. It calculates gross route returns from the latest close prices, keeps the best…
This spot strategy looks for a price decline from a recent Donchian high before making an initial purchase. After entry, it tracks the lowest price; if price falls sufficiently below the last entry and then rebounds by a set amount from that low, it adds…
This example screens three related crypto markets for triangular arbitrage opportunities involving EOS, BTC, and USDT. It reads the best ask and bid prices from each order book, then compares cross-market price relationships in both directions. For a…