<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Petra on Programming: A Unique Trend Indicator	</title>
	<atom:link href="https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/feed/" rel="self" type="application/rss+xml" />
	<link>https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/</link>
	<description>A new view on algorithmic trading</description>
	<lastBuildDate>Wed, 04 Jan 2023 08:47:02 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Petra Volkova		</title>
		<link>https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/#comment-87453</link>

		<dc:creator><![CDATA[Petra Volkova]]></dc:creator>
		<pubDate>Wed, 04 Jan 2023 08:47:02 +0000</pubDate>
		<guid isPermaLink="false">https://financial-hacker.com/?p=3424#comment-87453</guid>

					<description><![CDATA[var Spearman(vars Data,int Period)
{
	int* Idx = sortIdx(Data,Period);
	var Sum = 0;
	int i,count;
	for(i=0,count=Period-1; i &#060; Period; i++,count--)
		Sum += (count-Idx[i])*(count-Idx[i]);
	return 1. - 6.*Sum/(Period*(Period*Period-1.));
}

If you have Zorro, you can find the source codes in the file &quot;indicators.c&quot;. ]]></description>
			<content:encoded><![CDATA[<p>var Spearman(vars Data,int Period)<br />
{<br />
	int* Idx = sortIdx(Data,Period);<br />
	var Sum = 0;<br />
	int i,count;<br />
	for(i=0,count=Period-1; i &lt; Period; i++,count&#8211;)<br />
		Sum += (count-Idx[i])*(count-Idx[i]);<br />
	return 1. &#8211; 6.*Sum/(Period*(Period*Period-1.));<br />
}</p>
<p>If you have Zorro, you can find the source codes in the file &#8220;indicators.c&#8221;. </p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kael		</title>
		<link>https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/#comment-87440</link>

		<dc:creator><![CDATA[Kael]]></dc:creator>
		<pubDate>Wed, 04 Jan 2023 04:19:21 +0000</pubDate>
		<guid isPermaLink="false">https://financial-hacker.com/?p=3424#comment-87440</guid>

					<description><![CDATA[Hello Petra,

Can you include the lite-c code for spearman here ?]]></description>
			<content:encoded><![CDATA[<p>Hello Petra,</p>
<p>Can you include the lite-c code for spearman here ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Petra Volkova		</title>
		<link>https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/#comment-77953</link>

		<dc:creator><![CDATA[Petra Volkova]]></dc:creator>
		<pubDate>Sun, 16 Jan 2022 09:21:33 +0000</pubDate>
		<guid isPermaLink="false">https://financial-hacker.com/?p=3424#comment-77953</guid>

					<description><![CDATA[I am not this familiar with correlations, but when comparing it with the Zorro code for the Spearman and Pearson correlation functions, I see that you are probably right.  The CTI uses the Pearson correlation.]]></description>
			<content:encoded><![CDATA[<p>I am not this familiar with correlations, but when comparing it with the Zorro code for the Spearman and Pearson correlation functions, I see that you are probably right.  The CTI uses the Pearson correlation.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Giorgio		</title>
		<link>https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/#comment-77952</link>

		<dc:creator><![CDATA[Giorgio]]></dc:creator>
		<pubDate>Sun, 16 Jan 2022 08:35:52 +0000</pubDate>
		<guid isPermaLink="false">https://financial-hacker.com/?p=3424#comment-77952</guid>

					<description><![CDATA[In spite of what John Ehlers writes in the original article - Spearman correlation - the formula provided is the Pearson correlation formula. Pls check yourself. Spearman is robust to any distribution of the data, while Pearson implies normality. If you wish, you can try implement with the actual Spearman and see the difference (in terms of lead-lag or noise)]]></description>
			<content:encoded><![CDATA[<p>In spite of what John Ehlers writes in the original article &#8211; Spearman correlation &#8211; the formula provided is the Pearson correlation formula. Pls check yourself. Spearman is robust to any distribution of the data, while Pearson implies normality. If you wish, you can try implement with the actual Spearman and see the difference (in terms of lead-lag or noise)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Arnis Lapsa		</title>
		<link>https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/#comment-76248</link>

		<dc:creator><![CDATA[Arnis Lapsa]]></dc:creator>
		<pubDate>Sat, 30 Oct 2021 06:13:03 +0000</pubDate>
		<guid isPermaLink="false">https://financial-hacker.com/?p=3424#comment-76248</guid>

					<description><![CDATA[`CTI(Close, 14)` yields me about 10% (which isn&#039;t bad)

sort of don&#039;t like it / haven&#039;t found proper application]]></description>
			<content:encoded><![CDATA[<p>`CTI(Close, 14)` yields me about 10% (which isn&#8217;t bad)</p>
<p>sort of don&#8217;t like it / haven&#8217;t found proper application</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Quantocracy&#039;s Daily Wrap for 04/17/2020 &#124; Quantocracy		</title>
		<link>https://financial-hacker.com/petra-on-programming-a-unique-trend-indicator/#comment-64755</link>

		<dc:creator><![CDATA[Quantocracy&#039;s Daily Wrap for 04/17/2020 &#124; Quantocracy]]></dc:creator>
		<pubDate>Tue, 05 May 2020 05:46:33 +0000</pubDate>
		<guid isPermaLink="false">https://financial-hacker.com/?p=3424#comment-64755</guid>

					<description><![CDATA[[&#8230;] Petra on Programming: A Unique Trend Indicator [Financial Hacker] [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Petra on Programming: A Unique Trend Indicator [Financial Hacker] [&#8230;]</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
