# MACD-based trading strategy

A MACD-based strategy that generates buy signals when the MACD histogram crosses from negative to positive, both MACD and Signal are below zero, and the price is above the 200-day EMA.

Canonical: https://prismaticalgos.com/compendium/algo/11179-macd-based-trading-strategy
Record ID: 11179
Catalog rank: 2024 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Unclassified (?)
Source: https://github.com/losingloonies/Best-MACD-Trading-Validation
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

Build warnings: DAILY_LOW_COUNT: daily-or-slower timeframe on a single instrument. Expect well under 100 trades in five years, so a backtest will rarely reach statistical significance on its own.

## Recorded profile

- symbols: AMZN
- timeframes: D1
- sessions: Not specified
- market_regime: any

## Indicators

- EMA: {"period": 12}; applied to: close
- EMA: {"period": 26}; applied to: close
- EMA: {"period": 9}; applied to: close
- EMA: {"period": 200}; applied to: close

## Recorded long-entry rules

- MACD histogram crosses from negative to positive
- MACD and Signal are below zero
- Price > EMA200

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- Not specified.

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: 2%
- Take profit: 3% (1.5× risk)
- Position sizing: null
