The document presents a Python port of a commodity futures moving average strategy originally implemented in JavaScript. It frames the example as a way to study multi-instrument strategy architecture, including per-contract state, position and order…
Biblioteca de conhecimento
Resumos e ideias principais, escritos pelo agente de investigação da Stratmill, dos livros, artigos científicos, artigos e código consultados pelos nossos agentes de IA. Cada página inclui uma ligação para o original.
Pesquisar na biblioteca
662 documentos
The document introduces two ways to transform ordinary candlestick data to make trends easier to inspect. Renko bars are added when price moves by at least a chosen brick size, independent of elapsed time; this suppresses smaller fluctuations and can…
The document explains the Aroon indicator, which uses how recently a market made its highest and lowest prices over a chosen lookback period. Aroon Up and Aroon Down range from zero to one hundred; readings near one hundred indicate that the corresponding…
The document describes a crypto futures execution problem: after a limit order fills, the exchange’s position endpoint may still report the earlier position. A strategy that relies on that stale response can conclude the order did not execute and place…
This article presents an FMZ framework for trading several perpetual futures symbols through unified platform APIs. It organizes per-symbol state for prices, orders, positions, precision, and account metrics, then describes routines for loading market…
This article introduces BIAS, the percentage distance between a closing price and its moving average, and interprets large positive or negative deviations as potential mean-reversion conditions. It then builds a directional strategy by comparing short- and…
The article explains the AR price-momentum indicator, calculated as the ratio of summed high-minus-open ranges to summed open-minus-low ranges over a lookback window. It interprets readings around 100 as a balance point: higher readings suggest stronger…
This article walks through connecting Claude Pro to an FMZ account through the Model Context Protocol (MCP), then using natural-language requests to inspect and operate trading tools. Demonstrations include checking running strategies, placing a series of…
This beginner guide groups common automated-trading failures into syntax errors, runtime bugs, configuration mistakes, and exchange API errors. It gives examples such as malformed symbol formats, invalid API credentials, network timeouts, request-rate…
This tutorial builds a PyTorch LSTM model to predict the next Bitcoin closing price from recent open, high, low, close, and volume data. It explains the model’s input and output dimensions, the role of sequence length and batch size, and how to connect a…
This article describes a monitoring script that polls funding rates for perpetual futures across multiple exchanges. It uses a separate worker for each exchange, applies exchange-specific delays to reduce request pressure, and handles venues differently…
This tutorial explains how to use FMZ’s built-in SQLite interface to store and manage structured data for trading strategies. It introduces table creation and the basic operations for inserting, querying, updating, and deleting records, and notes that the…
The document outlines a simple spot-market tool for attempting to buy a token as soon as its trading pair becomes available. It monitors the order book for data, then submits a configurable batch of concurrent limit buy orders with stepped prices and…
The document presents a historical overview of managed futures trading systems in three broad generations. Early systems are described as relatively simple trend followers, often using moving-average rules in a period characterized by persistent commodity…
The document describes adapting a fixed-weight, multi-indicator trading strategy by feeding its combined indicator score into a small neural network. Indicator weights vary by classified market state, but are initially hand-set. The proposed model uses the…
The document describes a same-asset calendar spread strategy using ETC futures with different expiries. It defines the spread from the bid and ask prices of weekly and quarterly contracts, then applies Bollinger Bands to the spread series. A move below the…
This article models how to choose an order size for FMEX's proposed debt-unlock program, where part of the daily return depends on a trader's share of each minute's trading volume. It focuses on that minute-based allocation, accounting for taker fees and an…
This tutorial compares several moving-average trading rules using daily commodity futures data. It starts with a single-average rule that trades when price crosses its average, then shows dual-average crossovers, adds conditions requiring the averages to…
This article explains R-Breaker, a commodity futures strategy that uses the prior day's high, low, and close to calculate a pivot and three support and resistance levels on each side. With no position, it enters long above the upper breakout level or short…
This tutorial translates a JavaScript candle aggregation routine into Python for creating trading intervals that an exchange or data provider does not supply. It infers the source interval from the final two records, checks that the target interval is an…
This article explains a platform-specific way to feed WebSocket quotes into an existing strategy without editing its core logic. It uses a reusable template library whose initialization function opens a supported exchange connection and replaces a…
This document presents a Pine strategy intended to help discretionary traders automate a preplanned entry and exit process. The configurable inputs control trade direction, order size, initial entry mode, stop distance, trailing offset, and the price…
This article describes an automated crypto futures approach that treats unusually large liquidation flows as potential trend continuation signals. It establishes a per-asset baseline by dividing historical liquidation amounts into time windows, then uses a…
This article offers practical rules for speculative cryptocurrency trading, centered on limiting financial exposure, monitoring Bitcoin’s influence on altcoins, diversifying holdings, setting profit targets, researching claims independently, and using stop…