﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RightEdge Forums / Programming and Software Development / Programming Questions  / Memory issues - another thread / 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 16:05:31 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>I've improved the equity curve's performance.  The chart control was apparently getting bogged down when trying to draw the equity curve with too many data points.  I've limited the number of data points to 1000.  It still takes up a lot of CPU time when you move your mouse over the chart (because it keeps redrawing it), but I think it will be much improved.  This will be in the next build, so once we release that, try it out and let us know.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Daniel</description><pubDate>Mon, 29 Mar 2010 01:37:33 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>One other thing to add to the list to check is when you start a sim and the data starts loading then you cancel the simulation before it finishes.&lt;br&gt;&lt;br&gt;When doing this have seen it hold the memory that it had been using.</description><pubDate>Tue, 16 Mar 2010 18:53:09 GMT</pubDate><dc:creator>kaizen</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Too many data points and zooming are two possible causes, but we are also looking into ways to make it faster on our end.  Approximately how many bars is your simulation?</description><pubDate>Tue, 16 Mar 2010 16:03:05 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Ok Daniel thanks.&lt;br&gt;I must bring to your attention that it's hard for a new comer like me to test the software fully before purchasing if I cannot display an equity curve.&lt;br&gt;&lt;br&gt;Do you have an idea what triggers the freeze (and 100% CPU usage) when the Equity Curve tab is clicked? The graphic component maybe? An infinite loop?&lt;br&gt;&lt;br&gt;A little more information on my configuration:&lt;br&gt;OS : XP Home Edition SP3 32 bits FR&lt;br&gt;RAM : 2.5 GB&lt;br&gt;CPU : Pentium 4 @3.00 GHz&lt;br&gt;.Net Framework: [i]currently "repairing" 3.5 SP1[/i] (just to see if the problem comes from it)&lt;br&gt;RightEdge: Edition 2010 Build 17 - free 45 day trial&lt;br&gt;System: my first trading system tentative, running simulation on C (Citigroup stock), daily bars from Yahoo! historical data services (included in RE), ~8377 daily bars&lt;br&gt;&lt;br&gt;Let me know if I can be of further assistance. I'd be pleased to help you help me.&lt;br&gt;&lt;br&gt;Best,&lt;br&gt;PBJ</description><pubDate>Tue, 16 Mar 2010 09:38:45 GMT</pubDate><dc:creator>PBJ</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>The system results memory leak should be fixed in the next build.&lt;br&gt;&lt;br&gt;We still need to fix the equity curve issue, that may or may not make it into the next build.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Daniel</description><pubDate>Mon, 15 Mar 2010 23:25:16 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I'm currently reviewing RE 2010 using the free trial option of 45 days (great stuff!).&lt;br&gt;I have coded and tested my first trading system and have the exact same problem: when the simulation is complete and I click the Equity Curve tab, the app freezes and uses 100% of 1 core on my Dual Core CPU.&lt;br&gt;&lt;br&gt;Can I help you identify the problem? The only thing I did was to click Equity Curve.&lt;br&gt;Running latest version of RE 2010 on XP Home.&lt;br&gt;Please let me know if I can be of further assistance.&lt;br&gt;&lt;br&gt;Best,&lt;br&gt;PBJ</description><pubDate>Mon, 15 Mar 2010 12:58:52 GMT</pubDate><dc:creator>PBJ</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>I have made some progress on identifying the memory leak and expect to have it fixed in the next build.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Daniel</description><pubDate>Wed, 10 Mar 2010 13:59:53 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Bill, &lt;br&gt;&lt;br&gt;the big issue remains the memory that is not released after each backtest. Can you please try to give this priority. Seriously, back tests cannot be run efficiently if memory is not released after each run. I dont try to bitch about it (though I also dont wanna give up on this issue) but ultimately you make it easy for users to move onto their own VS platform, hook up to a HDF database or use the open source Tree Data Server and vola, you have a back testing platform that may be crude but at least do the things you want. Issue is, it take some time to develop which is why I am still with RE. But I got to the point where I do all my optimizations in matlab and currently work to code a real-time live strategy platform in VS for live trading because of limitations in RE. You guys came up with a great product, and I think its still the best ouf of the pack, and I truly want this product to succeed. Memory issues are for me the number one reason right now to look at alternatives...I dont think it has to be that way...which would be a win...win for all of us.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;[quote][b]billb (2/8/2010)[/b][hr]I've reproduced the equity curve problem.  It's simply getting bogged down by the data points and the zoom feature is exacerbating this.  I'm investigating ways to bind more efficiently, but may have to turn off zooming (or provide the option) to get this thing acting right.[/quote]</description><pubDate>Tue, 09 Feb 2010 00:19:16 GMT</pubDate><dc:creator>bbmat173</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>I've reproduced the equity curve problem.  It's simply getting bogged down by the data points and the zoom feature is exacerbating this.  I'm investigating ways to bind more efficiently, but may have to turn off zooming (or provide the option) to get this thing acting right.</description><pubDate>Mon, 08 Feb 2010 12:24:45 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>&lt;FONT size=2 face="Courier New"&gt;&lt;FONT size=2 face="Courier New"&gt;&lt;P&gt;setting SystemStatistics.Enabled = false&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face="Courier New"&gt;&lt;FONT size=2 face="Courier New"&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face="Courier New"&gt;&lt;FONT size=2 face="Courier New"&gt;each simulation run adds 20 MB of memory usage, set to false ech run adds 300-400 MB.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2 face="Courier New"&gt;&lt;FONT size=2 face="Courier New"&gt;My System generates about 400 Trades. I could do all statistics in Excel using 400KB ...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2 face="Courier New"&gt;&lt;FONT size=2 face="Courier New"&gt;Could anybody give me an example code how to export position/trade list to a CSV plus adding properties (data start date, allocation, Max open etc.) to this output?&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Sun, 07 Feb 2010 11:40:07 GMT</pubDate><dc:creator>gtomez</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>[quote][b]bbmat173 (2/6/2010)[/b][hr]I use NLOG to output a lot of stats[hr][/quote]&lt;P&gt;Hi bbmat!&lt;/P&gt;&lt;P&gt;Could you please post some examples of how to use NLOG here &lt;A href="http://www.rightedgesystems.com/forums/Topic9946-18-1.aspx?Highlight=NLOG"&gt;http://www.rightedgesystems.com/forums/Topic9946-18-1.aspx?Highlight=NLOG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully we will get soon some statements from RE to these memory issues...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GT</description><pubDate>Sun, 07 Feb 2010 09:24:07 GMT</pubDate><dc:creator>gtomez</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Having the exact same problems, so far nothing has been done to solve those bugs. Generating the equity curve takes very long time so I kinda gave up on it and do it myself (I use NLOG to output a lot of stats). However, RE is kind of getting useless if I cannot run a simple optimization or more than 1-2 backtests without having to close down the whole application, reload it, reload my strategy, re-selecting all symbols for the backtest, and run the next test....seriously, we started coding our own stuff in VS C#....if those issues cannot be solved soon then running backtests in RE is more a hassle than anything else. Quite disappointed about this because sometimes menial tasks are given priority while memory issues are piling up but nothing is done about it. I pointed it out several times among other users...&lt;br&gt;&lt;br&gt;I mean, isnt that a CLEAR BUG that memory is not released even after closing down the results tab, clearing output (I dont generate output in the first place). It should not matter how many symbols I use, how many userseries and so forth, point is, when I want to run another backtest I should be able to close whatever needs to be closed in order to re-capture memory...&lt;br&gt;&lt;br&gt;&lt;br&gt;[quote][b]gtomez (2/4/2010)[/b][hr]Hi!&lt;br&gt;&lt;br&gt;I have some problems using RE as I cannot run simulations only once ore twice until I get an OutOfMemory Exception.&lt;br&gt;&lt;br&gt;At startup of RE it uses app. 150 MB of memory&lt;br&gt;&lt;br&gt;After the first simulation it uses 800 MB and wont free up the memory afterwards. Second simulation pushes up memory usage to 1.4 GB.&lt;br&gt;&lt;br&gt;I'm generating UserSeries for about 400K Bars.&lt;br&gt;&lt;br&gt;Is there a way to set free the used memory after simulation?&lt;br&gt;&lt;br&gt;If I'm not interested in displaying UserSeries after the simulation, is it possible to use MaxLookBack for UserSeries as well?&lt;br&gt;&lt;br&gt;Increasing RAM from 4GB to 8 GB would allow 4 simulation runs but wont solve my problem ;)&lt;br&gt;&lt;br&gt;Kind Regards,&lt;br&gt;&lt;br&gt;GT[/quote]</description><pubDate>Sat, 06 Feb 2010 03:34:49 GMT</pubDate><dc:creator>bbmat173</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>[quote][b]billb (2/5/2010)[/b][hr]You're running the charts on 400,000 data points?&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;Yes, after consultation of my pocket calc it could be even more - up to 600-800k I guess&lt;br&gt;Running 2 Simulations is possible, but not another or displaying equity curve.</description><pubDate>Fri, 05 Feb 2010 09:18:57 GMT</pubDate><dc:creator>gtomez</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>You're running the charts on 400,000 data points?&lt;br&gt;&lt;br&gt;[quote][b]gtomez (2/5/2010)[/b][hr]Sometimes I close it sometimes not - seems to make no difference (long, short, b&amp;h - reports are disabled)&lt;br&gt;&lt;br&gt;In the output window are about 30 entries concerning MaxOpenPositions, Used Memory and Counter (the latter two have one line each).&lt;br&gt;&lt;br&gt;&lt;br&gt;Another problem showed up yesterday night:&lt;br&gt;When I chose "Equity curve" to be evaluated in the reports, the application freezes still using one CPU 100%. Memory usage does not change. Even after 15 min the application is still "frozen".&lt;br&gt;&lt;br&gt;RE Ed2 build 14&lt;br&gt;Win7 64 bit&lt;br&gt;AMD Phenom Quad&lt;br&gt;4 GB memory[/quote]</description><pubDate>Fri, 05 Feb 2010 08:55:14 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Sometimes I close it sometimes not - seems to make no difference (long, short, b&amp;h - reports are disabled)&lt;br&gt;&lt;br&gt;In the output window are about 30 entries concerning MaxOpenPositions, Used Memory and Counter (the latter two have one line each).&lt;br&gt;&lt;br&gt;&lt;br&gt;Another problem showed up yesterday night:&lt;br&gt;When I chose "Equity curve" to be evaluated in the reports, the application freezes still using one CPU 100%. Memory usage does not change. Even after 15 min the application is still "frozen".&lt;br&gt;&lt;br&gt;RE Ed2 build 14&lt;br&gt;Win7 64 bit&lt;br&gt;AMD Phenom Quad&lt;br&gt;4 GB memory</description><pubDate>Fri, 05 Feb 2010 05:51:06 GMT</pubDate><dc:creator>gtomez</dc:creator></item><item><title>RE: Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Are you closing the results window after each run or leaving it open?&lt;br&gt;&lt;br&gt;Is your system generating a lot of output (to the output window)?</description><pubDate>Fri, 05 Feb 2010 01:12:28 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>Memory issues - another thread</title><link>http://www.rightedgesystems.com/forums/Topic10691-18-1.aspx</link><description>Hi!&lt;P&gt;I have some problems using RE as I cannot run simulations only once ore twice until I get an OutOfMemory Exception.&lt;/P&gt;&lt;P&gt;At startup of RE it uses app. 150 MB of memory&lt;/P&gt;&lt;P&gt;After the first simulation it uses 800 MB and wont free up the memory afterwards. Second simulation pushes up memory usage to 1.4 GB.&lt;/P&gt;&lt;P&gt;I'm generating UserSeries for about 400K Bars.&lt;/P&gt;&lt;P&gt;Is there a way to set free the used memory after simulation?&lt;/P&gt;&lt;P&gt;If I'm not interested in displaying UserSeries after the simulation, is it possible to use MaxLookBack for UserSeries as well?&lt;/P&gt;&lt;P&gt;Increasing RAM from 4GB to 8 GB would allow 4 simulation runs but wont solve my problem ;)&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;GT</description><pubDate>Thu, 04 Feb 2010 16:13:33 GMT</pubDate><dc:creator>gtomez</dc:creator></item></channel></rss>
