The strategy enters spot positions after a strong hourly or four-hour price rise, provided the candle’s high is not too far above its close. It exits after the position reaches a profit threshold and price pulls back from the highest price tracked since…
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
172 documents
This utility automates selling holdings across a user-specified list of spot trading pairs, a task that can arise when stopping a multi-pair grid or martingale system. It repeatedly checks each pair, combines available and order-frozen balances, estimates…
This strategy combines a 20-period simple moving average crossover with an eight-period RSI filter. A close crossing above the average while RSI exceeds the stated upper threshold creates a buy signal; a close crossing below it with RSI below the lower…
This simple daily trend-following method compares the latest daily close with a configurable moving average. When the close is at or above the average and the strategy is not holding the asset, it buys using 95% of the account balance. When the close falls…
This strategy tests a fixed weekly schedule for Bitcoin: enter long on Monday morning and close on Wednesday afternoon, using New York time. On intraday charts it looks for the specified hours and minutes; on daily or higher charts it uses the weekday alone,…
This script implements a basic one-sided grid for a spot-style exchange interface. It places a limit buy below the current price, or below a user-specified starting price, using a configured price interval. The buy size is calculated as a percentage of the…
This trend-following system uses a 9-period and 21-period EMA crossover to identify short-term direction, with price relative to a 200-period SMA as a broader trend check. Long entries also require RSI above 50 and price above the Bollinger middle band;…
This script describes a two-exchange spot arbitrage process for the same asset. It compares executable bid and ask prices across venues, estimates available depth, and places paired buy and sell orders when the spread exceeds a threshold that includes…
This beginner example describes selling a target amount of spot Bitcoin in smaller orders to reduce the market impact of a single large sale. The trader sets the total amount to sell, the size of each order, and how long each order remains open. The script…
This crypto spot strategy uses a Donchian-style breakout check on weekly bars, constructed from daily data, to choose among full exposure, balanced holdings, or cash. A new high relative to the prior channel leads to full investment. If price remains above a…
This intraday system combines Heikin-Ashi candle direction and shadow conditions with price relative to VWAP. It enters long when a green candle has no lower shadow and the close is above VWAP; it enters short when a red candle has no upper shadow and the…
This document describes a single-pair implementation of a long-only dollar-cost-averaging strategy driven by three RSI signals. The base order starts when a 14-period RSI on a 15-minute chart crosses above 30. Additional safety orders require a rebound…
This account-balance-based strategy aims to build a Bitcoin position toward a rising target value over time. It divides a planned monthly contribution by the number of scheduled investment intervals to define target value growth per interval. At each check,…
This document describes a charting script for tracking Brazilian real quoted crypto prices across BitcoinTrade and Binance. It plots BitcoinTrade bid and ask data for several assets, then compares corresponding BRL markets on both venues to visualize…
The document outlines a simple portfolio rebalancing rule for a basket of major cryptocurrencies. It proposes allocating equal portions of portfolio value to four assets and trading when an asset’s share of the account departs from its target by a stated…
This strategy uses RSI threshold crossovers to open long and short positions. A move above the oversold level triggers a long entry, while a move below the overbought level triggers a short entry. It places stops at the recent ten-period low for longs or…
This document describes a rules-based Bitcoin rebalancing method that maintains a chosen split between cash and coin value. After price changes, it calculates total portfolio value and trades enough Bitcoin to restore the target allocation. Its worked…
This bot monitors Bitcoin order books on two exchanges and opens paired trades when the bid on one venue exceeds the opposing ask on the other by a configurable spread threshold. It sells on the higher-priced venue and buys on the lower-priced venue,…
This spot trading strategy opens an initial long position when a 15-minute close crosses above the upper Bollinger Band. If price then falls by a set percentage from the last entry, it adds another buy, increasing the order value by a multiplier. The code…
This strategy calculates a trailing stop from average true range and a selected price source, then compares a configurable moving average with that stop to generate entry signals. A crossover above the stop supports a long entry, while a crossover below…
This long-only strategy combines a multi-pole Gaussian filter with a channel whose width follows filtered true range, plus Stochastic RSI. The filter is calculated from average high, low, and close prices; optional settings aim to reduce lag or increase…
This example shows how to collect decentralized exchange quotes through an AMM gateway data feed. Users configure a network, a base order amount, and up to three trading pairs; the network’s configured swap provider determines which DEX supplies the quotes.…
This BTC spot strategy checks hourly prices for a close above an 80-period exponential moving average plus three times an exponentially smoothed true range. The entry condition also requires recent volume to exceed earlier volume. While the text describes a…
This long-only trend-following system combines Supertrend direction with ADX trend strength and an RSI filter. It enters when Supertrend signals an upward trend, ADX is above its stated threshold, and RSI meets the specified condition; it exits when…