# ATR Stop Loss and Take Profit

Enters long or short positions based on stochastic and EMA crossovers, with stop loss and take profit based on ATR.

Canonical: https://prismaticalgos.com/compendium/algo/3281-atr-stop-loss-and-take-profit
Record ID: 3281
Catalog rank: 2866 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.prorealcode.com/topic/atr-stop-loss-e-take-profit/
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: EURUSD
- timeframes: 1 hour, 5 minute
- sessions: any
- market_regime: any

## Indicators

- Stochastic: {"d_period": 3, "k_period": 5, "smoothing_k": 3}; applied to: close
- EMA: {"period": 9}; applied to: close
- EMA: {"period": 21}; applied to: close
- ATR: {"period": 7}; applied to: close

## Recorded long-entry rules

- Stochastic[5,3](close) crosses over 20
- EMA[9](close) > EMA[21](close)

## Recorded short-entry rules

- Stochastic[5,3](close) crosses under 80
- EMA[9](close) < EMA[21](close)

## Recorded exit rules

- Trailing stop with start at 20 points and step of 5 points

## Recorded filters

- CumulateOrders = True
- FlatBefore = 000000
- FlatAfter = 235900
- No trading on weekends

## Risk controls

- Stop loss: ATR[7](close) / 6
- Take profit: 3 * SL
- Position sizing: 1 contract
