strateva.

Articles

What changes when TEMA sizes positions by volatility?

The base TEMA strategy on Tesla picks the side of the trade from the slope of a 20-session triple exponential moving average. For this test I kept the signal and changed the position size. Base TEMA notebook

Same signal, two position sizes

The base strategy takes a 100% position in the direction of the signal. The adjusted version estimates annualized volatility from the last 20 daily close-to-close returns and divides a 20% target by that estimate. If Tesla's estimated volatility is 40%, the position is 50% of the portfolio. Exposure is capped at 100% and takes effect at the next open.

I ran both variants in Docker across the same 1,509 sessions, from January 2013 to December 2018. Both use a 0.15% cost per unit of turnover and a 0% risk-free rate. Turnover measures each change in target weight, including changes in size while the direction stays the same.

A smaller loss and a similar Sharpe

MetricBase TEMAVolatility-sized TEMA
Cumulative net return−72.45%−32.43%
Annualized volatility51.84%23.64%
Maximum drawdown−90.19%−56.40%
Sharpe−0.155−0.159

Average absolute exposure was 50.26%. Weights changed on 1,488 sessions versus 255 for the base strategy, but total turnover fell from 509 to 283 units because the changes were smaller. The 95% information ratio interval included zero. The 20% target uses an estimate based on closing prices. The portfolio's realized volatility uses its open-to-open returns. The model charges commissions and slippage on changes in target weight. Cash earns 0% and stock-borrow costs are unmodeled.

Why the Sharpe does not change

Half the risk, the same SharpeThe same signal with two position sizes. Sizing by volatility takes annual volatility from 51.84% to 23.64%. The Sharpe goes from −0.155 to −0.159: cutting the bet makes it smaller, not better.

Annual volatility

0%20%40%60%Base TEMAAdjusted size51.84%23.64%

Sharpe

−0.3−0.2−0.10.00.1Base TEMAAdjusted size−0.155−0.159
  • Base TEMA
  • Adjusted size

Source: technical report of the comparison, linked below. Prices exclude dividends.

Cutting the position size cuts both what is won or lost and how much the portfolio swings. Since the Sharpe is the ratio of the two, it barely moves. Volatility fell to less than half and the compound annual loss went from 19.37% to 6.34%, but the relation between them is the same.

It is a useful distinction for any strategy. Sizing by volatility decides how much you risk; it does not decide whether the signal works. A signal with no edge still has none with smaller positions: it just loses more slowly.

Costs go the same way. With 283 units of turnover instead of 509, the accumulated cost falls from about 76 points to about 42.

What the engine measured

The difference from the reference cannot be told apart from zeroWhat the Strateva engine measured on 1,509 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 TEMA-BASE per unit of risk: its 95% interval runs from −0.68 to 0.99.

Cumulative return

−100%−50%0%50%100%StrategyTEMA-BASE−32.4%−72.5%

Worst drawdown from a peak

0%−20%−40%−60%−80%−100%StrategyTEMA-BASE−56.4%−90.2%

Ratios, with their 95% interval

−101SharpeInformation ratio−0.160.14
  • Strategy
  • Reference: TEMA-BASE
  • 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.16, with a 95% interval of −0.95 to 0.72. Against the base TEMA, the average annual difference was 4.31%, with a t-statistic of 0.34: it cannot be told apart from zero.

When the same returns were resampled in blocks, the cumulative return fell between −74.70% and 81.71% in the central 90%, and the worst drawdown between 33.56% and 80.81%. What that resampling measures is explained in Block bootstrap and permutation Monte Carlo.

In this report the reference is not a fund but the base TEMA itself: what is tested is one variant against the other.

Comparison 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.68 to 0.99. Cumulative return of −32.43% against −72.45% for TEMA-BASE. Sharpe of −0.16 and worst drawdown of −56.40%.

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.

See Strateva's services if you want to test a variation 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