<!doctype html><htmllang=endir=ltrclass="blog-wrapper blog-post-page plugin-blog plugin-id-default"data-has-hydrated=false><metacharset=UTF-8><metaname=generatorcontent="Docusaurus v3.6.1"><titledata-rh=true>Guaranteed money maker | The Old Speice Guy</title><metadata-rh=truename=viewportcontent="width=device-width,initial-scale=1.0"><metadata-rh=truename=twitter:cardcontent=summary_large_image><metadata-rh=trueproperty=og:urlcontent=https://speice.io/2016/02/guaranteed-money-maker><metadata-rh=trueproperty=og:localecontent=en><metadata-rh=truename=docusaurus_localecontent=en><metadata-rh=truename=docusaurus_tagcontent=default><metadata-rh=truename=docsearch:languagecontent=en><metadata-rh=truename=docsearch:docusaurus_tagcontent=default><metadata-rh=trueproperty=og:titlecontent="Guaranteed money maker | The Old Speice Guy"><metadata-rh=truename=descriptioncontent="Developing an investment strategy based on the Martingale betting strategy"><metadata-rh=trueproperty=og:descriptioncontent="Developing an investment strategy based on the Martingale betting strategy"><metadata-rh=trueproperty=og:typecontent=article><metadata-rh=trueproperty=article:published_timecontent=2016-02-03T12:00:00.000Z><linkdata-rh=truerel=iconhref=/img/favicon.ico><linkdata-rh=truerel=canonicalhref=https://speice.io/2016/02/guaranteed-money-maker><linkdata-rh=truerel=alternatehref=https://speice.io/2016/02/guaranteed-money-makerhreflang=en><linkdata-rh=truerel=alternatehref=https://speice.io/2016/02/guaranteed-money-makerhreflang=x-default><scriptdata-rh=truetype=application/ld+json>{"@context":"https://schema.org","@id":"https://speice.io/2016/02/guaranteed-money-maker","@type":"BlogPosting","author":{"@type":"Person","name":"Bradlee Speice"},"dateModified":"2024-11-03T23:57:32.000Z","datePublished":"2016-02-03T12:00:00.000Z","description":"Developing an investment strategy based on the Martingale betting strategy","headline":"Guaranteed money maker","isPartOf":{"@id":"https://speice.io/","@type":"Blog","name":"Blog"},"keywords":[],"mainEntityOfPage":"https://speice.io/2016/02/guaranteed-money-maker","name":"Guaranteed money maker","url":"https://speice.io/2016/02/guaranteed-money-maker"}</script><linkrel=alternatetype=application/rss+xmlhref=/rss.xmltitle="The Old Speice Guy RSS Feed"><linkrel=alternatetype=application/atom+xmlhref=/atom.xmltitle="The Old Speice Guy Atom Feed"><linkrel=stylesheethref=/katex/katex.min.css><linkrel=stylesheethref=/assets/css/styles.16c3428d.css><scriptsrc=/assets/js/runtime~main.29a27dcf.jsdefer></script><scriptsrc=/assets/js/main.d461af80.jsdefer></script><bodyclass=navigation-with-keyboard><script>!function(){vart,e=function(){try{returnnewURLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{returnwindow.localStorage.getItem("theme")}catch(t){}}();t=null!==e?e:"light",document.documentElement.setAttribute("data-theme",t)}(),function(){try{for(var[t,e]ofnewURLSearchParams(window.location.search).entries())if(t.startsWith("docusaurus-data-")){vara=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><divid=__docusaurus><divrole=regionaria-label="Skip to main content"><aclass=skipToContent_fXgnhref=#__docusaurus_skipToContent_fallback>Skip to main content</a></div><navaria-label=Mainclass="navbar navbar--fixed-top"><divclass=navbar__inner><divclass=navbar__items><buttonaria-label="Toggle navigation bar"aria-expanded=falseclass="navbar__toggle clean-btn"type=button><svgwidth=30height=30viewBox="0 0 30 30"aria-hidden=true><pathstroke=currentColorstroke-linecap=roundstroke-miterlimit=10stroke-width=2d="M4 7h22M4 15h22M4 23h22"/></svg></button><aclass=navbar__brandhref=/><divclass=navbar__logo><imgsrc=/img/logo.svgalt="Sierpinski Gasket"class="themedComponent_mlkZ themedComponent--light_NVdE"><imgsrc=/img/logo-dark.svgalt="Sierpinski Gasket"class="themedComponent_mlkZ themedComponent--dark_xIcU"></div><bclass="na
<p>My previous class in Stochastic Calculus covered a lot of interesting topics, and the important one for today is the <ahref="https://en.wikipedia.org/wiki/Gambler's_ruin"target=_blankrel="noopener noreferrer">Gambler's Ruin</a> problem. If you're interested in some of the theory behind it, also make sure to check out <ahref=https://en.wikipedia.org/wiki/Random_walktarget=_blankrel="noopener noreferrer">random walks</a>. The important bit is that we studied the <ahref=https://en.wikipedia.org/wiki/Martingale_%28betting_system%29target=_blankrel="noopener noreferrer">Martingale Betting Strategy</a>, which describes for us a <strong>guaranteed way</strong> to <small>eventually</small> make money.</p>
<p>The strategy goes like this: You are going to toss a fair coin with a friend. If you guess heads or tails correctly, you get back double the money you bet. If you guess incorrectly, you lose money. How should you bet?</p>
<p>The correct answer is that you should double your bet each time you lose. Then when you finally win, you'll be guaranteed to make back everything you lost and then $1 extra! Consider the scenario:</p>
<ol>
<li>You bet $1, and guess incorrectly. You're 1 dollar in the hole.</li>
<li>You bet $2, and guess incorrectly. You're 3 dollars in the hole now.</li>
<li>You bet $4, and guess incorrectly. You're 7 dollars in the hole.</li>
<li>You bet $8, and guess correctly! You now get back those 8 dollars you bet, plus 8 extra for winning, for a <strong>total profit of one dollar</strong>!</li>
</ol>
<p>Mathematically, we can prove that as long as you have unlimited money to bet, you are guaranteed to make money.</p>
<h2class="anchor anchorWithStickyNavbar_LWe7"id=applying-the-martingale-strategy>Applying the Martingale Strategy<ahref=#applying-the-martingale-strategyclass=hash-linkaria-label="Direct link to Applying the Martingale Strategy"title="Direct link to Applying the Martingale Strategy"></a></h2>
<p>But we're all realistic people, and once you start talking about "unlimited money" eyebrows should be raised. Even still, this is an interesting strategy to investigate, and I want to apply it to the stock market. As long as we can guarantee there's a single day in which the stock goes up, we should be able to make money right? The question is just how much we have to invest to guarantee this.</p>
<p>Now it's time for the math. We'll use the following definitions:</p>
<ul>
<li><spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><msub><mi>o</mi><mi>i</mi></msub></mrow><annotationencoding=application/x-tex>o_i</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.5806em;vertical-align:-0.15em></span><spanclass=mord><spanclass="mord mathnormal">o</span><spanclass=msupsub><spanclass="vlist-t vlist-t2"><spanclass=vlist-r><spanclass=vliststyle=height:0.3117em><spanstyle=top:-2.55em;margin-left:0em;margin-right:0.05em><spanclass=pstrutstyle=height:2.7em></span><spanclass="sizing reset-size6 size3 mtight"><spanclass="mord mathnormal mtight">i</span></span></span></span><spanclass=vlist-s></span></span><spanclass=vlist-r><spanclass=vliststyle=height:0.15em><span></span></span></span></span></span></span></span></span></span> = the share price at the opening of day <spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><mi>i</mi></mrow><annotationencoding=application/x-tex>i</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.6595em></span><spanclass="mord mathnormal">i</span></span></span></span></li>
<li><spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><msub><mi>c</mi><mi>i</mi></msub></mrow><annotationencoding=application/x-tex>c_i</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.5806em;vertical-align:-0.15em></span><spanclass=mord><spanclass="mord mathnormal">c</span><spanclass=msupsub><spanclass="vlist-t vlist-t2"><spanclass=vlist-r><spanclass=vliststyle=height:0.3117em><spanstyle=top:-2.55em;margin-left:0em;margin-right:0.05em><spanclass=pstrutstyle=height:2.7em></span><spanclass="sizing reset-size6 size3 mtight"><spanclass="mord mathnormal mtight">i</span></span></span></span><spanclass=vlist-s></span></span><spanclass=vlist-r><spanclass=vliststyle=height:0.15em><span></span></span></span></span></span></span></span></span></span> = the share price at the close of day <spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><mi>i</mi></mrow><annotationencoding=application/x-tex>i</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.6595em></span><spanclass="mord mathnormal">i</span></span></span></span></li>
<li><spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><msub><mi>d</mi><mi>i</mi></msub></mrow><annotationencoding=application/x-tex>d_i</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.8444em;vertical-align:-0.15em></span><spanclass=mord><spanclass="mord mathnormal">d</span><spanclass=msupsub><spanclass="vlist-t vlist-t2"><spanclass=vlist-r><spanclass=vliststyle=height:0.3117em><spanstyle=top:-2.55em;margin-left:0em;margin-right:0.05em><spanclass=pstrutstyle=height:2.7em></span><spanclass="sizing reset-size6 size3 mtight"><spanclass="mord mathnormal mtight">i</span></span></span></span><spanclass=vlist-s></span></span><spanclass=vlist-r><spanclass=vliststyle=height:0.15em><span></span></span></span></span></span></span></span></span></span> = the amount of money we want to invest at the beginning of day <spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><mi>i</mi></mrow><annotationencoding=application/x-tex>i</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.6595em></span><spanclass="mord mathnormal">i</span></span></span></span></li>
</ul>
<p>With those definitions in place, I'd like to present the formula that is <strong>guaranteed to make you money</strong>. I call it <em>Bradlee's Investment Formula</em>:</p>
<p>It might not look like much, but if you can manage to make it so that this formula holds true, you will be guaranteed to make money. The intuition behind the formula is this: The closing share price times the number of shares you have purchased ends up greater than the amount of money you invested.</p>
<p>That is, on day <spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><mi>n</mi></mrow><annotationencoding=application/x-tex>n</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.4306em></span><spanclass="mord mathnormal">n</span></span></span></span>, <small>if you know what the closing price will be</small> you can set up the amount of money you invest that day to <strong>guarantee you make money</strong>. I'll even teach you to figure out how much money that is! Take a look:</p>
<p>If you invest exactly <spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><msub><mi>d</mi><mi>n</mi></msub></mrow><annotationencoding=application/x-tex>d_n</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.8444em;vertical-align:-0.15em></span><spanclass=mord><spanclass="mord mathnormal">d</span><spanclass=msupsub><spanclass="vlist-t vlist-t2"><spanclass=vlist-r><spanclass=vliststyle=height:0.1514em><spanstyle=top:-2.55em;margin-left:0em;margin-right:0.05em><spanclass=pstrutstyle=height:2.7em></span><spanclass="sizing reset-size6 size3 mtight"><spanclass="mord mathnormal mtight">n</span></span></span></span><spanclass=vlist-s></span></span><spanclass=vlist-r><spanclass=vliststyle=height:0.15em><span></span></span></span></span></span></span></span></span></span> that day, you'll break even. But if you can make sure the money you invest is greater than that quantity on the right <small>(which requires that you have a crystal ball tell you the stock's closing price)</small> you are <strong>guaranteed to make money!</strong></p>
<h2class="anchor anchorWithStickyNavbar_LWe7"id=interesting-implications>Interesting Implications<ahref=#interesting-implicationsclass=hash-linkaria-label="Direct link to Interesting Implications"title="Direct link to Interesting Implications"></a></h2>
<p>On a more serious note though, the formula above tells us a couple of interesting things:</p>
<ol>
<li>It's impossible to make money without the closing price at some point being greater than the opening price (or vice-versa if you are short selling) - there is no amount of money you can invest that will turn things in your favor.</li>
<li>Close prices of the past aren't important if you're concerned about the bottom line. While chart technicians use price history to make judgment calls, in the end, the closing price on anything other than the last day is irrelevant.</li>
<li>It's possible to make money as long as there is a single day where the closing price is greater than the opening price! You might have to invest a lot to do so, but it's possible.</li>
<li>You must make a prediction about where the stock will close at if you want to know how much to invest. That is, we can set up our investment for the day to make money if the stock goes up 1%, but if it only goes up .5% we'll still lose money.</li>
<li>It's possible the winning move is to scale back your position. Consider the scenario:<!---->
<ul>
<li>You invest money and the stock closes down the day .5%</li>
<li>You invest tomorrow expecting the stock to go up 1%</li>
<li>The winning investment to break even (assuming a 1% increase) is to scale back the position, since the shares you purchased at the beginning would then be profitable</li>
</ul>
</li>
</ol>
<h2class="anchor anchorWithStickyNavbar_LWe7"id=running-the-simulation>Running the simulation<ahref=#running-the-simulationclass=hash-linkaria-label="Direct link to Running the simulation"title="Direct link to Running the simulation"></a></h2>
<p>So now that we've defined our investment formula,we need to tweak a couple things in order to make an investment strategy we can actually work with. There are two issues we need to address:</p>
<ol>
<li>The formula only tells us how much to invest if we want to break even (<spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><msub><mi>d</mi><mi>n</mi></msub></mrow><annotationencoding=application/x-tex>d_n</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.8444em;vertical-align:-0.15em></span><spanclass=mord><spanclass="mord mathnormal">d</span><spanclass=msupsub><spanclass="vlist-t vlist-t2"><spanclass=vlist-r><spanclass=vliststyle=height:0.1514em><spanstyle=top:-2.55em;margin-left:0em;margin-right:0.05em><spanclass=pstrutstyle=height:2.7em></span><spanclass="sizing reset-size6 size3 mtight"><spanclass="mord mathnormal mtight">n</span></span></span></span><spanclass=vlist-s></span></span><spanclass=vlist-r><spanclass=vliststyle=height:0.15em><span></span></span></span></span></span></span></span></span></span>). If we actually want to turn a profit, we need to invest more than that, which we will refer to as the <strong>bias</strong>.</li>
<li>The formula assumes we know what the closing price will be on any given day. If we don't know this, we can still invest assuming the stock price will close at a level we choose. If the price doesn't meet this objective, we try again tomorrow! This predetermined closing price will be referred to as the <strong>expectation</strong>.</li>
</ol>
<p>Now that we've defined our <em>bias</em> and <em>expectation</em>, we can actually build a strategy we can simulate. Much like the martingale strategy told you to bet twice your previous bet in order to make money, we've designed a system that tells us how much to bet in order to make money as well.</p>
<p>Now, let's get some data and run a simulation! Our first test:</p>
<ul>
<li>We'll invest 100 dollars in LMT, and expect that the stock will close up 1% every day. We'll invest <spanclass=katex><spanclass=katex-mathml><math><semantics><mrow><msub><mi>d</mi><mi>n</mi></msub></mrow><annotationencoding=application/x-tex>d_n</annotation></semantics></math></span><spanclass=katex-htmlaria-hidden=true><spanclass=base><spanclass=strutstyle=height:0.8444em;vertical-align:-0.15em></span><spanclass=mord><spanclass="mord mathnormal">d</span><spanclass=msupsub><spanclass="vlist-t vlist-t2"><spanclass=vlist-r><spanclass=vliststyle=height:0.1514em><spanstyle=top:-2.55em;margin-left:0em;margin-right:0.05em><spanclass=pstrutstyle=height:2.7em></span><spanclass="sizing reset-size6 size3 mtight"><spanclass="mord mathnormal mtight">n</span></span></span></span><spanclass=vlist-s></span></span><spanclass=vlist-r><spanclass=vliststyle=height:0.15em><span></span></span></span></span></span></span></span></span></span> + 10 dollars every day that we haven't turned a profit, and end the simulation once we've made a profit.</li>
<p>In this example, we only get up to a 1.85x leveraged position, but it takes 25 days to turn a profit of 8¢</p>
<h2class="anchor anchorWithStickyNavbar_LWe7"id=summary>Summary<ahref=#summaryclass=hash-linkaria-label="Direct link to Summary"title="Direct link to Summary"></a></h2>
<p>We've defined an investment strategy that can tell us how much to invest when we know what the closing position of a stock will be. We can tweak the strategy to actually make money, but plenty of work needs to be done so that we can optimize the money invested.</p>
<p>In the next post I'm going to post more information about some backtests and strategy tests on this strategy (unless of course this experiment actually produces a significant profit potential, and then I'm keeping it for myself).</p>
<h3class="anchor anchorWithStickyNavbar_LWe7"id=side-note-and-disclaimer>Side note and disclaimer<ahref=#side-note-and-disclaimerclass=hash-linkaria-label="Direct link to Side note and disclaimer"title="Direct link to Side note and disclaimer"></a></h3>