Tutorial outlines OctoBot workflow for testing quantitative trading strategies
A tutorial presents an end-to-end workflow for developing and evaluating a rule-based quantitative trading strategy with OctoBot and OctoBot-Script in Google Colab. The setup uses an isolated Python 3.12 environment, OctoBot 2.1.1, and pinned dependencies so the experiment does not rely on Colab’s preinstalled packages. The tested market is BTC/USDT on the 1d timeframe.
The strategy combines RSI oversold readings with confirmation from 50- and 200-period exponential moving averages. It uses a 14-period ATR to adjust stop-loss and take-profit offsets, while position size is set to 20%. Historical OHLCV data is requested through OctoBot’s data layer, which tries Binance, KuCoin, OKX, Bybit, MEXC, and Kraken until an exchange responds.
The tutorial searches 18 parameter combinations for RSI period, RSI threshold, and take-profit ATR multiplier over the 2019-01-01 to 2023-01-01 in-sample period. The configuration with the strongest excess return over buy-and-hold is then tested on separate data from 2023-01-01 to 2025-06-01. Pandas and Plotly are used with OctoBot’s report data to examine sensitivity, portfolio results, indicators, price movements, and executions interactively.
Written by Sakhanda Wire AI from reporting by MarkTechPost. Facts, quotes and full context are in the original article below.