META MACD (12, 26, 9) Crossover Backtest

HISTORICAL BACKTEST · META DAILY

What this backtest found

2016-09-27 to 2026-09-25 · $10,000.00 USD starting capital · costs as specified below

The strategy returned 35.79% over the full test period, compared with 488.96% for buy and hold. It underperformed that benchmark on total return. Its largest decline from a previous equity high was 64.52%.

Modify this strategy
Total return35.79%
Profit factor1.02
Longest losing streak14 trades
Best closed trade49.17%
Worst closed trade-13.46%
Longest drawdown duration2625 calendar days
Ending equity$13,579.01
Closed trades105
Win rate36.2%
Average winner7.42%
Average loser-3.72%
Average holding period10.9 sessions
Time invested46.24% of sessions

CAGR is the equivalent compounded yearly return across these dates, not the return earned in every year. Drawdown measures the largest fall from a previous daily equity high. Ending equity includes any open position marked to the final close.

How this strategy works

META is tested on daily bars with one long position at a time. Entry conditions are combined using AND: every condition must match. A close signal executes at the next session’s open.

  • Entry: MACD (12/26) crosses above MACD signal (9).
  • Indicator exit: MACD (12/26) crosses below MACD signal (9). It executes at the next open.

MACD (12, 26, 9): the 12-session EMA minus the 26-session EMA forms the MACD line. Its 9-session EMA is the signal line. A crossing requires the previous line relationship and the current relationship to change; staying above or below alone is not another crossover. A signal-line crossover can occur above or below zero. This is a momentum signal, not a forecast, and sideways markets can produce repeated reversals.

8% trailing stop: starts at the entry open and follows the highest daily close reached while invested. The updated level becomes active the next session. The line is not tightened using the same day’s high or low. Gaps can execute beyond the level; it is not a guaranteed maximum loss.

5% fixed stop: measured from the raw entry open, before execution slippage and fees. Opening gaps fill at open; otherwise daily high/low touches determine fills. A stop takes priority when both stop and target touch in one daily bar.

Strategy versus buy and hold

Both curves start with $10,000.00 USD and use the same historical dates. Buy and hold returned 488.96% (19.42% annualized), with 76.74% maximum drawdown.

● Strategy ● Buy and hold

Drawdowns over time

● Strategy ● Buy and hold

Annual performance

YearStrategyBuy and holdClosed tradesWorst ongoing drawdown
2016 (partial)-5.24%-9.84%25.52%
201710.19%53.38%138.91%
2018-46.63%-25.71%1351.39%
201938.73%56.57%751.39%
2020-11.36%33.09%840.95%
2021-4.05%23.13%1044.54%
2022-34.22%-64.22%1364.52%
202372.11%194.13%1160.89%
202456.09%65.42%1037.53%
202517.05%12.74%915.59%
2026 (partial)-0.14%13.86%932.25%

Annual returns use the previous year’s final equity, or initial capital for the first year. Ongoing drawdown retains the previous all-time peak, including peaks in earlier years.

Execution risk observed in this test

A 5% stop did not cap every loss: the trade exiting on 2018-07-26 lost 13.46% after opening beyond the stop. Daily gaps can bypass the intended exit level.

What these results mean

The strategy’s 3.11% annualized return was 16.31 percentage points below the long buy-and-hold benchmark’s 19.42%. Its worst daily peak-to-trough decline was smaller by 12.22 percentage points. That is a return/drawdown trade-off, not proof of better risk-adjusted performance. It held a position during 46.24% of sessions; cash earned no interest in this simulation.

Across 105 closed trades, 36.2% were profitable. The average winner was 7.42% and the average loser was -3.72%. Profit factor was 1.02: $1.02 of positive closed-trade P&L for each $1 of losses. The longest losing run was 14 trades. Win rate alone does not capture the size of wins and losses.

The weakest displayed calendar period was 2018 at -46.63%. First and last years may be partial. A full-period average can hide substantial variation.

The longest observed drawdown lasted 2625 calendar days, with 1807 underwater sessions, from 2017-07-28 to 2024-10-04. Equity regained the earlier peak on the ending date.

Best closed trade: 49.17% · 2022-12-30 to 2023-02-10, exiting because of fixed / trailing stop.

Worst closed trade: -13.46% · 2018-07-11 to 2018-07-26, exiting because of gap below stop.

Fees and slippage are 0% and 0% per side. This is a zero-cost simulation; adding execution costs can reduce results. This report contains no out-of-sample validation or parameter robustness study, so it does not establish that these rules generalize.

Price, trades and active exit levels

● Daily close ● Fixed stop (5%) ● Trailing stop (8%)

MACD and signal line

● MACD (12/26) ● MACD signal (9)

Price circles show executed entries and exits; select a circle to open its trade. Triangles mark individual crossover conditions, not executed orders: other conditions and the existing position can prevent execution. Dashed exit levels apply only while a position is held. All charts share the same date range. Zoom in/out, select a year, or pan on any chart to update them together.

Trade history

Show 105 closed trades
EntryExitEntry $Exit $ReturnReason
2016-11-252016-12-01121.01114.96-5%Fixed / trailing stop
2016-12-072016-12-30116.99116.69-0.26%Indicator exit
2017-01-052017-02-07119.73132.2410.45%Indicator exit
2017-02-102017-02-14134.10134.190.07%Indicator exit
2017-03-142017-03-20139.42139.710.21%Indicator exit
2017-03-302017-04-05142.60142.21-0.27%Indicator exit
2017-04-242017-05-12144.94150.343.73%Indicator exit
2017-05-312017-06-12152.70148.17-2.97%Indicator exit
2017-06-232017-06-28152.84150.92-1.26%Indicator exit
2017-07-122017-08-10156.49170.038.65%Indicator exit
2017-09-072017-09-15171.94170.70-0.72%Indicator exit
2017-10-092017-10-25172.70171.90-0.46%Indicator exit
2017-10-312017-11-14180.57178.13-1.35%Indicator exit
2017-11-272017-11-30182.62176.85-3.16%Indicator exit
2017-12-182017-12-22181.01177.14-2.14%Indicator exit
2018-01-032018-01-17181.86178.98-1.58%Indicator exit
2018-01-242018-02-06189.89178.47-6.01%Gap below stop
2018-02-262018-03-01184.58175.35-5%Fixed / trailing stop
2018-03-062018-03-19181.72172.63-5%Fixed / trailing stop
2018-04-112018-04-25165.46157.19-5%Fixed / trailing stop
2018-06-012018-06-08193.06187.48-2.89%Indicator exit
2018-06-182018-06-27194.92199.182.19%Indicator exit
2018-07-112018-07-26202.08174.89-13.46%Gap below stop
2018-08-282018-09-04178.10169.20-5%Fixed / trailing stop
2018-09-212018-10-04166.60158.27-5%Fixed / trailing stop
2018-10-172018-10-23159.56151.13-5.28%Gap below stop
2018-11-022018-11-09151.77144.18-5%Fixed / trailing stop
2018-11-302018-12-19138.26133.41-3.51%Fixed / trailing stop
2019-01-072019-02-15137.56164.4519.55%Indicator exit
2019-03-072019-03-15171.54162.96-5%Fixed / trailing stop
2019-04-032019-05-09174.61187.497.38%Indicator exit
2019-06-142019-07-22180.51199.5210.53%Indicator exit
2019-08-302019-09-25186.86181.70-2.76%Indicator exit
2019-10-112019-11-12182.14190.004.32%Indicator exit
2019-11-132019-12-05194.99200.002.57%Indicator exit
2019-12-202020-01-27207.48213.102.71%Indicator exit
2020-02-192020-02-24218.00201.81-7.43%Gap below stop
2020-03-262020-04-03158.57153.46-3.23%Fixed / trailing stop
2020-07-092020-07-14245.00232.75-5%Fixed / trailing stop
2020-08-042020-09-04251.41279.6011.21%Fixed / trailing stop
2020-10-022020-10-30261.35262.010.25%Fixed / trailing stop
2020-11-052020-11-10291.90273.11-6.44%Gap below stop
2020-12-022020-12-11285.36274.40-3.84%Indicator exit
2021-01-222021-01-29272.00259.49-4.6%Fixed / trailing stop
2021-03-112021-04-19267.87304.9313.84%Indicator exit
2021-04-302021-05-10326.18309.87-5%Fixed / trailing stop
2021-05-252021-06-14327.06331.901.48%Indicator exit
2021-06-152021-06-17336.96330.48-1.92%Indicator exit
2021-06-252021-07-09342.31345.680.98%Indicator exit
2021-07-262021-08-02369.29350.83-5%Fixed / trailing stop
2021-08-302021-09-14372.53377.261.27%Indicator exit
2021-10-192021-10-22339.77322.78-5%Fixed / trailing stop
2021-11-022021-12-01331.43330.02-0.43%Indicator exit
2021-12-132022-01-06330.81322.82-2.42%Indicator exit
2022-02-032022-02-04244.75234.96-4%Indicator exit
2022-02-282022-03-07207.70197.32-5%Fixed / trailing stop
2022-05-032022-05-06210.46205.54-2.34%Fixed / trailing stop
2022-05-172022-05-18202.18192.07-5%Fixed / trailing stop
2022-05-242022-05-25180.54180.53-0.01%Indicator exit
2022-05-312022-06-01194.84185.10-5%Fixed / trailing stop
2022-06-302022-07-14162.14158.41-2.3%Fixed / trailing stop
2022-08-052022-08-22166.99165.39-0.96%Gap below stop
2022-09-122022-09-13167.40159.03-5%Fixed / trailing stop
2022-10-062022-10-11137.73130.84-5%Fixed / trailing stop
2022-10-182022-10-21137.00126.31-7.8%Gap below stop
2022-11-112022-12-07109.24113.614%Fixed / trailing stop
2022-12-302023-02-10118.18176.2949.17%Fixed / trailing stop
2023-03-162023-03-30198.25203.282.54%Indicator exit
2023-03-312023-04-12207.24214.703.6%Indicator exit
2023-05-012023-05-10238.53236.17-0.99%Indicator exit
2023-05-192023-06-09247.08262.486.23%Indicator exit
2023-06-162023-06-27284.29282.01-0.8%Indicator exit
2023-07-132023-07-21313.62297.94-5%Fixed / trailing stop
2023-08-012023-08-04317.58314.96-0.82%Indicator exit
2023-09-052023-09-22297.02299.300.77%Indicator exit
2023-10-032023-10-23304.26309.341.67%Indicator exit
2023-11-072023-11-30317.06331.874.67%Indicator exit
2023-12-182024-01-04337.37344.642.15%Indicator exit
2024-01-112024-02-22371.89480.1929.12%Indicator exit
2024-04-082024-04-15529.31516.27-2.46%Indicator exit
2024-05-092024-06-25470.00496.995.74%Indicator exit
2024-06-262024-07-02506.74500.76-1.18%Indicator exit
2024-07-082024-07-11542.35515.23-5%Fixed / trailing stop
2024-08-052024-08-29451.35519.0515%Indicator exit
2024-09-172024-10-15537.60590.189.78%Indicator exit
2024-11-132024-11-14582.61577.00-0.96%Indicator exit
2024-12-032024-12-19595.00610.202.55%Indicator exit
2025-01-082025-01-15613.50610.21-0.54%Indicator exit
2025-01-222025-02-20623.34697.2711.86%Indicator exit
2025-03-262025-03-28624.10592.90-5%Fixed / trailing stop
2025-04-252025-05-30546.80642.5017.5%Indicator exit
2025-06-032025-06-16671.47699.334.15%Indicator exit
2025-06-302025-07-03744.55726.53-2.42%Indicator exit
2025-08-012025-08-20760.63747.57-1.72%Indicator exit
2025-09-162025-09-25768.00753.45-1.89%Indicator exit
2025-10-212025-10-30736.00669.19-9.08%Gap below stop
2025-11-252026-01-06624.01659.575.7%Indicator exit
2026-01-262026-02-04664.98679.252.15%Fixed / trailing stop
2026-03-052026-03-09661.93628.83-5%Fixed / trailing stop
2026-03-112026-03-13654.76623.63-4.75%Indicator exit
2026-04-082026-04-30606.00619.322.2%Gap below stop
2026-05-282026-06-01639.83607.84-5%Fixed / trailing stop
2026-06-042026-06-05623.76592.57-5%Fixed / trailing stop
2026-07-022026-07-09607.50577.13-5%Fixed / trailing stop
2026-08-172026-08-18589.90557.48-5.5%Gap below stop

Exact rules and methodology

Read the strategy-specific explanation above.

  • Signals use completed daily bars; entries and indicator/holding exits execute at the next session open. Indicators warm up using earlier history; no pre-range entry signal is carried in.
  • Opening stop/target gaps execute at open. Otherwise a scheduled indicator/holding exit executes at open; within a bar, stop takes priority if both stop and target touch.
  • Initial capital $10,000.00 USD; one fully allocated fractional position, no pyramiding or leverage. Fees and adverse slippage apply to entry and exit. Buy-and-hold benchmark is always long.
  • Open positions are marked at the last close without an assumed final sale fee. Cash interest and dividends are excluded.

Results are calculated on the supplied daily prices. Dividends and cash interest are excluded.

Calculated: 2026-10-01 17:29:33 UTC. Engine: 3.1. Data: META, 2016-09-27–2026-09-25.

Dataset fingerprint1165103bd5ddfa5a0edb7d6f63bd2b9057b5ce9ab0b6e24860b8e1e10153181c

Related backtests

These are separate saved tests. Compare dates and costs before comparing results.

Understand the metrics

What is CAGR?

The equivalent compounded yearly growth across the test’s elapsed calendar dates. It is not the return earned in each year.

What are drawdown and drawdown duration?

Drawdown is the percentage decline from a previous daily equity peak. Longest drawdown duration is the longest observed calendar time from a peak until that equity level is regained, or until the test ends. Underwater sessions count daily closes below the peak and exclude the recovery close. This duration need not belong to the deepest drawdown. “Unrecovered at test end” means the recovery date is unknown.

How is profit factor calculated?

Gross positive dollar profit divided by the absolute sum of negative dollar profit across closed trades, after configured costs. It excludes open positions. Because capital compounds, later trades can have greater dollar weight. Legacy reports without saved dollar P&L use reconstructed amounts from rounded trade returns and are labeled approximate. No losses gives “No losing trades,” not a finite ratio.

What are best/worst trade and losing streak?

Best and worst rank closed trades by percentage return. Longest losing streak counts consecutive closed trades with negative returns; a zero-return or positive trade breaks the streak. These statistics do not forecast future outcomes.

How are holding period and time invested measured?

Holding periods count sessions inclusively, including entry and exit sessions. Time invested is the share of sessions with a position at any point; it does not measure intraday hours. Average winners and losers use closed-trade percentage returns.

Educational historical simulation, not investment advice.

As an Amazon Associate I earn from qualifying purchases.