# Stochastic-based Long Entry with Moving Stoploss

Enters long when price conditions and stochastic conditions are met, with a stoploss that moves based on stochastic levels and the lowest low in a cycle.

Canonical: https://prismaticalgos.com/compendium/algo/1993-stochastic-based-long-entry-with-moving-stoploss
Record ID: 1993
Catalog rank: 2831 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://www.prorealcode.com/topic/stoploss-doesnt-work-on-backtest/
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: H1
- sessions: any
- market_regime: trending|ranging|volatile|breakout|any

## Indicators

- Stochastic: {"d_period": 3, "k_period": 14}; applied to: close
- EMA: {"period": 89}; applied to: close

## Recorded long-entry rules

- close > high[1] and close > high[3] and open < close and low < E and close > E and D < 80

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- close < low[1]

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: StopLoss = low[1] if not on market, otherwise move to tradeprice when D > 80 and D[1] > D, then move to lowest low in cycle when D < 50 and crosses over 50
- Take profit: Set TARGET PROFIT 30*pointsize
- Position sizing: 1 CONTRACTS
