a little help, please ....
I would like to create a loop with the Quotes Plus Industry indices.
So far my loop processes symbols but not correctly, hers what I got:
Energy = Foreign("~S:Energy","C");
EnergyRoc = ROC(Energy,10);
energyIndsList = CategoryGetSymbols(
categoryWatchlist , 32);
// energy inds
for( i = 0; ( sym = StrExtract(EnergyIndsList, i ) ) != ""; i++ )
{
if (StrFind(sym, "!ID"))
{
SetForeign(sym);
IIf(ROC(C,10) > EnergyRoc, CategoryAddSymbol( "",
categoryWatchlist, 43 ),0);
}
}
RestorePriceArrays();
/////////////////////////////////////////////////
What I want to do is compare the ROC of the sector to its member
Industries ROC. If it exceeds the Sector ROC it then will go to a
specific watchlist.
Also, I wonder if the entire list of industries can be compared to the
appropriate Sector and placed in specific watchlist.
Any help appreciated