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 (16) |
Author: TPOTO-2023   😊 😞
Number: of 6131 
Subject: Re: New Highs and New Lows
Date: 04/21/23 11:07 AM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 2
Philly Tide-

Yes, those formulas look fine- thank you.

I added a second line right after your formula that varies
the lookback number and the summation to be a variable
(using K1 and M1 below)
instead of a fixed number.

That way you can make a 2x2 table in Excel
(lookback values as a row and summation values a column)
and see the results of changing the variables.

Or use the solver add-in of Excel.
(If you have never used solver, take a few minutes to check it out.

Column E
=IF(B14=MAX(B14:B20),1,0) - (Philly Tide's)
=IF(B14=MAX(b14:OFFSET(B14,$K$1,0,1,1)),1,0) (using a variable)

Column F
=IF(C14=MIN(C14:C20),1,0)
=IF(C14=MAX(c14:OFFSET(C14,$K$1,0,1,1)),1,0)

Column G
=SUM(E14:E20)
=SUM(E14:OFFSET(E14,$M$1,0,1,1))

Column H
=SUM(F14:F20)
=SUM(F14:OFFSET(F14,$M$1,0,1,1))

NOTE:

(this is assuming the data is sorted with the latest (newest) first
and the oldest last and in this case that the data starts (say, April 2023).
in the 14th row)
Post New | Post Reply | Report Post | Recommend It!
Print the post
Members reply directly to TPOTO-2023 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 (16) |


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