What Equity Curve R² Tells You: Doubting Too-Smooth EAs
Contents
Bottom line: R² measures smoothness, not safety
How close an equity curve is to a straight line can be expressed as a number using the coefficient of determination, R². The closer R² is to 1, the closer the curve is to a rising straight line.
That said, we don't treat a high R² as proof of a good EA on its own. If anything, a curve that is too close to a straight line is a reason to look harder. This article explains how R² works, the checks to run when you're suspicious, and what R² can't tell you.
📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
Right after you sign up, you get a download link for a subscriber-only pack of our 13 MT5 indicators: compiled files (.ex5), source code and a setup guide. Then 8 emails on algo-trading essentials, reading backtests correctly and choosing a broker (one a day for the first 5 days, then 7, 14 and 30 days after signing up). You also get notified before each price rise of the versions sold on the MQL5 Market (launch pricing that steps up as copies sell). Our EAs are free on this site with a live account at a partner broker.
* Privacy strictly protected. You can unsubscribe at any time.
How R² works
What is being calculated
Put time (or trade sequence) on the horizontal axis and cumulative profit and loss on the vertical axis, then fit a straight line by least squares. R² is the share of the curve's ups and downs that this line explains.
- R² close to 1: the curve sits almost on a straight line
- Low R²: the curve has deep dips along the way, or long flat stretches
What to do before calculating
An EA whose lot size grows with compounding produces a curve that bends upward like an exponential. Fitting a straight line to it directly gives an unfairly low R². Use fixed-lot results, or take the logarithm of the balance before calculating.
Another important point is whether you measure the balance curve or the equity curve. The balance curve only records closed trades. An EA that holds on to floating losses can look smooth if you only look at the balance.
How to doubt a "too smooth" EA
Compare balance DD with equity DD
The clearest example of this gap among our EAs is GOLD KING v6. In its backtest, balance DD was 7.45%, while equity DD was 91.3%. Even though the balance curve looks smooth, the floating loss before closing grew to a level that nearly used up the account. The 83.1% win rate and the maximum of 44 consecutive wins also contribute to that smooth look.
We publish this EA as an aggressive type, for people who use it on that understanding. We mention it here honestly as a typical case where "the curve looks clean, so it must be safe" is the wrong reading.
Checklist
| Item to check | Suspicious state | Reason |
|---|---|---|
| Balance DD vs equity DD | Equity DD is many times the balance DD | Floating losses are carried over without closing |
| Win rate and average P&L | High win rate but average loss far larger than average profit | A structure where a few big losses break the line |
| Number of losing months | Almost no losing months over a long period | Possible grid/martingale or overfitting |
| Lot size trend | Lots increase after a loss | Doubling up to smooth the curve |
| Test data | Not real ticks, or a short period | Lenient fills may be making it look straight |
| Out-of-sample results | The slope changes outside the optimization period | A sign of curve fitting |
The same goes when other metrics look "too good"
This isn't limited to R². When any metric looks too good, question the assumptions behind the calculation first. For example, GOLD TRIPWIRE's backtest shows a Sharpe ratio of 94.75, but we don't treat this as a measure of how strong the EA is. For EAs with short holding times, the value can come out extreme depending on how the calculation is segmented. Read it together with other metrics such as PF and maximum consecutive losses. You can compare each EA's figures in the measured ranking of all EAs.
Limits of R² and cautions
- It says nothing about slope: Even an almost flat curve can show a high R² if the variation is small. You need to look at the size of the profit separately from R².
- A low R² isn't necessarily bad: Trend-following EAs tend to produce a staircase-shaped curve that alternates between flat stretches and sharp rises. The DONCHIAN ENGINE backtest has a 34.5% win rate and a maximum of 11 consecutive losses, so it never forms a smooth straight line. Even so, that is the expected shape for this type of EA.
- Small samples are unreliable: With few trades or a short period, R² can come out high just because the points happened to line up neatly.
- Past shape doesn't guarantee the future: R² is only a number describing the shape of a past curve.
At this point we do not publish R² for each EA as an official metric. Given the limits above, we think presenting it as a standalone number would be misleading.
A note on forward testing as well. The figures are as of October 24. GOLD KING's forward test on an Exness demo account showed a profit rate of 17.13%, DD of 4.6%, PF of 3.75, and 136 trades. This is not a live-account result. The period is also far too short to say anything about the linearity of the curve.
Summary
- R² is a metric that quantifies how smooth a curve is. It does not measure safety or the size of profit
- For compounded results, convert to fixed lot or logarithm before calculating
- Measuring only the balance curve hides floating losses. Always check the gap against equity DD
- For a curve that is too close to a straight line, suspect grid trading, doubling up, overfitting, and data quality
- For trend-following EAs, a lower R² can be exactly what the design predicts
- More on reading metrics is collected in EA & MT5 Know-How
Related
2026-10-10
Is the Sharpe Ratio Reliable for Low-Frequency EAs?
2026-10-24
Always Check the Worst Month in Your Backtest
2026-10-23
Win Rate vs Risk-Reward: Reading the PF Formula
2026-10-22
Same Trade Count, Different Reliability: Independence
📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
Right after you sign up, you get a download link for a subscriber-only pack of our 13 MT5 indicators: compiled files (.ex5), source code and a setup guide. Then 8 emails on algo-trading essentials, reading backtests correctly and choosing a broker (one a day for the first 5 days, then 7, 14 and 30 days after signing up). You also get notified before each price rise of the versions sold on the MQL5 Market (launch pricing that steps up as copies sell). Our EAs are free on this site with a live account at a partner broker.
* Privacy strictly protected. You can unsubscribe at any time.
Have a question about EAs or FX?
You can post it on the Nattzy trading forum (free sign-up). Questions beyond this article are welcome too — EA settings, choosing a broker and more.
Ask on Nattzy ↗