This tutorial explains how to use Python notebooks for quantitative research, from collecting and saving exchange candlesticks to plotting price and trading-activity measures and testing strategies across symbols. It demonstrates paginated retrieval of…
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
219 documents
Automated trading uses software to monitor markets and place trades when predefined entry and exit conditions are met. Rules can range from simple moving average crossovers to custom strategies, with order types, timing, stops, and profit targets specified…
This tutorial explains how to add reusable template libraries to trading strategies and use a cryptocurrency spot-trading library. It demonstrates calling library buy and sell functions from interactive controls, while the template handles details such as…
This tutorial develops an earlier cryptocurrency spot hedging bot for trading price spreads between two exchanges. It adds optional spot margin mode switching for Binance, separate trigger thresholds for trades in each direction, chart lines and live spread…
The article introduces calendar spread arbitrage as opposing positions in contracts on the same underlying asset with different maturities. It describes monitoring the price difference between crypto contracts and acting when the spread widens beyond a…
The document compares two ways to retrieve Binance perpetual futures candles. Using the platform’s standard record retrieval after setting a maximum bar length of 1,500 returns only 1,000 records in the described example. A direct exchange API request for…
This guide explains how the FMZ Quant platform organizes strategy development and bot operation. Users manage strategies and bots through the website, while a Docker service on their own or a rented machine connects to exchanges, runs the strategy, and sends…
This introductory article outlines four blockchain themes: Bitcoin’s shared public ledger, Ethereum-style smart contracts, zero-knowledge proofs for privacy, and decentralized services for storage, messaging, and network access. It explains how a distributed…
This guide outlines an event-driven framework for monitoring and trading many Binance spot pairs quoted in a selected base currency. It recommends using the aggregated ticker WebSocket feed instead of repeatedly polling individual pairs, while noting that…
The author warns that rented strategies can display steadily rising live curves while concealing a risk of catastrophic loss. They describe systems resembling martingale or complex hedged, locked-position approaches, and recount a trader who ran several…
A trader reports that a live ETH/USDT setup returns a ticker whose raw exchange data identifies the symbol as ETCUSDT, with a last price far below the ETH price shown in the Binance app. The example also shows an account response containing a raw information…
The document presents a proposed one-minute crypto strategy using moving-average crosses to open and close long or short positions. Long entries require a fast-over-slow cross alongside upward slope and alignment filters; short entries reverse those…
The article describes a way to collect exchange ticker data concurrently while a JavaScript trading strategy runs. A separately compiled Go program acts as a protocol plugin and repeatedly requests market data, stores the latest ticker response, and serves…
This document introduces a digital-asset trading library that combines an existing spot-trading template with futures support for OKCoin and BitVC. Its main teaching is operational: futures orders require contract selection and position-aware handling that…
This discussion examines how starting portfolio composition can distort a simple account-value profit calculation for a cryptocurrency strategy. It compares two accounts following the same price move: one begins with a bitcoin and no cash, while the other…
This intermediate FMZ tutorial explains practical platform techniques for building automated trading strategies. It covers operating across exchanges and symbols, configuring futures and swap contracts, and handling API failures through retries, null checks,…
The document describes an order-management issue in a Binance perpetual futures example. A partially filled sell order has an original quantity and an executed quantity; subtracting the latter from the former in JavaScript produces a residual quantity with a…
This beginner tutorial explains why a live trading system may need to collect its own candlestick history. Some exchanges provide candle data directly, while others may not. The author distinguishes live use from testing: the platform supplies historical…
This overview organizes strategy examples collected from a cryptocurrency trading platform into three groups: basic trading aids, simple strategies for study, and strategies described as having performed well in live trading. The examples span price alerts,…
A trader asks why MACD golden-cross detection sometimes disagrees with a charting exchange during five-minute backtests. The comparison covers both simulated and live tickers over a two-day period. The trader reports that some cross signals were incorrectly…
The post asks how to identify the perpetual futures pairs with the largest 24-hour percentage price changes from exchange ticker data. The example response is a list of market records containing symbols and percentage changes, along with other fields such as…
This article presents a modified high-frequency “profit harvester” concept for a one-way crypto perpetual-futures market. It tracks recent trades and order-book prices, then compares a short-term weighted price estimate with recent highs or lows. A move…
This forum post reports a rejected Bitcoin sell order on an OKCoin futures account. The submitted quantity was 5.99 BTC, and the exchange response said that the order quantity must be a multiple of the lot size. The accompanying logs show the displayed…
This beginner guide introduces common programmed trading approaches: arbitrage, trend following, grid or return strategies, and high-frequency trading. It also distinguishes system designs that handle one or many symbols, accounts, or strategy logics. For…