Hi, Shrewd!        Login  
Shrewd'm.com 
A merry & shrewd investing community
Best Of MI | Best Of | Favourites & Replies | All Boards | Post of the Week!
Search MI
Shrewd'm.com Merry shrewd investors
Best Of MI | Best Of | Favourites & Replies | All Boards | Post of the Week!
Search MI


Investment Strategies / Mechanical Investing
Unthreaded | Threaded | Whole Thread (33) |
Author: JohnIII   😊 😞
Number: of 3950 
Subject: Re: Timing: recent highs
Date: 04/24/2025 10:22 PM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 9
Given data has continued to fill in since then, do you think 99, 114, or some other number is best? I would guess that any number roughly in this range is within the error bars, but thought I'd ask.

I wrote some python code about 6 years back to explore questions like this. You can find it here:
https://github.com/jcmiii/Dying-Bullish-Euphoria

I've also got some spreadsheets you can download there.

There are actually two parameters: M (looking for a new M-day high)and N (in the last N days). This program found that SPY returns are maximized for M in the range M=138-142, and N=214. If the algorithm is restricted to M=N my recollection is that 114 was best, but just by a hair. But in 6 years the optimal parameter values could have changed. And of course they change significantly when considering a different index (e.g. IWM, NAS).

John
Post New | Post Reply | Report Post | Recommend It!
Print the post
Unthreaded | Threaded | Whole Thread (33) |


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