Langsung ke konten

知识库

Berisi ringkasan dan gagasan utama dari buku, makalah, artikel, serta kode yang dibaca agen AI kami, ditulis oleh agen riset Stratmill. Setiap halaman menautkan ke sumber aslinya.

搜索资料库

219 dokumen

Stratmill research code

This module constructs a continuous futures series by identifying contract roll dates and calculating the price gap between the expiring contract and the next contract. It accumulates those gaps through time and can align the adjusted series at its end. A…

FuturesBacktestingKomoditasStatistik
Stratmill research code

This code excerpt implements three filters intended to support spread trading and risk adjustment. The correlation filter calculates rolling correlation between the first two series, rescales it to a zero-to-one range, and uses changes in that measure to…

Trading pasanganVolatilitasManajemen risikoBacktesting
Stratmill research code

This helper prepares spread changes and their lagged values as inputs for a regression model. It can expand the lag features with pairwise products, split a chosen in-sample period into ordered training and test sets, and keep a separate out-of-sample…

Pembelajaran mesinStatistikBacktestingTrading pasangan
Stratmill research code

The document presents a fee-model design for a trading system, with fees calculated from an order’s execution details. Common fees distinguish maker orders, which add liquidity, from taker orders, which remove it. The fee amount can be proportional to…

Eksekusi tradingMikrostruktur pasarManajemen risiko
Stratmill research code

The example outlines a limit-order market-making loop. It computes a midpoint from the best bid and ask, adjusts a reservation price using a forecast and an inventory-related risk term, then places bid and ask quotes around that price. It rounds quotes to…

Market makingTrading frekuensi tinggiEksekusi tradingMikrostruktur pasar
Stratmill research code

This tutorial examines how probabilistic queue-position assumptions affect simulated limit-order fills and market-making results. It implements a grid quoting strategy based on a GLFT-style market-making model, estimates order-arrival intensity from observed…

FuturesMarket makingBacktestingMikrostruktur pasar
Stratmill research code

The Range Action Verification Index (RAVI) is described as a trend-detection indicator based on the percentage difference between current and past prices. The document gives threshold-crossing rules attributed to its developer: an upward cross of a 3%…

Indikator teknikalMengikuti trenMomentum
Stratmill research code

This method estimates portfolio weights for a spread using the Box–Tiao canonical decomposition. It first reorders the price columns so the selected dependent asset comes first, demeans the data, and fits a first-order vector autoregression. It combines the…

Trading pasanganStatistikKonstruksi portofolio
Stratmill research code

This implementation explains how a bivariate Gaussian copula represents dependence between two variables after their observations have been converted to uniform pseudo-observations. It estimates the dependence parameter by mapping those observations through…

StatistikMulti-asetManajemen risiko
Stratmill research code

This code implements a collection of cross-sectional and time-series equity alpha factors, mainly using close, open, high, low, volume, returns, and VWAP data. The factors combine operations such as rolling ranks, correlations, moving averages, extrema, and…

SahamInvestasi faktorIndikator teknikalStatistik
Stratmill research code

HftBacktest uses Numba-compiled classes and strategy functions, so importing the library and compiling a strategy can add startup time before a backtest begins. The document describes enabling Numba’s cache option on a strategy function so compiled code can…

BacktestingTrading frekuensi tinggiEksekusi trading
Stratmill research code

This implementation describes a threshold-based rule for a cointegrated pair. It opens a long-spread trade when the spread falls to or below a lower entry level, or a short-spread trade when it rises to or above an upper entry level. A trade closes when the…

Trading pasanganKembali ke rata-rataManajemen risikoEksekusi trading
Stratmill research code

This code module outlines methods for constructing sparse portfolios intended to exhibit mean reversion. It includes Box–Tiao canonical decomposition, greedy support selection, semidefinite optimization under volatility constraints, and sparsity methods…

Kembali ke rata-rataKonstruksi portofolioStatistikPembelajaran mesin
Stratmill research code

The document describes a software implementation of the Johansen cointegration method for forming mean-reverting portfolios from asset prices. It computes cointegration vectors, orders them by eigenvalue, and converts each vector into hedge ratios normalized…

Kembali ke rata-rataStatistikKonstruksi portofolio
Stratmill research code

This strategy uses copulas to estimate conditional probabilities between two assets’ daily returns. It accumulates each probability’s deviation from 0.5 into a mispricing index flag, intended to translate return dependence into a measure of how prices have…

Trading pasanganStatistikKembali ke rata-rataBacktesting
Stratmill research code

This Python module provides utilities for evaluating systematic strategies and constructing several trend signals. It computes annual return and volatility, Sharpe and Sortino ratios, downside risk, maximum drawdown, Calmar ratio, positive-return frequency,…

Mengikuti trenIndikator teknikalManajemen risikoBacktesting
Stratmill research code

This module implements analytical trading calculations for an Ornstein–Uhlenbeck mean-reverting process, following a published statistical-arbitrage model. Given an entry threshold, an exit threshold, and transaction costs, it computes expected trade length,…

Kembali ke rata-rataArbitraseStatistikManajemen risiko
Stratmill research code

This tutorial develops bivariate copulas as a way to describe dependence separately from the marginal distributions of two variables. It defines tail dependence and the Fréchet–Hoeffding bounds, then explains how an empirical copula can be estimated from…

StatistikManajemen risikoTrading pasanganPenetapan harga derivatif
Stratmill research code

This document outlines a two-stage workflow for calculating Alpha101 factors. First, it reads daily stock data, derives base series such as returns and VWAP, and computes time-series intermediate variables for storage. Later, factor construction retrieves…

SahamInvestasi faktorStatistikBacktesting
Stratmill research code

This document is a historical price table for a broad set of country and regional exchange-traded funds. It lists dates alongside one price series for each ETF, with examples spanning markets such as Japan, Brazil, Germany, India, and the United Kingdom. The…

SahamMulti-asetStatistik
Stratmill research code

The document presents a framework for trading a mean-reverting portfolio, often formed by holding one asset and shorting another. It models portfolio value with an Ornstein–Uhlenbeck process, estimates the long-run mean, reversion speed, and volatility by…

Kembali ke rata-rataTrading pasanganStatistikManajemen risiko
Stratmill research code

The module implements the two-step Engle–Granger approach to constructing a portfolio intended to be mean reverting. It uses ordinary least squares to regress a chosen dependent asset’s price on the other price series, defaulting to the first input column as…

Trading pasanganKembali ke rata-rataStatistikKonstruksi portofolio
Stratmill research code

This script builds a universe of Binance futures contracts using 24-hour ticker data and exchange metadata. It joins weighted average price and quote volume with contract onboarding date, price tick size, and order quantity constraints. It then excludes…

KriptoFuturesMikrostruktur pasar
Stratmill research code

This note proposes screening Chinese metaverse-sector equities using two signals: rank by the day’s opening-auction value and retain the leading five, then require at least two limit-up events within a stated 500-day lookback. It includes platform-specific…

SahamMomentumPasar TiongkokMikrostruktur pasar