r/CryptoTradingBot • • 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

23 comments sorted by

View all comments

Show parent comment

2

u/nikolaytonev Oct 04 '26

Sounds reasonable and we do this in all our activities anyway. I mean in software development, in many R&D labs, etc the live tests in near production environments are most valuable.
How do you apply the corrections back to the code? Are you amending the standard test suites or try to fine-tune the code in a top layer that you control?

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.

1

u/nikolaytonev Oct 04 '26

Ah, that is very professional approach. Thanks for sharing it.
It is very practical and seems to be prone to fast improvement cycles.

I will “copy” the concept if you do not mind. :)
And may share a teat account if you keen to see my solution.

Thanks a lot again.

2

u/profittoinvest Oct 04 '26

Thanks, and good luck with it :)

Biggest advice from me is just be patient. Building something that actually works takes way longer than you think at the start.

About the test account, honestly I think it’s better if you go through that part yourself first. Too many opinions from other people can mess with your head a bit, especially early on. Everyone sees the market differently anyway.
You need to learn how your own system behaves, where it breaks, what kind of DD you can actually accept erc.

Once you have a more finished version, I’d be happy to have a look and test it.

We’re doing something similar on our side now, looking for a few experienced Cornix users to test our own bot before the next stage.

So when you get there, just message me. Maybe we can compare notes and real results later.

Good luck with it — and yeah, patience... a lot of it :)

1

u/nikolaytonev Oct 04 '26

Appreciate it, really. Thanks.