Skip to content
Menu

New rule on XMF-A.TO

Buy when RSI (14) crosses above 30. Sell when RSI (14) crosses above 70.

Buy when

Open a position when

Sell when

Close it when

Assumptions 10,000 to start · 0.2% cost per trade · fills at the next open
This rule
+53.9%
10,000 became 15,386
Buy and hold XMF-A.TO
+205.5%
10,000 became 30,551
Worst fall
−15.3%
−1,526 · back in 49 days
Trades
2
2 won · 0 lost · 100% win rate
Profit factor
—
gains ÷ losses
In the market
9%
of 501 days
  • Only 2 trades. A handful of trades says little about a rule: a few lucky or unlucky ones decide the result. Thirty or more is a common minimum; a longer period gives more.
  • Buying and holding did better. Over the same dates, simply holding XMF-A.TO returned 152 percentage points more than this rule after costs.
  • Rarely in the market. The rule held a position on 9% of the bars. The return comes from very few days.
  • It stopped working in the last part. The rule beat buying and holding over the first 70% of the period and fell behind in the last 30%, the part kept aside as a check.
  • A signal on the last bar. The last bar gave a signal to open a long position. It would fill at the next bar’s open, so it is not in this result. If that bar is today’s and the session is still open, the signal can still change.

Account value

10,000 following this rule, beside the same cash bought and held, Dec 2, 2024 to Nov 30, 2026

10k20k30k40k−50.0%−25.0%0%Fall from the peakDec 24Apr 25Sep 25Feb 26Jul 26Nov 26

Transactions chart

Buy and cover markers below the bar, sell and short markers above

1.002.0010.0k15.0kAccount valueDec 24Apr 25Sep 25Feb 26Jul 26Nov 26

Trades

2 round trips, oldest first. Each is an entry and its exit, after costs.

Backtest trades
SideEntryExitSharesHeldProfitReturnWorst / best
LongAug 1, 2025 · 0.53 RSI (14) crosses above 30Sep 19, 2025 · 0.57 RSI (14) crosses above 7018,830.2633 days+711.78+7.12%−15.1% / +7.5%
LongMar 25, 2026 · 0.95 RSI (14) crosses above 30Apr 15, 2026 · 1.37 RSI (14) crosses above 7011,253.0614 days+4,674.07+43.63%−15.8% / +44.2%

Return and risk

This rule beside buying and holding over the same dates

MeasureThis ruleBuy and hold
Total return+53.9%+205.5%
Return per year+24.1%+75.1%
Volatility per year26.5%175.1%
Worst fall from a peak−15.3%−58.8%
Longest time below a peak49 days195 days
Sharpe ratio0.931.05
Sortino ratio3.742.10
Return per year ÷ worst fall1.581.28

Trade statistics

Round trips for the long side, the short side and both together

Backtest results by side
StatisticLongShortTotal
Trades202
Won202
Lost000
Win rate100%—100%
Net profit+5,385.85—+5,385.85
Profit factor———
Average trade+2,692.93—+2,692.93
Average trade return+25.38%—+25.38%
Average win2,692.93—2,692.93
Average loss———
Average win ÷ average loss———
Largest win4,674.07—4,674.07
Largest loss———
Most losses in a row000
Average days held23.5—23.5

Does it hold up on the last part?

The last 30% of the period, from Apr 27, 2026, is shaded on the chart and counted apart. A rule that only worked earlier was probably fitted to the past.

PartThis ruleBuy and holdTrades
First 70%+53.9%+52.8%2
Last 30%0.0%+100.0%0

Monthly returns

This rule, month by month. The last column is buying and holding for the same year.

YearJanFebMarAprMayJunJulAugSepOctNovDecYearHold
20260.00.0-0.243.90.00.00.00.00.00.00.0+43.6%+72.4%
20250.00.00.00.00.00.00.0-5.813.80.00.00.0+7.1%+85.1%
20240.00.0%−4.3%

What this result assumes

  • Account. Starts with 10,000 in cash, 100% of the account on each entry, one position at a time. Fractional shares are allowed.
  • Fills. A signal is read at a bar’s close and fills at the next bar’s open.
  • Costs. 0.20% of the amount traded on every buy and every sell, for commission and slippage. This run paid 93.64 in all.
  • Exits. The exit condition closes the position. A position still open at the end is valued at the last close.
  • Signals. 20 in this period; 2 bars were skipped because the entry and the exit were true together. Studies are calculated on the bars before the period as well, so they are warmed up when it starts.
  • Prices. 501 daily bars, adjusted for splits. Dividends are not included, for this rule or for buying and holding.
  • Buy and hold. The same cash put into XMF-A.TO at the first bar’s open, one cost, never sold.

These results are hypothetical. They come from applying a rule to past prices under the assumptions above, with the benefit of hindsight, and are not a record of real trading. Real orders can fill at other prices or not at all. Past results do not predict future results, and nothing here is investment advice. The Stock Master app calculates backtests differently, so its numbers will not match these.