# MACD Sample

Trades using the MACD indicator with input parameters for trade volume, take profit, trailing stop, MACD levels, and trend period.

Canonical: https://prismaticalgos.com/compendium/algo/6588-macd-sample
Record ID: 6588
Catalog rank: 866 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trade & Execution Management (K)
Source: https://www.mql5.com/en/code/2154
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: any
- market_regime: any

## Indicators

- MACD: {"fast_period": 12, "signal_period": 9, "slow_period": 26, "source": "close"}; applied to: close
- EMA: {"period": 26, "source": "close"}; applied to: close

## Recorded long-entry rules

- m_macd_current > m_macd_previous + m_macd_open_level * m_adjusted_point

## Recorded short-entry rules

- m_macd_current < m_macd_previous - m_macd_open_level * m_adjusted_point

## Recorded exit rules

- m_macd_current < m_macd_previous - m_macd_close_level * m_adjusted_point
- Stop Loss is set to m_traling_stop * m_adjusted_point
- Take Profit is set to m_take_profit * m_adjusted_point

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: Set to m_traling_stop * m_adjusted_point
- Take profit: Set to m_take_profit * m_adjusted_point
- Position sizing: InpLots
