|
This is doing a RelStrength of each stock in the WatchList to the currently selected ticker. It is then doing the Guppy MMA against the resulting RelStrength. What it does next is not shown in the code posted. (Note: It is skipping comparing the current ticker to itself if that ticker is also in Watchlist, if(sym != Name()), because you'd just get all 1's.) So, this code is dependent on the selected ticker for consistent results, depending on what the follow-on code does. From HELP:
-- Terry -----Original Message-----
I would really appreciate it if someone could tell me exactly what the following code snippit is doing. This is part of someone's custom code to rank, using positionscore, the relative strength of symbols relative to Guppy MMAs.
Here is the code portion I just cannot understand...can someone explain in words.
// walk through the watchlist grabbing all the symbols to calculate RS vs ourself. List = CategoryGetSymbols(categoryWatchlist, WatchlistNum); for(i=0; (sym = StrExtract(List, i)) != "";i++) { if(sym != Name()) { f = RelStrength(sym); st3 = EMA(f, 3); st5 = EMA(f, 5); st8 = EMA(f, 8); st12 = EMA(f, 12); st15 = EMA(f, 15); Lt30 = EMA(f, 30); Lt35 = EMA(f, 35); Lt40 = EMA(f, 40); Lt45 = EMA(f, 45); Lt50 = EMA(f, 50); Lt60 = EMA(f, 60); So, it walks thru a Watchlist, and sym gets set to the symbol name. f is obviously the RelStength compared to the symbol, but what is compared to the symbol...???? itself???? st3 then becomes the 3dema of this rel strength but what are the two components of the Relative Strength comparison? I will post the entire code on a followup message, once I can understand just what is happening. Thanks for any expert explanation of this.
Ken
Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [amibroker] Interpreting A Code Segment Terry
