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
| Metric | Base TEMA | Volatility-sized TEMA |
|---|---|---|
| Cumulative net return | −72.45% | −32.43% |
| Annualized volatility | 51.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
Annual volatility
Sharpe
- 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
Cumulative return
Worst drawdown from a peak
Ratios, with their 95% interval
- 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

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.