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 (14) |
Author: RAMc   😊 😞
Number: of 6131 
Subject: Re: Low Vol Screen Using NAS100
Date: 11/11/25 8:02 PM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 5
vol:[<lag_days>|<param_ref_1>],[<num_of_periods>|<param_ref_2>],[<period_length>|<param_ref_3>]

As shown, the function vol takes three arguments, each of which can be either a number or a parameter reference. The value of lag_days must be a non-negative integer, the values of num_of_periods and period_length must be positive integers, and

lag_days + num_of_periods * period_length

must not exceed the retrospective limit. For each investment, the function vol calculates the annualized standard deviation of the natural logarithms of total returns (obtained by dividing the investment's appropriate closing g-prices) over the num_of_periods number of disjoint consecutive periods consisting of period_length number of market days, with the most recent period ending lag_days number of market days prior to the current trading date; the result is assigned to the calling field.

For example, vol:3,52,5 calculates each investment's volatility using its last 52 disjointly measured 5-day total returns, with the most recent 5-day total return measured through the close of the market date 3 days prior to the close of the current trading date.

Note that if lag_days is zero, then volatility is measured through the close of the current trading date, which corresponds to the same g-prices at which trades take place.

By default, a meaningful volatility measurement is always calculated for every investment on every market date, regardless of how recently the stock associated with an investment may have begun trading. This is possible because GTR1 Linearization defines each investment's daily g-prices indefinitely into the past using the history of parent companies and, when the latter does not exist, interpolation. However, to filter out investments with inadequate actual pricing history for a conventional volatility computation, use the field function dsio or dspo.
Post New | Post Reply | Report Post | Recommend It!
Print the post
Members reply directly to RAMc 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 (14) |


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