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

[amibroker] Loops are not my specialty



PureBytes Links

Trading Reference Links

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


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

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

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

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

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
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:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto: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/