Practical overview
When it fits
Use it when you want a codebase to examine or adapt for BitMEX strategy experiments, particularly when beginning with the documented Testnet configuration.
Who it is for
- Developers studying or modifying a BitMEX trading bot.
- Traders who want to experiment with strategy settings and trade rules in code.
Documented uses
- Configure the example bot to use BitMEX Testnet credentials.
- Set a contract amount, leverage and strategy timeframe.
- Adjust MACD parameters or replace prediction and trade-execution logic.
Requirements & limits
The repository is public, lists an MIT license, and describes the code as free to use and modify.
- Running the code requires Python 3.6 or later, TA-Lib and the BitMEX Python API connector.
- The README recommends Testnet development before live-market use.
- The repository does not specify a particular operating system or deployment method.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Configure the bot for BitMEX Testnet
Set the documented configuration values for Testnet and a chosen strategy timeframe.
Before you start
- Python 3.6 or later
- TA-Lib
- BitMEX Python API connector
- BitMEX Testnet API key and secret
Steps
In configuration.py, set TEST_EXCHANGE to True and enter the Testnet API_KEY and API_SECRET.
Set AMOUNT_MONEY_TO_TRADE and LEVERAGE.
Choose a TIMEFRAME value: 1m, 5m, 1h or 1d.
Expected outcome
The configuration file contains the documented Testnet selection, credentials, contract amount, leverage and timeframe.
Guide limitations
- The README does not provide a complete deployment procedure.
- The project warns that users run the code at their own risk.
Adjust the example MACD parameters
Change the MACD periods used by the example strategy.
Before you start
- The repository code
- TA-Lib
Steps
Open strategy.py and locate the TA-Lib MACD call.
Change the fastperiod, slowperiod or signalperiod values.
Expected outcome
The example strategy uses the edited MACD parameter values.
Guide limitations
- Changing parameters does not establish the effectiveness of a strategy.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- IlyaKrotov/BitMEX-simple-trading-robot · Official homepage title · retained in its source language

