# MACD and SAR

Trades based on MACD and SAR signals with customizable inequality signs.

Canonical: https://prismaticalgos.com/compendium/algo/653-macd-and-sar
Record ID: 653
Catalog rank: 1578 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://www.mql5.com/en/code/20827
Evidence label (unverified): source_code

## 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

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: any
- timeframes: any
- sessions: Night Flat Trade (upon closing the American session and before opening the Asian session)
- market_regime: any

## Indicators

- MACD: {}; applied to: close
- SAR: {}; applied to: close

## Recorded long-entry rules

- macd_main_1>macd_signal_1 && macd_signal_1<0 && sar_1<m_symbol.Bid()

## Recorded short-entry rules

- macd_main_1<macd_signal_1 && macd_signal_1>0 && sar_1>m_symbol.Bid()

## Recorded exit rules

- Positions opposite to the signal received will be closed.

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: not specified
- Take profit: not specified
- Position sizing: not specified
