strateva.

Articles

What does TEMA Vol adjusted actually adjust?

The notebook's name suggests that the strategy scales its position down when Tesla moves more. Reviewing the code revealed fixed positions of 100% long or short. Volatility is calculated as a performance metric. The direction comes from the slope of the 20-session TEMA. Original notebook

What the notebook returns

On February 25, 2020, Tesla fell 4.06% from close to close. The notebook credits the new short position with a positive return from that fall, although the trade log puts the execution at the February 26 open. This timing mismatch appears in all 206 entries and reversals. Reproducing the code in Docker gave a 1,153.87% increase in portfolio value.

What changes when positions take effect at the open

We reconstructed the portfolio in Strateva. The previous position remained in effect until the recorded open. The new one took effect from that point. We reconciled costs to orders and charged stock borrow once per short session.

From January 2020 to December 2024, the reconstructed portfolio returned 97.26% net versus 57.42% for URTH over the same sessions. Its maximum drawdown was 83.20%. The information ratio interval included zero.

The same code, with each return in its own sessionFinal value of 1 invested between 2020 and 2024, on a log scale. The notebook credits each new position with the return of the day it is decided, although the order is executed at the next open. Holding the previous position until that open takes the result from 1,153.87% to 97.26%.
×1×2×5×10×20NotebookRebuildURTH1,153.87%97.26%57.42%
  • What the notebook returns
  • Rebuild with execution at the open
  • Reference: URTH

Source: technical report of the test, linked below, and figures from the article itself. Prices exclude dividends.

The gap between the two figures does not come from the signal or from the prices, which are the same. It comes from which return is credited to each position. Crediting a position with the move of the day it is decided amounts to collecting something that happened before you held it, and in a stock as volatile as Tesla that day is worth a lot.

What the engine measured

The difference from the reference cannot be told apart from zeroWhat the Strateva engine measured on 1,258 daily returns. The bars are what was observed; the vertical stroke on the strategy is the range the central 90% fell in when those same returns were resampled in blocks of 11 sessions (1,000 times). The information ratio measures the lead over URTH per unit of risk: its 95% interval runs from −0.58 to 1.30.

Cumulative return

−100%0%100%200%300%400%500%StrategyURTH97.3%57.4%up to 2,414.4%

Worst drawdown from a peak

0%−20%−40%−60%−80%−100%StrategyURTH−83.2%−34.0%

Ratios, with their 95% interval

−1012SharpeInformation ratio0.510.35
  • Strategy
  • Reference: URTH
  • Resampling range or 95% interval

Source: technical report of the test, linked below. Prices exclude dividends; the resampling uses the same historical series.

The technical report adds the margin of error to these figures. The Sharpe of the strategy was 0.51, with a 95% interval of −0.45 to 1.49. Against URTH, the average annual difference was 25.36%, with a t-statistic of 0.73: it cannot be told apart from zero.

When the same returns were resampled in blocks, the cumulative return fell between −84.57% and 2,414.37% in the central 90%, and the worst drawdown between 58.29% and 95.19%. What that resampling measures is explained in Block bootstrap and permutation Monte Carlo.

The rebuild ended ahead of URTH, but by taking far more risk: an annual volatility of 67.76% against 20.46%, and a maximum drawdown of 83.20% against 34.01%. The Sharpe came out at 0.51, against 0.45 for the reference. With that much noise, resampling the same returns gives anything from losing 84.57% to multiplying capital by 25.

Test reports

The first page of the executive summary
First page of the executive summary of the test. Header "Draft · unsigned evidence". Conclusion: the difference from the reference cannot be told apart from zero with this data; 95% information ratio interval, −0.58 to 1.30. Cumulative return of 97.26% against 57.42% for URTH. Sharpe of 0.51 and worst drawdown of −83.20%.

How to read this document is explained in the guide to the technical report.

How to read both documents is in the guide to the technical report.

Both PDFs document the fixed-size portfolio with positions aligned to their opening executions.

See Strateva's services if you want to evaluate a rule with your own data.

All articlesAll the engine reports

CONTACT

Tell me about your strategy. I will say whether it fits within 48 business hours.

Tell me what you want checked, the asset, the frequency and what you have: rules, a report or code. I will tell you whether it fits and which plan it would be.

What to include in your email

  • Market, instruments and frequency (Spot only).
  • What you want checked, and the period.
  • Language and approximate code size, without pasting the code.
  • What data you have, and whether you need an NDA.

Do not send private code, keys or passwords.

stan@strateva.ai

Reply within 48 h (business days). No private material in the first message. No obligation to commission work.

Who replies

I am Filip Stanciu. I have an MSc in Quantitative Finance from the University of Alcalá, a degree in Finance from the Complutense University of Madrid, and a MiFID II certificate. I have worked in quantitative research for an asset manager, validating stock and ETF strategies. I read and reply to every email myself.

I am not a certification body and I am not a large team. I am one person, and I say so.

Nicolae Filip Stanciu