This guide describes configuring and running an automated cryptocurrency grid trader for spot or futures markets. Its settings include the trading pair, percentage spacing between grid levels, per-order quantity, price and quantity precision constraints, and…
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
549 documents
This example describes a two-sided grid for a futures market. It tracks open buy and sell limit orders, checks their statuses, and after a fill places a replacement order on the opposite side at a configured percentage gap. It also maintains another order…
This example implements a spot grid that keeps one buy and one sell order working around the latest top of book. At timed intervals, when neither side has an outstanding order, it places orders offset from the best bid and ask by half the configured grid…
This strategy places paired long and short limit orders around the market, then rebuilds the grid after fills using the last filled price and a position-dependent step. It tracks net position and average entry price with a grid position calculator. When…
The document describes a two-sided futures grid strategy that places orders on both sides of the market and includes take-profit and stop-loss controls. It presents the approach as most suitable for range-bound conditions or periods of relatively low, stable…
The document describes a way to size orders across a geometric price grid so that the average execution price approaches a chosen target. It starts with equally sized orders, whose average price differs from the target, then adjusts each order’s weight…
This strategy builds a fixed grid between user-selected lower and upper prices, using either equal price intervals or equal percentage intervals. It submits buy limit orders at grid levels and links each entry to a take-profit order at the next level above.…
This TradingView strategy runs a long-only price grid between user-set upper and lower bounds. It divides the allocated investment evenly among grid levels, with either geometric spacing, which keeps percentage gaps more consistent, or arithmetic spacing,…
AliceTears Grid sets a baseline at the daily or session open and projects price levels above and below it at configurable percentage intervals. Its central entry filter waits for price to cross a grid level and then close back toward the baseline, seeking…
This script describes a long-only grid for TWT priced in USDT. It places a series of levels between configurable high and low bounds, using either geometric spacing, which maintains proportional gaps, or arithmetic spacing, which maintains equal price gaps.…
This strategy script backtests a grid whose levels can be spaced arithmetically or geometrically around a reference price. It supports neutral, long-only, and short-only modes, with entries triggered by level crossings or pullbacks. Users can set a test…
This TradingView strategy divides a fixed BTCUSDT perpetual-futures price range into configurable levels, using either geometric or arithmetic spacing. It allocates the stated total investment evenly across levels. When a bar closes through an unowned level…
This document describes a fixed, ten-level long-only grid centered on a user-selected price. Levels are spaced by a configurable percentage, and the script places buy orders at each level. Order notional decreases geometrically with each successive level, an…
This strategy divides a price range into geometric levels and uses confirmed bar closes to detect crossings. A downward cross through an unfilled level opens a buy; an upward cross through the next level closes it, aiming to capture the spacing between…
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 strategy divides a fixed price range into geometric or arithmetic grid levels and allocates investment across the levels. When the closing price crosses a level downward, it opens a long position for that slot; when price rises through the next level…
This TON strategy divides a fixed price range into evenly spaced arithmetic or percentage-spaced geometric levels. When the close crosses down through a level, it opens a long position sized from an allocated investment per grid slot. When price later…
This XAUUSD strategy uses a fixed lattice of round prices to define breakout triggers, stops, and targets. On a confirmed 15-minute candle, a bullish close crossing above a green level can trigger a long entry; a bearish close crossing below a red level can…
This strategy models a static grid for UNI/USDT spot trading. It divides a fixed price band into geometric or arithmetic levels and buys when a bar closes down through an unfilled level. A position is closed when price crosses the next level upward. The…
This strategy divides a user-defined price interval into levels spaced either geometrically or arithmetically. It buys a fixed cash allocation when the closing price crosses down through a level and closes that level’s position when price crosses up through…
This spot strategy divides a user-selected price range into ten evenly spaced levels. It treats the lower portion as an accumulation zone and the upper portion as a selling zone. When price crosses the middle grid level and there are no open trades, the…
This long-only grid strategy divides a user-defined price range into levels spaced either geometrically or arithmetically. On a close crossing downward through an unowned level, it opens a position sized from an equal share of the specified investment; when…
This ENA strategy places a fixed set of price levels between user-defined upper and lower bounds. Levels can be spaced geometrically, keeping percentage spacing more uniform, or arithmetically, keeping absolute spacing uniform. When the closing price crosses…
This grid strategy divides a fixed price range into configurable levels, spaced either geometrically or arithmetically. It buys a slot when the closing price crosses downward through its level and closes that slot when price crosses upward through the next…