How is close(250) or any value for days calculated?

I made a screen public called example, it just shows Agilent's close 250 days ago as of May 11, 2023. The problem is that if I look back to May 2022, I can't find the value that close(250) outputs.

It outputs 115.3641, with 4 digits, suggesting it is calculated somehow... What is the calculation?

We adjust prices for splits and dividends.

Historically (as in a backtest) future splits & dividends are reversed out. In other words historically it does what you'd expect it to do, which is use the price at the point in time.

so close(0) / close(250) is actually a total return, not a price return?

Correct

The return excluding dividends is

CloseExDiv(0)/CloseExDiv(250) or Close(0)/CloseExDiv(250)

Close(0) and CloseExDiv(0) are always the same since there's no dividends to unwind at offset 0 (the present for a particular observation date).

PS. if you run a screen with CloseExDiv(0)!=close(0) you will get hits in the past due to miniscule round off errors in the internal number representation.

1 Like

And what about all the per share and shares outstanding values, did you adjust those to make sense / reconcile with close(0)? EPS, analyst estimate eps, etc.

Doesn't look like CurFYEPSStdDev is done correctly, if you divide CurFYEPSStdDev by CurFYEPSMean it will be meaningless if the company ever did splits.

Phil,

I believe you found a problem specifically for StdDev of EPS . I have to double check if we are getting an absolute StdDev, or a relative StdDev .

See PANW below which split on 12/16/2024. It's the output of a screen with as-of 12/1/2024 and 12/31/2024.

The prices highlighted in blue are fully adjusted for splits. That's just how that section works.

The other columns are point in time. So CurFYEPSMean and Price change by a factor of 2 which is correct.

The column CurFYEPSStdDev doesn't change, which is correct if it's a relative StdDev. If that's the case we should have at least multiplied it by 100.

I'll let you know. Thanks

Yeah, looks like we have a problem. CurFYEPSStdDev looks like an absolute value.

Historically this would be completely wrong for stocks that have split.

Yes i checked manually the units are $ of EPS, not %.

i've checked everything else looks fine. What a nightmare though, adjusting every per share number for the splits.

Also I'd recommend using ticker TNXP when dealing with this stuff - its had total reverse splits over hte years of something crazy like 1:10000000000 so it makes spotting mistakes very easy.

1 Like

It's an easy fix. We just missed it.

1 Like

Marco, all the StdDev measures are absolute. RelStdDev measures are relative. I have written all my formulas to take this into account. For example, I use CurFYEPSStdDev / Max (0.02, Abs (CurFYEPSMean)), lower better, as a forecast dispersion measure. I hope you won't change one StdDev measure to be relative. Instead you could introduce CurFYEPSRelStdDev.

I think CurFYEPSStdDev compared to CurFYEPSMean is spurious any way you combine it. Its likely picking up on companies that will have reverse splits in the future (usually due to bad share price performance), so it will backtest well but it won't work live.

Its like comparing the actual past price like close(0) reflects, to the split adjusted past price - that would have look ahead bias, because you could figure out which stocks have lots of splits in the future (so share price likely to go up in the future) vs. lots of reverse splits in the future (so share price likely to do down in the future).

A good example is TNXP. If you look at the historical split adjusted prices, they're in the billions of dollars per share range back years ago. Knowing ony that, I can tell you with decent confidence the share price performance since then was bad because reverse splits don't happen when a company is doing well.

1 Like

How soon will this be fixed? I have some big players banking on a fund which these formulas are the centerpiece.

Should have a fix for historical StdDev of EPS and Price Targets tomorrow, after market close.

1 Like

Was there an error with PriceTargetMean? I checked and it looked fine to me.

No. The problem is with the StdDev of split-sensitive estimates. There are only two: EPS and PT. These StdDEv are completely wrong in a backtest for stocks that have a split in the future of the observation date.