Hello,
while running the following code in Exploration I am not getting any values for tickerMom on older dates. Perpahs one or more stock was not traded in that time. But why there is no value for any of the stocks (majority of the tickers where traded back in 2010).
wlnum = GetOption( "FilterIncludeWatchlist" );
List = CategoryGetSymbols( categoryWatchlist, wlnum ) ;
if( Status( "stocknum" ) == 0 )
{
StaticVarRemove( "ticker*" );
// ticker ranking
for( n = 0; ( sym = StrExtract( list, n ) ) != ""; n++ )
{
SetForeign( sym );
//mom = ROC( C, 20 );
mom = C;
RestorePriceArrays();
StaticVarSet( "mom" + sym, mom );
}
StaticVarGenerateRanks( "tickerrank", "mom", 0 , 1224 );
}
sym = Name();
tickerMom = StaticVarGet( "mom" + sym );
Filter = 1;
AddColumn( C, "Close", 1.2 );
AddColumn( tickerMom, "StaticValue", 1.2);
If I run this code in Exploration for example on Nasdaq 100 watchlist from 1.1.2010 - 1.1.2013 I get no value in StaticValue column. If I run it on later dates, I get the values...