This example presents a basic futures strategy using daily Bollinger Bands. It calculates the 26-period bands with a parameter of 2, enters long when the latest price rises above the upper band, and enters short when it falls below the lower band. The target…
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 a trade-management library for positions that have already been opened. It can move stops to break-even after a profit threshold, trail stops, partially close positions, and add missing stops or targets. Triggers can use multiples of…
The example outlines a periodic rebalancing strategy for a portfolio held across exchange markets. It tracks each asset’s quantity and estimated value, compares that value with a target share of total portfolio value, and places a buy or sell when holdings…
The document describes a script for placing buy or sell market orders and buy or sell limit and stop orders. It lets the user specify stop loss and take profit distances in pips, avoiding the need to calculate decimal price adjustments manually. Slippage and…
The article adapts an efficiency ratio to a trend strategy for Chinese government bond futures. The ratio compares the absolute net price change over a lookback window with the sum of absolute price changes in that window. Values nearer one indicate a more…
This document describes a chart indicator for visualizing a planned trade’s entry, stop, and reward targets at one, two, and three times the distance between entry and stop. Users supply entry and stop prices along with the number of bars over which to draw…
The document describes a stock grid approach built around a reference price. It places an initial position at the current price, then schedules additional purchases at fixed percentage declines, dividing capital across up to six levels with larger…
This document describes an Expert Advisor that trades crossovers between a faster and a slower moving average. A signal is evaluated when a bar closes: a move above the fast average triggers a buy, while a move below it triggers a sell. The EA can add volume…
This assignment asks learners to build a trading strategy using the standard deviation of turnover rate as a stock selection factor. It also specifies two exit rules: liquidate positions when the broad market falls by 4% consecutively, and close an…
The document briefly describes a MetaTrader Expert Advisor that calculates a trade lot size from a user-set risk percentage of free margin. Its example heading refers to a 100% risk setting, but no worked calculation, formula, or demonstration is included.…
This document explains a trend-following approach that enters on breakouts of recent highs or lows and exits when price crosses a shorter-period opposing boundary. It describes two channel settings: a main system using 20-day entries and 10-day exits, and a…
The document presents an MT4 tool intended to help traders view trading information in percentage terms rather than monetary amounts. Its rationale is that emotional reactions to gains and losses can lead traders to hold losing positions too long or close…
This summary describes a single-stock strategy for Changchun High-Tech, a Chinese pharmaceutical company. It argues that steady fundamentals and stable analyst expectations for earnings growth create a valuation reference point. Using a price-to-earnings…
This brief description presents an automated trading strategy built around the Parabolic SAR indicator. It says the expert advisor includes AutoLot options and a built-in trailing stop, so the advertised system combines an indicator-based trading approach…
This description outlines an expert advisor that combines three moving averages with candle-based trailing stops and take-profit controls. It says the system trades using the open price of the current candle and presents major forex pairs and NASDAQ stocks…
The article outlines three approaches to navigating a cryptocurrency bear market: hold unleveraged positions through the downturn, use dollar-cost averaging to add during declines, and hedge portfolio exposure, for example through short selling. It also…
This brief overview presents cryptocurrency volatility as a source of both opportunity and substantial downside. It notes that rapid price moves can contribute to investors losing some or all of their capital over a short period, so exposure needs to be…
A trader reports that the same strategy produces different results across backtest runs and simulated trading, including differences in selected securities, order quantities, and execution prices. The discussion offers possible explanations: randomness or…
The document describes a simple expert advisor that monitors the combined profit or loss of open trades after it is attached to a chart. It offers two modes: close all trades once profit exceeds a configured fixed amount, or close them once profit exceeds a…
This brief description lists settings for an expert advisor (EA): the number of bars used to calculate open, close, high, and low prices; a response threshold; and separate profit settings for buy and sell positions. It also describes optional money…
This document describes a position-sizing calculator that converts a cash risk budget, entry price, and stop price into a trade volume using the broker's symbol specifications. It uses tick size and tick value to estimate the loss per lot, then rounds the…
This expert advisor runs separate long and short systems using signals from the ColorMaRsi-Trigger indicator. The two directions can be configured independently, including how trade volume is set and how recent trade outcomes affect the next position. When a…
This Chinese equity screening note describes a rules-based selection process using RSI below 65, a circulating market capitalization between 5 billion and 10 billion yuan, and a revised ownership-concentration range of 20% to 50%. It also references a…
The document presents a dynamic-balance strategy for a crypto and fiat account. It compares the marked value of the coin holdings with the fiat balance, using bid and ask prices adjusted by a spread parameter. When the coin side is valued above the fiat…