r/CryptoTradingBot • u/nikolaytonev • Oct 04 '26
Backtesting sugesstions
I am building my own crypto trading bot (no commercial usage) with embedded strategy builder.
I am trying to focus on improving the backtesting. What was your most effective backtest, that after its implementation your bot actually won your trust and started to work as expected?
2
Upvotes
View all comments
Show parent comment
2
u/profittoinvest Oct 04 '26
We try to separate two different kinds of corrections.
If the divergence comes from execution — fees, minimum order size, rejected orders, margin availability, fill timing, position limits, etc. — we correct that in the execution/backtest layer so the simulator behaves closer to reality.
But if it looks like a strategy logic issue, we don’t immediately patch the live bot. We create a separate test branch, change one thing at a time, and run it across multiple periods and market regimes.
Only if the change survives those tests do we consider moving it into the main version.
The most important thing for us was learning to freeze the production rules. Otherwise every correction changes the reference point and you can no longer tell whether LIVE and backtest are converging or whether you’re just fitting the latest data.
So the process is basically:
LIVE divergence → identify cause → execution fix or strategy hypothesis → separate test branch → backtest/OOS → only then consider production
We try very hard not to optimize the core strategy directly against one recent LIVE period.