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
3,101 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 article describes an AI-assisted crypto trading workflow that combines scheduled market analysis with human approval before routine purchases. Its demonstration strategy is dollar-cost averaging: a base amount is adjusted between zero and twice that…
This guide walks through programmatic access to Hyperliquid spot and perpetual markets through the FMZ platform. It covers connecting a wallet, configuring a proxy wallet, distinguishing mainnet from testnet settings, and querying market metadata, order…
This strategy switches between range and trend rules using the Choppiness Measurement Index (CMI). When CMI is below 20, it treats the market as oscillating and uses stochastic K and D conditions to open or reverse positions. When CMI is at least 20, it…
This beginner tutorial outlines how to build a simple spot grid strategy for a cryptocurrency pair. It begins by defining the intended behavior: use equally spaced price levels around a starting point, allow the grid to extend in both directions, and place…
The article describes a taker-style spot arbitrage method for capturing temporary price gaps across crypto exchanges. It proposes fetching order books concurrently, combining eligible ask and bid levels, and ranking them after adjusting prices for exchange…