# Night Trading Algorithm

Algorithm trades during the night and stops if daily profit or loss exceeds 100 or -100 dollars respectively.

Canonical: https://prismaticalgos.com/compendium/algo/2408-night-trading-algorithm
Record ID: 2408
Catalog rank: 819 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Unclassified (?)
Source: https://www.prorealcode.com/topic/test-performance-algo-trading/
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: ES
- timeframes: M5
- sessions: 06:00-09:00 GMT
- market_regime: any

## Indicators

- SMA: {"period": 20}; applied to: close

## Recorded long-entry rules

- Not OnMarket AND TradeON AND close CROSSES OVER SMA

## Recorded short-entry rules

- Not OnMarket AND TradeON AND close CROSSES UNDER SMA

## Recorded exit rules

- StrategyProfit - StrategyProfit[1] >= MaxProfit OR StrategyProfit - StrategyProfit[1] <= -MaxLoss THEN SELL AT MARKET, EXITSHORT AT MARKET, TradeON = 0

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: $LOSS MaxLoss
- Take profit: $PROFIT MaxProfit
- Position sizing: 1 CONTRACT
