[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Why does this simple exploration crash when run or more than 10 tickers?


  • Date: Sun, 21 Feb 2010 11:40:34 -0000
  • From: "ramoncummins" <ramoncummins@xxxxxxxxxxx>
  • Subject: [amibroker] Why does this simple exploration crash when run or more than 10 tickers?

PureBytes Links

Trading Reference Links

Hi everyone,

I am trying to extract RSI(2) data for a group of stocks since 1998, using an exploration. The aim is to end up with dates down the side, and all the tickers across the top, with respective RSI(2) values in the rows. (This is to be dumped into excel later).

The code below works fine (and indeed very quickly) when you limit the number of stocks to the first ten or so, but when I run the exploration over 20 stocks, it freezes and amibroker crashes.

In order to replicate, just take the code below and run the exploration on SPY ONLY between 1998 and Today. It should work fine. Then uncomment the second "batch" of tickers and run it - does this crash your machine? Any ideas as to why?

I have searched the posts for answers but nothing has helped so far. I presume its a memory problem of some sort. 

Note that I have the following settings in preferences, Data tab:

In-memory cache: 20 (I have tried 11 as well, per a post from Tomasz)
Max Megabytes: 800

Any help greatly appreciated.

Ramon

//--------------------------------------------

Filter = 1;

function indicator( Ticker )
{
    SetForeign( Ticker );
    myRsi = RSI( 2 );
    RestorePriceArrays();
    return myRSI;

}

AddColumn( indicator( "INTU" ), "INTU", 1.2, 1 );
AddColumn( indicator( "VMED" ), "VMED", 1.2, 1 );
AddColumn( indicator( "JBHT" ), "JBHT", 1.2, 1 );
AddColumn( indicator( "ADSK" ), "ADSK", 1.2, 1 );
AddColumn( indicator( "LRCX" ), "LRCX", 1.2, 1 );
AddColumn( indicator( "SIAL" ), "SIAL", 1.2, 1 );
AddColumn( indicator( "BMC" ), "BMC", 1.2, 1 );
AddColumn( indicator( "MAT" ), "MAT", 1.2, 1 );
AddColumn( indicator( "MYL" ), "MYL", 1.2, 1 );
AddColumn( indicator( "QGEN" ), "QGEN", 1.2, 1 );

// Uncomment below - does it crash your machine?
/*
AddColumn( indicator("VOD"), "VOD", 1.2, 1);
AddColumn( indicator("PCLN"), "PCLN", 1.2, 1);
AddColumn( indicator("CERN"), "CERN", 1.2, 1);
AddColumn( indicator("NWSA"), "NWSA", 1.2, 1);
AddColumn( indicator("FSLR"), "FSLR", 1.2, 1);
AddColumn( indicator("ILMN"), "ILMN", 1.2, 1);
AddColumn( indicator("ORLY"), "ORLY", 1.2, 1);
AddColumn( indicator("WCRX"), "WCRX", 1.2, 1);
AddColumn( indicator("ADP"), "ADP", 1.2, 1);
*/



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/