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
| Investment management software | Real estate investment software | Investment property software |
| Software support | Real estate investment analysis software |
YAHOO! GROUPS LINKS
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
