The document asks how a bar generator should update the high and low of the current minute when a new tick arrives. The shown logic always compares the bar extremes with the tick’s last-traded price, then incorporates the tick’s reported high or low only…
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
9,660 documents
This opinion article argues that retail traders face a structural disadvantage in short-term equity trading because quantitative firms can use fast systems and direct market connectivity. It attributes the gap to execution speed and claims that automated…
The forum exchange addresses how to retrieve an account’s past orders and trades through the CTP interface, with the goal of tracking profit and loss by instrument. It does not describe a built-in history-specific endpoint in detail; instead, a reply points…
This document explains how to add notifications to an Elliott Wave Oscillator indicator that marks buy and sell signals. It describes configurable inputs for choosing the signal bar, enabling sound, email, or mobile push alerts, and limiting repeated…
This brief forum exchange asks whether VeighNa’s OffsetConverter, which splits futures orders by opening, closing, and closing-today offsets, also affects stock orders. The questioner notes that the order management engine appears to update the converter…
The document defines an instrument close event as a record of a closing or settlement price associated with an instrument and venue. It distinguishes ordinary end-of-session closes from closes triggered by the expiration of a dated contract. Required data…
This script sets a stop loss for each open position so that a hit would produce an approximate loss equal to a specified amount in the account’s currency. It is intended to work across deposit currencies and forex symbols by using the platform’s loss tick…
The document outlines an expert advisor that uses a VolatilityPivot NRTR indicator to make trading decisions. Entries are based on colored cross-shaped labels appearing in the direction of the intended trades. It notes that a supporting trading library can…
This introductory article maps the work involved in taking a quantitative CTA idea into live futures trading. Its five stages are to define executable rules, prepare suitable historical data, translate the rules into code, validate the strategy, and handle…
This excerpt introduces foundational MQL5 programming concepts for readers building trading programs. It covers data types, identifiers, variables, expressions, and operators, and explains that combining instructions establishes a program’s logic. It also…
This article explains why high-frequency trading firms invest heavily in reducing the time it takes to receive market information and send orders. It describes an earnings-news episode in which an automated firm traded before financial news terminals…
The document introduces an MQL4 library that ports regular-expression functionality from the .NET Framework. It outlines the library’s components for patterns, matches, capture groups, options, and Unicode character categories. It also lists options such as…
The document describes an MT4 trading panel intended to let a trader set stop-loss and take-profit distances in pips, trade count, position size, and the instrument before placing orders. Its purpose is to make order setup faster, particularly when markets…
This forum post documents a PermissionException encountered when a copied visual stock-selection strategy runs a BigQuant query. The generated SQL joins daily stock bars with basic information, factor, and status tables, then applies universe and factor…
This document outlines Tonghuashun’s backtesting support and gives example strategies for Chinese stocks, convertible bonds, and funds. It describes supported data intervals, transaction costs, slippage, corporate-action adjustments, and order matching. The…
This MetaTrader 5 expert advisor generates trades when a bar closes with a newly appearing colored arrow from the ForecastOscilator semaphore indicator. It requires the compiled indicator file in the terminal's Indicators folder. The description also notes a…
This document describes an MT5 chart panel for estimating trade size from a chosen percentage of account balance. The trader positions two horizontal chart lines to set low and high price levels, which the panel uses to preview buy and sell lot sizes…
This developer guide lists the exchange interfaces needed to build spot and perpetual connectors for a trading client. Core REST functions include retrieving trading rules, checking service status, reading open orders and balances, and creating orders;…
This guide walks through preparing an XRP Ledger account for use with Hummingbot, importing the account into a wallet app, connecting the connector, and checking balances. It also describes editing connector settings to use custom markets or node endpoints.…
This document outlines an Expert Advisor that trades signals from the CronexCCI oscillator. It generates a signal when a bar closes and the indicator cloud changes color. The EA requires the compiled CronexCCI indicator file, and a supporting library is…
This partial report examines Binance ETH/USDT trading and order book behavior around the yen carry trade unwind. It connects macro events—including yen appreciation and a sharp Nikkei decline—to crypto price moves, then describes how volume, net trading…
This MetaTrader tool overlays historical price ticks on chart bars to show how bars formed, including the visible spread history and the development of the current real-time bar. The document explains that it is intended for visual inspection rather than use…
This indicator displays an inverted view of the current instrument's chart, showing Ask and Bid price levels as colored bars in a separate window. Its settings let users independently show or hide each side, choose colors and line styles, and set the…
The forum question asks how to add an available-funds check when a trading framework converts an order request under lock logic. The proposed approach is to obtain account information through the main engine, read the account’s available balance, compare it…