The document explains a pre-trade risk module that checks each order before it is sent to a trading interface. Its rules include requiring positive order quantity and limiting the size of an individual order, total daily filled quantity, order flow, active…
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 strategy uses 15-minute bars to calculate Bollinger Bands, a simple moving average, and average true range. When flat, it places stop entries at the upper and lower Bollinger bands, allowing a move beyond either boundary to initiate a long or short…
This document describes a portfolio monitoring module that groups trading activity by order source and tracks positions, fills, and profit and loss. Each source, such as manual trading or a strategy, can be treated as a separate portfolio. The display…
This option algorithm combines reference-price calculation with a two-sided quoting and opportunistic execution rule. It sets a minimum price spread and a volatility-based spread proportional to the option’s cash vega, then uses the larger value to place bid…
This interface example shows controls for adjusting a paper trading engine’s simulation behavior. A spin control sets the assumed slippage for market and stop orders in price ticks, while another sets how often simulated position profit and loss is…
This guide explains how to launch a trading workstation through either a graphical interface or a script, connect a simulated futures account, subscribe to contract data, and place manual orders. It outlines how limit and market orders move from submission…
This guide describes capabilities for building and operating automated cryptocurrency strategies. It covers exchange order actions, market and position data access, indicator calculations, and example strategies. Its execution assistant can cancel unfilled…
The document demonstrates a WebSocket client that authenticates, subscribes to level-two order-book feeds, and maintains separate bid and ask maps for each symbol. It handles snapshot messages by loading initial levels, then applies inserts, updates, and…
The document surveys constraints that practitioners may impose when optimizing a portfolio. It notes that the formulation matters: a fully invested portfolio typically has weights summing to one, while an active portfolio expressed as deviations from a…
The document sets out a continuous-time optimal execution model for selling a fixed stock position over a chosen horizon. It assumes an arithmetic Brownian unaffected price and a linear temporary impact cost proportional to trading rate. Under these…
The discussion compares evaluating a strategy through trade or portfolio returns with simulating a starting capital amount and measuring ending equity or annualized return. It argues that the appropriate view depends on the strategy and how closely the…
The document discusses why an online broker may cap the number of legs in a single options spread order. Its main explanation is that brokers submit orders using structures recognized by options exchanges, and the permitted order formats and applicable rules…
The document estimates the chance that a stock reaches a buy limit price at least once during a waiting period. It models log prices as Brownian motion with constant volatility, uses the distribution of the running minimum to relate a price threshold to a…
The document examines implausible risk-free rates inferred by regressing option collars on SPX options close to expiration. It explains that put-call parity calculations can become distorted when options and their underlying continue trading on different…
The document discusses autoquotes in the context of research on locked and crossed markets. It distinguishes the paper’s reference to small displayed limit orders that other market participants might trade through from an explanation of the exchange’s…
The responses survey reinforcement learning (RL) applications in quantitative finance, with portfolio allocation as the main example. They describe critic-only methods, which choose actions using learned value estimates; actor-only methods, which optimize…
The document asks how a market maker should use a fair-value estimate when quoting in a central limit order book. It contrasts this setting with request-for-quote trading, where a dealer can present prices without competing against visible resting orders. In…
The document asks how large institutional stock sales affect prices over weeks, months, or years, including the lasting losses that other large holders might face. It raises questions about whether permanent impact relates to peak temporary impact, how…
The discussion explains reflexivity as a feedback loop: traders form expectations from information and prices, act on those expectations, and thereby change prices and later beliefs. It points to Keynesian beauty contests, game theory, agent-based models,…
The problem describes a seller who observes a sequence of prices for different future delivery days and must choose when to commit to selling. Prices for each fixed delivery date are assumed to follow a martingale. The proposed approach begins with a Bellman…
The discussion explains why currency spreads can widen sharply around 22:00 GMT, corresponding to 17:00 in New York. Forex trading is decentralized, and liquidity can fall when major financial centers hand activity over or close for the day. Contributors…
The document explains how borrowing and financing support ETF market making, creation and redemption, and arbitrage when ETF prices diverge from their underlying holdings. Market makers may finance temporary inventory, borrow securities, use repo, or provide…
The document describes how practitioners can approximate a digital option using a narrow call spread around its strike. Buying the lower-strike call and selling the upper-strike call creates a payoff concentrated between the strikes; as the gap narrows, the…
The document outlines ways high-frequency traders can structure equity trading to manage commissions and exchange fees. One route is direct exchange access through a broker identifier, allowing a firm to pay or receive the exchange’s active or passive fees…