glgene 625 posts msg #162212 - Ignore glgene |
11/15/2026 7:18:17 PM
I'm trying to develop a script to compute the "Risk/Reward" for the 11 Sector ETFs (from State Street).
I couldn't figure it out myself, so I did a Google Gemini search, which produced the following script ... but it doesn't work. It merely produces this message: "No Stocks Matched."
Does this script need a major overhaul ... or just a tune-up?
THANK YOU ... in advance ... if you can get my car running. -- Gene in FL
|
xarlor 649 posts msg #162213 - Ignore xarlor |
11/16/2026 8:05:59 AM
Here is the prompt in Gemini to correct this:
This StockFetcher filter does not work because there is more than a single operation per line. Fix all the lines with more than one operation by providing multiple set statements per line:Pasted filter
And here is what it returned:
|
glgene 625 posts msg #162214 - Ignore glgene |
11/16/2026 10:29:21 AM
Thank you, Xalor ... Well done! Your 'fix' makes SENSE. The 11 Sectors = a Q4/2026 project of mine. I've been in XLP, XLV, and XLU the past several days ... while I somewhat 'reduced' my Tech stocks (in XLK and QQQ), accordingly. Diversification should help (singles/doubles ... instead of trying for triples/home runs). Babe Ruth was well known for his home runs, but he also struck out a lot.
Now that you repaired my Risk/Reward script, I can further my journey. My car has new spark plugs.
-- Gene in FL
|