This short MetaTrader programming note shows how an expert advisor can detect the arrival of a new chart bar by comparing the current bar count with the count saved during initialization. It stores the baseline in an integer, refreshes a second count on each…
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 document describes an indicator that displays recent bid and ask ticks, showing the latest 300 observations. It can also run in a strategy tester, where users can examine how different tick-generation modes produce similar or different tick sequences.…
This article describes a high-frequency trading tactic that tries to profit from a large buyer who repeatedly raises a displayed bid. The trader first moves the market up by a tick, watches whether the buyer follows, and continues stepping prices higher if…
The document describes an indicator for viewing historical tick data, showing both Ask and Bid prices. Comparing the two series lets a trader inspect how the spread changes over time. It uses a date query to retrieve ticks and can display a selected number…
The page introduces FinRL as a framework for applying deep reinforcement learning to automated stock trading. It explains that reinforcement learning agents learn through interaction and trial and error, while deep neural networks approximate the functions…
This document raises implementation questions about trading two OKEX futures maturities through one exchange object. Its example switches between the this-week and quarterly contracts to request tickers over WebSocket, then switches again before submitting…
The discussion explains how to inspect a strategy's logical position during a VeighNa backtest. The strategy's `self.pos` value represents its net position quantity and updates as the strategy processes opening and closing trades. It is scoped to the…
This document describes an expert advisor that counts observed spreads in predefined ranges as market ticks arrive. It reports the counts separately for each year and prints the statistics to the trading platform’s journal when it stops, making the output…
This guide explains how to create and fund a Vega wallet, connect it to Hummingbot, and launch a sample directional strategy on Vega perpetual markets. The sample uses RSI to open long positions in oversold conditions and shorts in overbought conditions,…
These release notes describe changes across versions of the VeighNa trading framework. For quantitative research, notable updates include a cross-sectional percentile ranking function, revised factor and signal performance analysis, an added VWAP matching…
The document explains how NautilusTrader connects to Tardis historical files, Tardis Machine streams, and the Tardis API. It describes loading normalized CSV data, replaying historical feeds into Parquet catalogs, and configuring live or replay clients. A…
This brief indicator description identifies an Ergodic tick-volume tool built around multiple exponential moving averages and attributed to William Blau. It concerns tick volume, a measure of price updates that can serve as a proxy for trading activity,…
This document describes a MetaTrader 4 toolkit that combines chart information, support and resistance drawing, order planning, and chart controls. Its money-management panel lets a trader position entry, stop-loss, and take-profit lines, inspect the…
This indicator description presents the Zex as a lower-timeframe tool intended for scalping. It begins with a Stochastic Momentum Index calculated from closing prices, smooths that series with a triangular average, and defines a histogram from the difference…
This study proposes a market mechanism for trading data products by separating data ownership from the right to use the data. Ownership is divided into tradable units to support liquidity, while use rights remain indivisible and go to an end user. The…
The document outlines a trade-opening function for a trading platform. It says the function derives an opening price, take-profit levels, and a stop-loss from user parameters and symbol information, then assembles a trade request containing details such as…
OrderNotify is an expert advisor watcher that emails information whenever a trade is opened or closed. The message is intended to include details about the affected trade, allowing a user to receive notifications from an expert advisor’s activity. To use it,…
This brief quickstart introduces a minimal Rust live node that connects a Lighter data client to public Testnet market streams and runs a built-in data tester. It is intended to confirm that the data path works before adding trading functionality. The guide…
This guide describes setup paths for connecting a Rust or Python application to Lighter through a live trading node. It recommends establishing public market-data subscriptions first, using tester actors to check client wiring, and then adding an execution…
This description explains an expert advisor that maintains configurable grids of pending orders above and below the current market price. Traders choose the number of orders per side, spacing, lot size, slippage limit, and the order types used on each side.…
The article argues that Rust can suit quantitative trading infrastructure where large data workloads, dense computation, concurrency, and low latency matter. It attributes this fit to Rust’s performance, memory and thread safety guarantees, and lack of…
The document explains how a simulated trading engine processes each market-data point in three stages: the exchange matches existing orders against the updated market, strategies receive the data and can issue commands, and venues settle eligible commands…
This forum post explores how VeighNa's historical bar loading relates to strategy initialization, bar aggregation, and trading decisions. The author asks whether loading bars at minute, hourly, or daily intervals supplies the corresponding historical data,…
QuoteTick represents a single instrument’s best available bid and ask, including the displayed size at each price and event and initialization timestamps. The document specifies the required fields and describes precision constraints: bid and ask prices must…