Python MT5 Backtesting Engine with Realistic Trading CostsPython MT5 Backtesting Engine with Realistic Trading Costs
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
A Python backtest engine that pulls MT5 price data and replays the bot's signal and trade logic candle by candle, with broker server time and timezones handled correctly. It factors in real trading costs like spread, slippage, and commission per lot, so results aren't overly optimistic. It supports several strategies, including BBMA, Supertrend, Ichimoku, and supply and demand. All settings live in a config file, so parameters can be changed without touching the code, and every run saves its own trade log and equity log.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started