This document describes a MetaTrader 5 indicator for sizing gold positions from a chosen account balance, risk percentage, entry price, and stop-loss price. It applies a standard risk-based calculation using the stop distance and the instrument’s tick value…
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 document describes an Expert Advisor intended to test two ways of changing position size after a trade closes. In its martingale mode, a stop loss leads to a larger position in the opposite direction, while a take profit resets size and continues in the…
The document outlines a one-minute currency scalping Expert Advisor intended for tight-spread conditions and markets described as flat with adequate volume. Its features include trading across currency crosses, handling multiple currencies, calculating…
The document describes a trading robot that first opens simulated positions to monitor the market, then begins placing real orders after a configured entry condition is met. Its settings cover timeframe, slippage, order identifiers, stop loss and take…
This article explains a Dual Thrust trend-following method and its application to a basket of nickel, rebar, and coking coal futures. It defines a range from historical highs, lows, and closes, then sets upper and lower breakout thresholds around the current…
This Expert Advisor combines five technical signal rules to adjust the starting trade size. The rules use ADX directional lines; a moving-average comparison with Stochastic; MACD level and signal-line comparisons; and a moving-average comparison with the…
The document describes four MQL5 scripts for opening long positions with stop loss and take profit distances specified in points from the current price. Two variants submit protective orders along with the trade for brokers that support this approach and…
This Expert Advisor trades when the XAng_Zad_C indicator cloud changes color. It can restrict entries to a configured daily time window and close open positions at the selected end time. If the start time falls later than the end time, closure is scheduled…
This Expert Advisor design runs separate long and short trading systems based on signals from the ColorMETRO indicator. Inputs with one prefix control long trades, while another group controls short trades; each side has its own magic number, position-sizing…
This documentation explains how Freqtrade strategy callbacks complement vectorized indicator and signal functions. Callbacks run when needed, often repeatedly during live trading or at each simulated candle, so the guidance warns against costly calculations…
This stock-selection outline screens Chinese equities for a daily price amplitude above 1, a listing history longer than one year, membership in a robotics concept group, and circulating market value below 10 billion yuan. It describes joining listed-company…
This brief describes a trading utility that changes the take-profit and stop-loss settings on all open orders using an input percentage. It is an order-management procedure rather than an entry or exit strategy: the user supplies the percentage and the…
This Expert Advisor description outlines a bar-driven pending-order strategy. When there are no open positions or pending stop orders, it places a buy stop and a sell stop at a configured distance from price. If neither order is triggered by the next bar,…
This document presents a Chinese-stock ranking workflow built around an XGBoost RankNet model. It constructs price-return and trading-activity features, labels stocks using clipped forward returns divided into quantile bins, and separates training data from…
This Freqtrade example is an operational strategy for winding down open positions after stopping new buys. It defines no entry or exit signals; instead, a minimal return-on-investment schedule closes trades that reach a small initial profit threshold, then…
This document describes a trade-management utility for open positions rather than a signal generator or strategy. It can add missing stop-loss and take-profit levels, move stops to break even as trades become profitable, and apply trailing stops to help…
This document outlines a simple automated trading rule based on comparing the opens and closes of the two most recent completed candles. When no position is open, it enters a buy if the newer candle opens above the older candle but closes below the older…
This article groups recurring trading losses into three market conditions: trading against a strong trend, repeatedly chasing moves in a broad range, and trading through choppy swings. It recommends first identifying the prevailing structure across larger…
The document presents a Chinese A-share backtest question: after selling a holding at the open, a daily-frequency strategy places a purchase near the close but buys only a small amount. The author wonders whether the simulator updates available cash only on…
A liquidity miner describes using automated pure market making across cryptocurrency pairs in liquidity mining campaigns. His approach is to distribute capital across available pairs, use a spreadsheet to plan allocations, order sizes, balance limits, and…
This guide explains how a strategy developer can use metadata attached to a rental registration code to set different usage limits for different customers. The strategy reads the metadata at runtime and maps its value to a configured limit. The example uses…
This document describes an automated system that combines trend and momentum filters with grid entries. It uses an exponential moving average to assess trend and the relative strength index for confirmation, opening an initial position only when both…
This document describes an Expert Advisor that trades signals from thirty popular candlestick patterns. Users can enable or disable individual patterns or groups based on whether they use one, two, or three bars. The document explains configurable trade…
This document outlines an expert advisor intended for XAUUSD on a 15-minute chart. It combines RSI entry filtering with recovery entries spaced according to ATR, plus market-structure checks based on lower lows, lower highs, and support conditions. Position…