The document presents a shortened implementation of a grid trading strategy and explains that it condenses a much longer earlier version. The strategy tracks grid levels in a list. As price moves far enough in a chosen direction, it opens a position at the…
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
The document illustrates a grid-like approach that opens a long and a short position at the same price, then closes whichever side becomes profitable as price moves. It gives a two-step example: price rises, the trader realizes the long’s gain and opens…
The document describes a programming framework for grid and Martingale strategies. A shared strategy class holds settings such as starting price, trade size, take profit, and monetary stop loss; specialized classes supply their own buy and sell signals. An…
The document outlines a stock grid strategy that places buy and sell orders at fixed percentage intervals. Its example divides the stock position into ten portions and uses a 5% grid: sell a portion after each rise and buy one after each decline. It…
This read-only tool estimates how far an averaging or grid position chain can move against an account before broker stop-out. It accounts for cumulative floating losses across the legs, margin locked by open trades, the broker’s stop-out threshold, and the…
The document outlines an automated forex trading system that holds buy and sell trades at the same time, intended for 15-minute charts on major currency pairs. It describes an optional drawdown-control protocol that closes a basket of trades after reaching…
The expert advisor builds a grid from configurable pending stop and limit orders. Traders can choose which buy and sell order types to enable, define the first order by an absolute price or a distance from the current price, and set separate spacing and…
This MT5 expert advisor combines candle direction with grid order placement. A bullish previous candle triggers a buy and a bearish one triggers a sell; that signal applies to later grid orders as well as the first. The description says this avoids placing…
This overview compares ten cryptocurrency trading platforms by their automation styles, access models, and supporting tools. It describes grid trading within a defined price range, dollar-cost averaging, signal-driven systems, market making, and custom…
The document describes a basic grid-trading library through its public controls and a sample expert-advisor workflow. A grid is configured with a direction, initial lot size, spacing between grid levels, and a profit target. Optional settings assign a magic…
This document explains an Expert Advisor that builds a channel around a moving average and opens a buy when price reaches the lower boundary or a sell at the upper boundary. A qualifying bar must touch the boundary after the preceding bar remained on the…
This semi-automatic trading assistant lets a user place grids of buy-stop, sell-stop, buy-limit, or sell-limit orders, then close positions by side or all at once. Users set the order count and spacing for each grid type, as well as the initial lot size and…
This article surveys ten cryptocurrency trading bot platforms and outlines the kinds of automation they offer. Features described include grid trading within a price range, dollar-cost averaging, signal-based trading, market making, technical-indicator…
The described expert advisor uses two moving averages to identify a main market direction. When the averages have not crossed for a specified period and price pulls back from that direction, it opens an initial position. It can then add positions, up to a…
The document describes a two-sided pending-order grid with three stages. It begins with a symmetric ladder, increases the opposite side’s pending size after the nearest level fills, and switches to a doubling sequence after either side has two fills. Filled…
The post shares a one-minute grid trading strategy that uses the prior day’s close as a center price and divides prices into bands. It opens an initial position, then changes holdings when the price moves between grid regions, subject to cash and…
TraderToolEA is presented as a chart-based panel for placing and managing trades. It supports orders created manually or by an Expert Advisor, including one-click order entry. Users can set position size and configure stop-loss and take-profit levels,…
This document describes a MACD-based expert advisor that can be configured for single trades or a hedging grid. It says the system trades using the open price of the current candle and lists configurable controls for MACD and moving-average periods, trade…
The document introduces a position calculator for a grid strategy that tracks net quantity, average price, and accumulated profit as fully filled orders arrive. Its example illustrates that after buying at several nearby levels and selling part of the…
This strategy starts by placing buy and sell limit orders around the best bid, then follows whichever side fills. After a fill, it cancels opposing and profit-taking orders and adds another same-direction order at a wider, position-dependent grid interval.…
The strategy compares the current marked value of its position with a stored balance amount on each new bar. When the relative difference reaches a configurable threshold, it trades toward balance: it buys when the stored amount exceeds position value and…
The document defines common records used to represent ticks, bars, orders, fills, positions, accounts, contracts, and trading requests. Fields capture instrument identity, exchange, time, prices, volumes, order state, and selected contract properties.…
This guide explains execution algorithms that divide large orders, react to market prices, and adjust positions on a grid or across a spread. It describes time-weighted execution, iceberg orders, a tick-driven sniper approach, conditional orders, and…
This implementation describes a two-sided spot grid. It tracks buy and sell limit orders, checks their exchange status, and, when one fills, places a replacement order on the other side at a configured percentage gap. It rounds prices and quantities to…