This example describes an AI trading team modeled on concentrated investing. A quality researcher selects a high-quality large-cap company, an activist bull develops the case for catalysts and value creation, and a short-seller challenges the thesis on…
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
This MetaTrader expert advisor places a sell-stop entry below the current bid, then manages the pending order and any resulting position. It exposes settings for stop loss, take profit, spread and slippage limits, trading hours, and a magic number. Its…
This mechanical strategy sets a reference price at the start of a chosen period, then places upper and lower breakout levels at a user-defined distance from that price. An upward break can trigger a buy-stop or sell-limit order, while a downward break can…
This Expert Advisor uses the iFractals indicator to place pending stop orders in the direction of developing price structure. A buy stop is considered when the two most recent upper fractals show the latest one above the preceding one. Its initial stop loss…
This document describes an Expert Advisor that trades from Stochastic indicator signals. Users configure upper and lower signal levels and choose which bar to compare with the current bar. The description does not specify the exact entry rules, so the signal…
Boxes Trail combines rolling price extremes with a modified Hull moving average to plot dynamic support and resistance levels and identify trend direction. Its entry logic uses crossings between trailing levels, with separate long and short signals. The…
This document describes an Expert Advisor that combines a moving average (MA), the Commodity Channel Index (CCI), and stochastic oscillator readings to generate buy and sell signals. A buy is triggered when CCI and stochastic are below their respective…
The document explains a manual trading panel for opening and closing positions across several instruments. Users select symbols, volumes, and trade directions in separate fields; unselected symbol boxes are ignored. When a symbol changes, the panel updates…
The document describes a simple trading indicator for changing the stop-loss price across all positions associated with the currently selected symbol. The user sets a target stop price, and the script applies that price to the positions as a group. This is a…
This code describes position buffers used in a trading system’s position sizing and portfolio processes. It supports three configured methods: forecast-based buffers, position-based buffers, and a nominal small buffer when buffering is disabled or an…
The document briefly describes a grid trading robot that places pending orders at equal price intervals. When the market moves against an opened lot, it places an order in the opposite direction with a larger lot size. The robot begins with a minimum lot…
This document describes a Chinese equity screen for metaverse-related stocks. It combines a close above the previous session’s low with specified price-to-earnings and price-to-book ranges, and limits the universe to Shenzhen main-board stocks. The…
This essay draws on Nassim Taleb’s The Fool’s Random Walk to argue that decisions should account for chance, uncertainty, and the role of luck in apparent success. For traders, its central distinction is between counting probabilities and gambling on…
This document describes a MetaTrader 5 expert advisor that monitors the combined profit or loss of open positions and closes them when user-set thresholds are reached. Traders can enable profit-triggered closing, loss-triggered closing, or both, and choose…
The described Expert Advisor applies Bill Williams-style indicators in three stages. It first seeks bullish or bearish divergence as a possible trend reversal signal. It may add to a winning position when the Awesome Oscillator prints a specified sequence of…
This Python-style example outlines a state-based trading loop driven by fast and slow exponential moving average crossovers. While flat, it checks an entry crossover and opens a long position for an upward cross or a short position for a downward cross,…
The analyzer evaluates closed-trade results from a CSV containing a date and profit for each trade. It reports how much gross profit came from the largest winners at several cutoffs, and calculates the share of net profit attributable to the top N trades. A…
This document describes an on-chart risk monitor for funded trading accounts. It reports the day’s realized and floating result, starting balance, equity, the share of the daily loss allowance consumed, and remaining room under daily and maximum loss limits.…
This strategy forms a dollar-neutral stock portfolio by identifying securities that rank among the strongest or weakest performers over two overlapping six-month return windows. It buys stocks in the top decile in both windows and shorts those in the bottom…
This document describes a MetaTrader Expert Advisor that uses Bollinger Bands signals and trades on new bars. A buy signal closes open sell positions, while a sell signal closes open buy positions. Version 2 adds configurable stop loss, take profit, trailing…
The document describes an automated strategy that trades pullbacks relative to a trend indicated by fast and slow moving averages. It lists configurable entry triggers, stop loss and take profit settings, trailing stops, break-even behavior, trade limits,…
This tutorial describes a futures order-following bot that copies changes in a reference account’s long and short positions to additional accounts. It reads the reference account’s positions, tracks long and short quantities separately, and sends…
This strategy ranks stocks by their return during the month one year earlier, then buys the strongest group and shorts the weakest. It forms portfolios monthly and rebalances at month end. The described source approach uses equal weighting and a large-cap…
This Expert Advisor description combines a volatility gate, Stochastic entry signals, loss-triggered position sizing, and profit-based exits. It calculates an average of standard deviation indicator readings over a sliding window. Trading is prohibited when…