﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RightEdge Forums / Trading / Trading Systems / Uploaded Trading Systems  / CorrelationTable / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>RightEdge Forums</description><link>http://www.rightedgesystems.com/forums/</link><webMaster>rightedge@yyesoftware.com</webMaster><lastBuildDate>Wed, 08 Feb 2012 15:54:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: CorrelationTable</title><link>http://www.rightedgesystems.com/forums/Topic4777-15-1.aspx</link><description>Great thanks.&lt;br&gt;&lt;br&gt;I have probs with bar synchronization (which is set to true). &lt;br&gt;&lt;br&gt;The code checks that the array pairs are same length but they are not. Are there any known bugs with the sync code?&lt;br&gt;&lt;br&gt;		int length = array1.GetUpperBound(0)-1;&lt;br&gt;		if(length != array2.GetUpperBound(0)-1)&lt;br&gt;		{&lt;br&gt;			throw new Exception("length mismatch array1/array2");&lt;br&gt;		}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I have differences of 100 or so bars over 16000 15min bars.....&lt;br&gt;&lt;br&gt;Setting the Data Start Date to a few weeks back (900-ish bars) has no issues. [b](I will start another thread about this though)[/b]&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 06 Jan 2010 21:35:41 GMT</pubDate><dc:creator>smersh</dc:creator></item><item><title>RE: CorrelationTable</title><link>http://www.rightedgesystems.com/forums/Topic4777-15-1.aspx</link><description>InnerList has been renamed to Items.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Daniel</description><pubDate>Wed, 06 Jan 2010 13:07:51 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>RE: CorrelationTable</title><link>http://www.rightedgesystems.com/forums/Topic4777-15-1.aspx</link><description>This is very useful however I have just tried to run it in Ed2 and notice that InnerList is no longer supported...Just wondering what the changes should be for Ed2&lt;br&gt;&lt;br&gt;&lt;br&gt;I suspect the old lines:&lt;br&gt;&lt;br&gt;			int cnt = bars.[b]InnerList.Count[/b];&lt;br&gt;			double old = bars.[b]InnerList[i-1].Close[/b];&lt;br&gt;			arr[i] = (bars.[b]InnerList[i].Close[/b] / old - 1.0 ) * 100.0;&lt;br&gt;&lt;br&gt;should be:&lt;br&gt;	&lt;br&gt;			int cnt = [b]bars.Count[/b];&lt;br&gt;			double old = bars.[b]LookBack(cnt-(i-1)).Close[/b];&lt;br&gt;			arr[i] = (bars.[b]LookBack(cnt-i).Close[/b] / old - 1.0 ) * 100.0;&lt;br&gt;&lt;br&gt;&lt;br&gt;Is this correct?&lt;br&gt;thanks&lt;br&gt;</description><pubDate>Tue, 05 Jan 2010 00:14:21 GMT</pubDate><dc:creator>smersh</dc:creator></item><item><title>RE: CorrelationTable</title><link>http://www.rightedgesystems.com/forums/Topic4777-15-1.aspx</link><description>Hi , first of all thank you very much Dr. Koch for this excelent code. And here comes my doubt´s :&lt;/P&gt;&lt;P&gt;i´m in doubt about the Bars method used here, first i would like to know if it were used in NewBar method in simulation mode, if it would return only the bars existed so far ??? And if there is a way acessing bars outside the script - so i can make a DLL to make easier to use it. Inputing Symbols name , and start and end time ???&lt;/P&gt;&lt;P&gt;               Thank´s in advance, Vitor .</description><pubDate>Mon, 31 Aug 2009 17:55:51 GMT</pubDate><dc:creator>vitor dantas</dc:creator></item><item><title>RE: CorrelationTable</title><link>http://www.rightedgesystems.com/forums/Topic4777-15-1.aspx</link><description>Just so you know who to give the credit to, this system was uploaded by DrKoch.  It doesn't show on the forum posts but you can see it in the uploaded trading section of the website and on &lt;A href="http://www.rightedgesystems.com/TradingSystemsDetails.aspx?id=349aae3e-e030-4041-8873-0ee9807e718b"&gt;the page for this system&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Daniel</description><pubDate>Sat, 25 Oct 2008 22:55:32 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>RE: CorrelationTable</title><link>http://www.rightedgesystems.com/forums/Topic4777-15-1.aspx</link><description>Thanks, this is useful.</description><pubDate>Sat, 25 Oct 2008 18:19:29 GMT</pubDate><dc:creator>henk</dc:creator></item><item><title>CorrelationTable</title><link>http://www.rightedgesystems.com/forums/Topic4777-15-1.aspx</link><description>Calculates Correlations of each two-symbol combination in a WatchList.Generates a CSV File (C:\temp\cTable.csv) with the complete Correlation Matrix and a CSV file (C:\temp\cList.csv) with a sorted list of correlation coefficients.The CSV files are ready to read with EXCEL.Correlation is calculated from the bar-to-bar percentage change (Close-Close) of each instrument.Note: This "Trading System" contains a Shutdown() procedure only.&lt;P&gt;The system can be downloaded by clicking &lt;a href="http://www.rightedgesystems.com/DownloadTradingSystem.aspx?Approved=Yes&amp;FileName=9711a71b-1964-495f-985c-588d8c4d3015.zip"&gt;here&lt;/a&gt;&lt;/P&gt;</description><pubDate>Thu, 06 Mar 2008 07:01:01 GMT</pubDate><dc:creator>billb</dc:creator></item></channel></rss>
