| glgene 618 posts
 msg #96250
 - Ignore glgene
 | 9/13/2010 11:31:11 PM 
 Stocktrader.....You said, "Not much to explain. Just trying to interpret what you are looking for. Everyone seems to be drawing a blank as to what you exactly need.   Just applying a constant named nadir to the comparative relative strength screening within a range of 1."
 ----------------------
 
 I'm trying to get a flat-line constant that would produce a string of 1.0s over a 6-day period.
 
 For example, using these two symbols as the Comparative Indicator, produces these results:
 
 ..............  Today .....1  day ago.... 2 days ........3 days ............4 days ........... 5 days
 
 BIL .......... 1.02 ..........1.01 ........... .98 .............. .94 ................. .95 .................. .94
 
 SHV ........ 1.02 ......... 1.01 ........... .98 .............. .93 ................. .95 .................. .94
 
 I want
 this ...........1.00 ......... 1.00 ...........1.00 ............1.00 .............. 1.00 ..................1.00
 
 This way, I'm setting the benchmark at 0, so to say.
 
 A couple days ago a financial planner was bragging her firm beat the S&P in 2008.  I said, "You're happy you lost your clients money?"   She said S&P 500 lost 38% in 2008, and her money management firm beat that by 13%.  In other words, her clients lost only 25%.   I said that's not worth bragging about.   I said I didn't want to use the S&P as the benchmark.  She asked what I preferred.  I replied, "0%.  Beat that."  Using 0%, her performance in 2008 would have been -25%.  Not 13% better than the S&P.
 
 Using the above info, I want to establish a SF script of selected ETFs (as shown in my original post) and always compare day-to-day performance to a constant 1.0.
 
 I didn't understand your suggested script with a range for that indicator.  I understand the set command.  If SF would allow a scripter to enter a 0 for the Comparative Indicator, that would solve my problem (I think).   But since SF doesn't allow 0, what would be the next best thing that would produce, ideally, a string of 1.0s over a 6-day period.
 
 If I'm off base, please let me know.  As I said before, I'm only at the "college level SF 101."  Need some help on this one.  Maybe I'm on to something, or maybe I'm way off base.    ?????
 
 Thanks!
 
 Zack
 
 
 
 
 
 |