<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Stock Market Cycles: Code, Scripts & Indicators]]></title><description><![CDATA[In this section, you will find software code and indicator script snippets for cycle analysis. These snippets can be used as a starting point to build your own indicators and tools for cycle analysis. Whether you are a beginner developer or an experienced one, these source codes will provide you with a boilerplate to kickstart your coding journey in the field of cycle analysis.

Beta status: This section has been started and is expected to grow with additional content during Q1 2024.]]></description><link>https://lars.cycles.org/s/code</link><image><url>https://substackcdn.com/image/fetch/$s_!0L05!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb33c2b7b-9192-46d9-a122-01315025433c_1280x1280.png</url><title>Stock Market Cycles: Code, Scripts &amp; Indicators</title><link>https://lars.cycles.org/s/code</link></image><generator>Substack</generator><lastBuildDate>Wed, 20 May 2026 04:42:24 GMT</lastBuildDate><atom:link href="https://lars.cycles.org/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Lars von Thienen]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[stockmarketcycles@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[stockmarketcycles@substack.com]]></itunes:email><itunes:name><![CDATA[Lars von Thienen]]></itunes:name></itunes:owner><itunes:author><![CDATA[Lars von Thienen]]></itunes:author><googleplay:owner><![CDATA[stockmarketcycles@substack.com]]></googleplay:owner><googleplay:email><![CDATA[stockmarketcycles@substack.com]]></googleplay:email><googleplay:author><![CDATA[Lars von Thienen]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Cyclic Smoothed RSI Indicator | TradingView ]]></title><description><![CDATA[Public indicator version incl. source code]]></description><link>https://lars.cycles.org/p/cyclic-smoothed-rsi-indicator-tradingview</link><guid isPermaLink="false">https://lars.cycles.org/p/cyclic-smoothed-rsi-indicator-tradingview</guid><dc:creator><![CDATA[Lars von Thienen]]></dc:creator><pubDate>Sun, 26 Nov 2023 13:59:29 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/ecafdeea-f1fe-4189-aaff-f0ea3541d1f3_386x250.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!inMp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!inMp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 424w, https://substackcdn.com/image/fetch/$s_!inMp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 848w, https://substackcdn.com/image/fetch/$s_!inMp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 1272w, https://substackcdn.com/image/fetch/$s_!inMp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!inMp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png" width="375" height="200" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d70871cf-9db6-4282-acdc-dd617dee3216_375x200.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:200,&quot;width&quot;:375,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:8990,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!inMp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 424w, https://substackcdn.com/image/fetch/$s_!inMp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 848w, https://substackcdn.com/image/fetch/$s_!inMp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 1272w, https://substackcdn.com/image/fetch/$s_!inMp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd70871cf-9db6-4282-acdc-dd617dee3216_375x200.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div>
      <p>
          <a href="https://lars.cycles.org/p/cyclic-smoothed-rsi-indicator-tradingview">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Hodrick Prescott Filter - Source Code]]></title><description><![CDATA[Detrending data series with the HP filter]]></description><link>https://lars.cycles.org/p/hodrick-prescott-filter-source-code</link><guid isPermaLink="false">https://lars.cycles.org/p/hodrick-prescott-filter-source-code</guid><dc:creator><![CDATA[Lars von Thienen]]></dc:creator><pubDate>Tue, 14 Nov 2023 13:57:22 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!0L05!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb33c2b7b-9192-46d9-a122-01315025433c_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>&#8220;HP&#8221; Filter can be used to return either the detrended series or the trend component.</p><p>Source code is provided in C++ source code format:</p>
      <p>
          <a href="https://lars.cycles.org/p/hodrick-prescott-filter-source-code">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Goertzel Fourier Transform (DFT) Source Code]]></title><description><![CDATA[Cycle detection using discrete Goertzel Fourier transform (+ Video)]]></description><link>https://lars.cycles.org/p/goertzel-fourier-transform-code-snippets</link><guid isPermaLink="false">https://lars.cycles.org/p/goertzel-fourier-transform-code-snippets</guid><dc:creator><![CDATA[Lars von Thienen]]></dc:creator><pubDate>Mon, 13 Nov 2023 15:34:49 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!0L05!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb33c2b7b-9192-46d9-a122-01315025433c_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This article provides source code for the <strong>Goertzel algorithm</strong> to compute individual terms of the discrete Fourier transform. The first form provides the standard Goertzel loop. The second form provides a generalized version for the case of non-integer frequency values.</p><p>The Goertzel algorithm provides a flexible and improved way to apply cycle analysis to time series datasets. Please watch my cycles course for benefits and background using standard FFT, Goertzel and generalized Goertzel algorithms: </p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://lars.cycles.org/p/cycles-courses#%C2%A7course-learn-how-to-detect-dominant-cycles-with-spectrum-analysis&quot;,&quot;text&quot;:&quot;Show Video Course&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://lars.cycles.org/p/cycles-courses#%C2%A7course-learn-how-to-detect-dominant-cycles-with-spectrum-analysis"><span>Show Video Course</span></a></p><p><strong>Further reading &amp; references:</strong><br>&#187; Reference to Goertzel algorithm:  <a href="https://en.wikipedia.org/wiki/Goertzel_algorithm">Wikipedia on Goertzel</a><br><br>&#187; Sysel, P., Rajmic, P. Goertzel algorithm generalized to non-integer multiples of fundamental frequency. <em>EURASIP J. Adv. Signal Process.</em> <strong>2012</strong>, 56 (2012). <a href="https://doi.org/10.1186/1687-6180-2012-56">https://doi.org/10.1186/1687-6180-2012-56</a></p><h2>Source code section</h2><p>Code is provided in .NET C# language.</p>
      <p>
          <a href="https://lars.cycles.org/p/goertzel-fourier-transform-code-snippets">
              Read more
          </a>
      </p>
   ]]></content:encoded></item></channel></rss>