# following-the-trend

Enters long positions when the 50 EMA crosses above the 100 EMA and the close crosses above the Donchian upper band, exits on a stop loss.

Canonical: https://prismaticalgos.com/compendium/algo/1068-following-the-trend
Record ID: 1068
Catalog rank: 2932 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.prorealcode.com/prorealtime-trading-strategies/following-the-trend/
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: Not specified
- timeframes: Not specified
- sessions: Not specified
- market_regime: trending

## Indicators

- EMA: {"period": 50}; applied to: close
- EMA: {"period": 100}; applied to: close
- Donchian: {"period": 50}; applied to: close[1]
- Donchian: {"period": 50}; applied to: low[1]
- Supertrend: {"mult": 10, "period": 3}; applied to: close

## Recorded long-entry rules

- ema50 > ema100
- close CROSSES OVER donchianUpperBand

## Recorded short-entry rules

- ema50 < ema100
- close CROSSES UNDER donchianLowerBand

## Recorded exit rules

- close < initialstopExitPoint
- close > initialstopExitPoint

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: initialstopExitPoint
- Take profit: null
- Position sizing: BUY 1 SHARES AT high stop
