strateva.

Articles

Can Sharpe be positive when a portfolio loses money?

In this Docker replay, an Apple RSI strategy ended the 2020–2022 period with a 0.36% loss and a Sharpe of +0.14. Holding Apple over the same dates returned +76.63%. The notebook buys when its 14-session RSI drops below 30 and moves to cash when it rises above 70. Each change takes effect at the following close. Original notebook

Two different calculations

Start with $100. On the first day you gain 20%, and on the second day you lose 19%. The average of the two returns is +0.5% per day. You finish with $97.20, because the second day's loss applies to the $120 you had after day one.

The engine's Sharpe starts with the average daily return, which was +0.0167% in this case, and relates it to how much those returns vary. The risk-free rate is 0%. Cumulative return applies each day's change to the previous day's balance.

What the replay covers

The notebook sets its cutoff in January 2020. Both PDFs cover the 755 daily returns after that cutoff, using prices adjusted for dividends and splits. The calculation keeps the notebook's zero-cost assumption. The notebook divides compounded annual return by volatility and labels that figure Sharpe. It gives −0.004 here.

What the engine measured

The difference from the reference cannot be told apart from zeroWhat the Strateva engine measured on 755 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 9 sessions (1,000 times). The information ratio measures the lead over AAPL per unit of risk: its 95% interval runs from −2.11 to 0.16.

Cumulative return

−50%0%50%100%StrategyAAPL−0.4%76.6%

Worst drawdown from a peak

0%−10%−20%−30%−40%−50%−60%StrategyAAPL−29.2%−31.4%

Ratios, with their 95% interval

−3−2−1012SharpeInformation ratio0.14−0.97
  • Strategy
  • Reference: AAPL
  • 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.14, with a 95% interval of −0.68 to 1.05. Against AAPL, the average annual difference was −21.59%, with a t-statistic of −1.64: it cannot be told apart from zero.

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

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, −2.11 to 0.16. Cumulative return of −0.36% against 76.63% for AAPL. Sharpe of 0.14 and worst drawdown of −29.19%.

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 check the figures from your own strategy.

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