This script description explains how to prepare a buy or sell order while a market is closed and submit it when trading resumes. Users can set the direction, order size, stop parameters, and an optional start time, so an order may be delayed until a chosen…
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
4,613 documents
The article explains why doubling a position after each loss can appear reliable while carrying ruinous tail risk. It uses lottery and coin toss examples to distinguish an individual’s unlikely streak from the higher chance that someone in a large group…
The document describes an Expert Advisor built around the RJTX_Matches_Smoothed indicator. It separates long and short trades into two independently configured systems, each with its own magic number, position sizing settings, and permissions to open or…
The document describes a long-only index strategy that begins buying after a down bar, then adds to the position when price falls sufficiently below the last purchase and a short-term volatility measure signals a pause. It uses a near-zero profit threshold…
This FAQ explains several operational details that affect automated trading and backtest interpretation. Before submitting an order, OctoBot checks exchange minimum and maximum requirements; signals may therefore produce no order, commonly because the…
This Expert Advisor follows trend changes signaled by the JFatlCandle indicator. It acts after a bar closes and identifies a new direction when the candle color changes. Position size is adjusted using recent trade outcomes, with separate settings for buys…
This script places a pending Sell Stop order and exposes inputs for money management, allowed price deviation, entry distance, stop loss, take profit, retry count, and the pause between attempts. The settings let a user configure the order’s size and the…
This weekly strategy adapts a two-period RSI approach attributed to Larry Connors. It combines a 50-period simple moving average with extreme RSI readings to enter in the direction of the broader trend: it starts a long position when price is above the…
The document describes a grid approach that repeatedly opens equal-directional Buy and Sell positions, then closes the profitable side as price moves between levels. It illustrates the idea with a move from 100 to 200 and back: realized gains on selected…
The document describes an Expert Advisor that combines a moving average with recent high and low levels to generate contrarian buy and sell signals. It uses a weekly timeframe by default, while allowing the timeframe for the moving average and price data to…
This article outlines a Turtle-style trend-following system for stocks. It frames a complete trading plan around market selection, position size, entry, loss exits, profitable exits, and trade rules. Position size is tied to account equity and the 20-day…
This Expert Advisor starts by opening minimum-volume positions across a specified set of currency pairs. When a position loses, it reverses the position; when a position gains, it increases its volume. It closes all positions when their combined profit or…
This brief trading script uses the chart price where it is dropped to decide whether to place a buy stop or a buy limit pending order. It then calculates a stop loss from a user-specified risk percentage and derives a take-profit level using a reward ratio.…
This document describes a forex and stock Expert Advisor that identifies trend lines from fractals and combines them with two moving averages to trade breakouts after a correction in the main trend. The trend lines are intended to filter signals in live…
This document outlines an intraday opening range breakout strategy implemented as a two-agent trading bot. It tracks the high and low during the first 15 minutes for a universe of liquid stocks and ETFs, then ranks symbols that move above the range high.…
This experimental DAX daily strategy uses a close-based two-day high as a breakout reference and enters long when the day's high exceeds it. It can add a position when price opens more than five points above the trade price, so exposure may grow as a move…
The code implements a heat-potential method for choosing profit-taking and stop-loss boundaries for a profit-and-loss process modeled as Ornstein–Uhlenbeck mean reversion. Given the model parameters, a time-step density, and a maximum holding duration, it…
This Expert Advisor trades two currency pairs that share a quote currency and are expected to have positive long-term correlation. It examines recent bar history without indicators, looks for both pairs to rise in one portion of the window and fall in…
This document describes an MT4 expert advisor intended to place and close trades automatically using user-supplied Fibonacci-related price levels. Its five inputs are prices for the 50%, 61%, and 100% levels on a five-minute chart, a second target on an…
This proposed short-term A-share strategy selects ordinary shares that have closed at the daily limit for two consecutive sessions and belong to concepts ranking near the top by both recent three-session and fifteen-session returns. It excludes specified…
This document outlines a rules-based strategy for the DAX mini that uses the trading day of the month (TDOM). It opens a short position on the first trading day and schedules long entries from the eighth trading day, with additional entries allowed on later…
This Expert Advisor uses a martingale approach and can trade in a single direction at a time: buy or sell. The description says results are best when the directions are traded separately and shows a buy-only example. Users can enable or disable each…
This document describes a MetaTrader expert advisor whose trade decisions are driven by a random number generator. It randomizes the position direction, stop loss, and take profit, while calculating lot size from a chosen risk percentage of free margin.…
This document describes a simple moving-average crossover Expert Advisor. It buys when a fast exponential moving average crosses above a slower one and sells when it crosses below. Signals are checked at each newly closed candle, which is intended to prevent…