This short forum exchange distinguishes callbacks triggered by incoming tick data from callbacks that run when a bar has been completed. It says the ordinary bar callback runs when a tick marks a new minute, while window-bar callbacks run when the aggregated…
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
The document describes an automated strategy that places buy-stop and sell-stop orders around the current price. It uses a configurable initial distance and checks the spread before placing orders; if the spread is above a set limit, it skips placement. The…
The discussion addresses how to trade a cross-sectional, multi-factor strategy when the platform’s alpha section offers backtesting but no apparent live-trading module. The proposed workflow is to generate a CSV of the strategy’s selections each day and…
This strategy description combines a Perfect Trend Line signal for entries and exits with a Trend Impulse indicator for direction. It is presented for five-minute Dow Jones trading. A long position is opened when the trend line changes to bullish while the…
Firebird v0.60 is described as an expert advisor that trades using a moving average and a configurable percentage distance between the price and the average. Before opening a position, it checks the time since the previous position was opened and skips a new…
This document outlines an A-share stock screen using daily amplitude above 1, a 9:25 price gain below 6%, and turnover between 3% and 12%. Its final version also requires sustained net inflows, combining a volatility filter, an opening-price condition,…
This tutorial explains how a JavaScript template on the FMZ platform can add custom modules to a visual Blockly strategy editor. It describes the module definition fields, including the block type, displayed label, input arguments, generated code, output…
The discussion explains how a VeighNa portfolio strategy handles its own position state. The strategy position data is stored in the portfolio strategy data JSON file and read when the strategy starts, so saved values can initialize the strategy’s internal…
This forum exchange discusses modeling different futures commission schedules by contract, including cases where closing a position opened the same day incurs a higher fee. It says the backtester’s basic settings handle percentage fees and describes fixed…
The document describes a way to distinguish results when multiple Expert Advisors (EAs) and manual trades share one account. An account-level equity curve combines their activity, making it hard to see which systems generated gains, stopped trading, or…
The document explains how a trading system represents instruments across spot assets, futures, options, swaps, CFDs, betting markets, and synthetic instruments. Each instrument has a unique symbol-and-venue identity, while its definition carries details such…
EES Hedger is a utility for MetaTrader that opens a position opposite to a trade initiated manually or by another expert advisor. It detects trade events through the platform’s transaction mechanism and uses configured parameters to set the new position’s…
The author describes using an AI assistant to rebuild a customized trading application from VeighNa 3.9 to 4.3. The work covered a changed modular architecture, a new database backend, a redesigned strategy data model, and a rewritten desktop interface. The…
This community discussion concerns a futures firm’s penetration-testing requirements for a trading system. The test is meant to count order submissions and cancellations over time, monitor thresholds, and raise alerts when activity peaks. Participants…
This proposed Chinese A-share screen combines three conditions: MACD above zero, trailing price-to-earnings ratio above zero, and substantial large or extra-large order volume during the opening auction. It is intended to run after the auction ends each…
The document describes a trading assistant intended to manage protective orders for scalping. After a trade opens, the tool sets initial stop-loss and take-profit levels automatically. If price moves far enough in the favorable direction, it shifts the stop…
This document describes a MetaTrader 5 panel for manual trade management, with automatic entries enabled only in Strategy Tester mode. Traders choose direction and adjust entry, stop, and target levels; the panel can suggest levels from hidden pivot-based…
This implementation guide shows how a MetaTrader indicator or Expert Advisor can retrieve a day’s economic calendar from Forex Factory, parse event time, title, currency, and impact from the returned HTML, and store matching high-impact events. It filters…
This document outlines a basic program structure for a long-only spot cryptocurrency strategy. It separates the trading signal from the operational framework: the example has manual commands to open or close a position, while the user is expected to add the…
This discussion addresses a backtest in which purchases across two mornings totaled more than the stated initial capital. The explanation attributes the apparent overspending to the simulation’s timing convention: the backtest accesses that day’s completed…
This release note describes changes to Zipline, a Python framework for running algorithmic trading systems. It adds command-line and IPython notebook ways to execute algorithms, plus a history function that supplies rolling market data to a strategy. The…
This tutorial outlines a two-moving-average crossover expert advisor. It exposes configurable fast and slow periods, position size, minimum equity, slippage, and fixed take-profit and stop-loss distances. Initialization checks that the parameter values are…
This review summarizes research spanning equity market microstructure, institutional holdings, crypto momentum, dynamic-graph forecasting, and reinforcement learning for limit-order-book trading. In equities, one study groups trades by their timing relative…
This research roundup describes several quantitative finance studies. One classifies equity trades by their short-term co-occurrence with other trades and standardizes associated order imbalances into conditional order imbalance measures. These measures…