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);
*/

Reply via email to