Hi, Shrewd!        Login  
Shrewd'm.com 
A merry & shrewd investing community
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd
Search
Shrewd'm.com Merry shrewd investors
Search
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd


The week's question
In December 2024, in the thread "Re: BRK: Why Not XOM?", BreckHutHigh asked the members: "What about the long road trips with kids?" This week it is put to everyone again. The button below opens the small thread re-asking it - read what others have said so far, then give your own answer as an ordinary reply.
Answer this questionContinue to Shrewd'mThis note won't appear again
Investment Strategies / Mechanical Investing
Unthreaded | Threaded | Whole Thread (40) |
Author: lohill 🐝🐝  😊 😞
Number: of 6131 
Subject: Re: My new Program
Date: 01/24/26 2:09 PM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 1
lizgdal,

1. For each stock, calculate the ratio of the current price to the highest price over the previous 251 market days.


I hate to be so dense but this whole calculation is not about a bunch of stocks. I am trying to do a calculation based on a single stock (SPY) on a single date. I can calculate PriceToHighPriceRatio for SPY on a given date and I can decide whether to give B a value of 0 or 1 but that gives me one B value. There is nothing for me to sum up unless I take the previous date and calculate a second B value based on that date and the high price on the previous 251 days. Then do that again for all 251 previous days thus ending up with 251 B values to sum up. Is that what Robbie is doing?

Larry
Post New | Post Reply | Report Post | Recommend It!
Print the post
Members reply directly to lohill here — and replies get answered. Reading is free; so is joining the conversation. Join Shrewd'm »
This community has written 6,115 posts about Mechanical Investing. The article-length ones it recommended most:
Dividend investing · 52 recs · 2025
Non-Mag7 screen · 34 recs · 2025
OT - Div yields and returns · 32 recs · 2024
Using AI to generate backtesting programs · 30 recs · 2025
Rankings for 19Dec2022 · 29 recs · 2022
Unthreaded | Threaded | Whole Thread (40) |


Announcements
Mechanical Investing FAQ
Contact Shrewd'm
Contact the developer of these message boards.

Best Of MI | Best Of | Favourites & Replies | All Boards | Followed Shrewds | Open Questions | Moving a community