<?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: Javier G</title>
    <description>The latest articles on DEV Community by Javier G (@javier_g).</description>
    <link>https://dev.to/javier_g</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%2F4080280%2Fd94c9820-1701-4740-a7c9-9a039badb616.png</url>
      <title>DEV Community: Javier G</title>
      <link>https://dev.to/javier_g</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/javier_g"/>
    <language>en</language>
    <item>
      <title>I built a Java backtester to reproduce two published options strategies</title>
      <dc:creator>Javier G</dc:creator>
      <pubDate>Wed, 26 Aug 2026 17:49:40 +0000</pubDate>
      <link>https://dev.to/javier_g/i-built-a-java-backtester-to-reproduce-two-published-options-strategies-1lfa</link>
      <guid>https://dev.to/javier_g/i-built-a-java-backtester-to-reproduce-two-published-options-strategies-1lfa</guid>
      <description>&lt;p&gt;Most options backtests publish a final chart, but often leave out the exact requests, fill rules and execution assumptions needed to reproduce it.&lt;/p&gt;

&lt;p&gt;I wanted to build something where the complete process could be inspected, so I created an open-source Java backtester and used it to replicate two publicly described short-duration options strategies: Early Retirement Now and WealthyOption.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Results&lt;/strong&gt;&lt;br&gt;
Both tests use SPXW data from January 2017 to July 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strategy&lt;/th&gt;
&lt;th&gt;My backtest&lt;/th&gt;
&lt;th&gt;Published result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ERN — 0DTE + 1DTE puts&lt;/td&gt;
&lt;td&gt;1.55% annualized return&lt;/td&gt;
&lt;td&gt;7.06% annualized return&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WealthyOption — 3 puts + 3 calls&lt;/td&gt;
&lt;td&gt;17.58% CAGR / 21.43% max drawdown&lt;/td&gt;
&lt;td&gt;23.1% CAGR / 19.2% max drawdown&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These aren’t exact like-for-like comparisons. The ERN result published by its author includes discretionary decisions, while my implementation is entirely rules-based. The periods, data and execution models also differ.&lt;br&gt;
Technical details&lt;/p&gt;

&lt;p&gt;The project includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A streaming Java backtesting engine&lt;/li&gt;
&lt;li&gt;A Spring Boot API&lt;/li&gt;
&lt;li&gt;ThetaData five-minute option data integration&lt;/li&gt;
&lt;li&gt;SQLite persistence&lt;/li&gt;
&lt;li&gt;Configurable commissions, slippage and fill assumptions&lt;/li&gt;
&lt;li&gt;Versioned requests and complete backtest results&lt;/li&gt;
&lt;li&gt;Documentation covering the methodology and known limitations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The core engine is separated from the ThetaData integration so other data providers can be added later. The published tests include commissions and use documented bid/ask-based fill rules rather than assuming every trade executes at the midpoint.&lt;/p&gt;

&lt;p&gt;The repository is here:&lt;br&gt;
github.com/Javier-Garzo/ern-wo-options-backtester&lt;/p&gt;

&lt;p&gt;The main goal is to let other developers inspect the assumptions and reproduce the results instead of having to trust a performance chart. Feedback on the architecture, execution model or methodology is welcome.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>java</category>
      <category>trading</category>
      <category>options</category>
    </item>
  </channel>
</rss>
