# Stochastic Protector

Closes positions based on Stochastic oscillator crossovers and profit state filters.

Canonical: https://prismaticalgos.com/compendium/algo/530-stochastic-protector
Record ID: 530
Catalog rank: 38 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://www.mql5.com/en/code/74661
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: current chart symbol
- timeframes: PERIOD_CURRENT
- sessions: Not specified
- market_regime: any

## Indicators

- Stochastic: {"overbought": 80, "oversold": 20, "period": 14, "signal_period": 3, "slowing": 3}; applied to: close

## Recorded long-entry rules

- Not specified.

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- Crossing Mode: closes BUY positions when %K crosses below %D while %D is above Overbought (80). Closes SELL positions when %K crosses above %D while %D is below Oversold (20).
- Entering Mode: closes SELL positions when %D drops below Oversold (entering oversold). Closes BUY positions when %D rises above Overbought (entering overbought).
- Exiting Mode: closes SELL positions when %D rises above Oversold (exiting oversold). Closes BUY positions when %D drops below Overbought (exiting overbought).
- Position State Filter: Loss closes only positions with negative floating profit. Profit closes only positions with positive floating profit. Profit_and_Loss closes all positions regardless of profit status.

## Recorded filters

- profit state filter (Loss, Profit, Profit_and_Loss)

## Risk controls

- Stop loss: null
- Take profit: null
- Position sizing: fixed lot size of 0.01 with no Stop Loss, Take Profit, or magic number filtering in Test Mode
