<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adrian Velai</title>
    <description>The latest articles on DEV Community by Adrian Velai (@bitcoinaipro).</description>
    <link>https://dev.to/bitcoinaipro</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4150517%2F989f138b-f8bb-4eff-909f-ce4159511d95.jpg</url>
      <title>DEV Community: Adrian Velai</title>
      <link>https://dev.to/bitcoinaipro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bitcoinaipro"/>
    <language>en</language>
    <item>
      <title>Overfitting in trading strategies: what a million trials taught me</title>
      <dc:creator>Adrian Velai</dc:creator>
      <pubDate>Mon, 19 Oct 2026 17:30:28 +0000</pubDate>
      <link>https://dev.to/bitcoinaipro/overfitting-in-trading-strategies-what-a-million-trials-taught-me-3pgc</link>
      <guid>https://dev.to/bitcoinaipro/overfitting-in-trading-strategies-what-a-million-trials-taught-me-3pgc</guid>
      <description>&lt;p&gt;Run enough configurations against the same history and the top row will eventually look exceptional, even if no durable edge exists. That's overfitting: mistaking the winner of a search for a discovery.&lt;/p&gt;

&lt;p&gt;I've now run 1,000,000+ machine-learning, execution and robustness trials on Bitcoin. Only two model generations ever left research for operation. The rejection rate tells you more than the prettiest backtest.&lt;/p&gt;

&lt;h2&gt;
  
  
  A failure worth sharing
&lt;/h2&gt;

&lt;p&gt;One model's feature-importance profile showed a calendar-derived input dominating its decisions. It had learned &lt;em&gt;when&lt;/em&gt; profitable observations occurred in the sample, not a durable market state. It looked great until chronology forced the issue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five defences
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Prefer stable regions to isolated peaks.&lt;/li&gt;
&lt;li&gt;Reproduce the exact artefact (trained binary, inputs, trade sequence) before changing anything.&lt;/li&gt;
&lt;li&gt;Keep selection and later evidence separate: a block you've inspected repeatedly stops being independent.&lt;/li&gt;
&lt;li&gt;Treat retraining as model risk. Repeated refits can add variance instead of adaptivity.&lt;/li&gt;
&lt;li&gt;Audit execution separately from the signal.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  In-sample vs out-of-sample
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;In-sample&lt;/th&gt;
&lt;th&gt;Model-weight OOS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Period&lt;/td&gt;
&lt;td&gt;Jan 2018 – Jul 2022&lt;/td&gt;
&lt;td&gt;30 Jul 2022 – Aug 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trades&lt;/td&gt;
&lt;td&gt;151&lt;/td&gt;
&lt;td&gt;210&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SQN&lt;/td&gt;
&lt;td&gt;5.348&lt;/td&gt;
&lt;td&gt;2.129&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Simple return&lt;/td&gt;
&lt;td&gt;+733.7 pt&lt;/td&gt;
&lt;td&gt;+253.9 pt&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Win rate&lt;/td&gt;
&lt;td&gt;63.6%&lt;/td&gt;
&lt;td&gt;50.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max drawdown&lt;/td&gt;
&lt;td&gt;-31.04 pt&lt;/td&gt;
&lt;td&gt;-25.34 pt&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;1:1 notional-equivalent research statistics, not a compounded account return. The gap is the cost of leaving the training set.&lt;/p&gt;

&lt;p&gt;I deliberately don't publish the horizon, barrier calibration, threshold, hyperparameters or trained model, since that would make the production model easy to reproduce.&lt;/p&gt;

&lt;p&gt;Full write-up with FAQ: &lt;a href="https://www.bitcoinai.pro/overfitting-trading-strategies/" rel="noopener noreferrer"&gt;https://www.bitcoinai.pro/overfitting-trading-strategies/&lt;/a&gt;&lt;br&gt;
Walk-forward worked example: &lt;a href="https://www.bitcoinai.pro/walk-forward-analysis-for-bitcoin-trading-a-complete-worked-example/" rel="noopener noreferrer"&gt;https://www.bitcoinai.pro/walk-forward-analysis-for-bitcoin-trading-a-complete-worked-example/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Research, not investment advice. Historical and simulated results don't guarantee future performance.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>datascience</category>
      <category>bitcoin</category>
      <category>statistics</category>
    </item>
    <item>
      <title>Why Gradient Boosting Beats Deep Learning</title>
      <dc:creator>Adrian Velai</dc:creator>
      <pubDate>Tue, 29 Sep 2026 17:24:59 +0000</pubDate>
      <link>https://dev.to/bitcoinaipro/why-gradient-boosting-beats-deep-learning-5ed8</link>
      <guid>https://dev.to/bitcoinaipro/why-gradient-boosting-beats-deep-learning-5ed8</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Practical lessons for XGBoost trading research&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Use chronology before model sophistication. A sophisticated learner on contaminated splits is still contaminated.&lt;/p&gt;

&lt;p&gt;Keep the feature set compact. More indicators mostly increase the search space in which overfitting can hide.&lt;/p&gt;

&lt;p&gt;Ablate rather than trust importance. The only reliable test of a feature is what happens when it is removed under the same validation rule.&lt;/p&gt;

&lt;p&gt;Do not select by TEST. Later blocks are evidence only if they were not used to choose the candidate.&lt;/p&gt;

&lt;p&gt;Treat retraining as an experiment. A refit schedule should earn its place rather than being assumed to be adaptive.&lt;/p&gt;

&lt;p&gt;More analysis at &lt;/p&gt;

</description>
      <category>bitcoin</category>
      <category>machinelearning</category>
      <category>xgboost</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
