# AlgoFAG

Multi-timeframe EMA trend-following strategy with Stochastic filter, fixed-risk position sizing, and adaptive trailing stop.

Canonical: https://prismaticalgos.com/compendium/algo/11070-algofag
Record ID: 11070
Catalog rank: 592 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://github.com/edu-ardo-souza/algo-fag
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: D1, H4, H1, M30, M15, M5, M1
- sessions: TradeHoursStart 9:00, TradeHoursEnd 18:00 GMT
- market_regime: trending|any

## Indicators

- iTEMA: {"period": "15|30"}; applied to: close
- iStochastic: {"d_period": 3, "k_period": 5, "slowing": 3}; applied to: close

## Recorded long-entry rules

- Fast TEMA > Slow TEMA on all enabled timeframes
- Stochastic %K > Buy Margin and < Overbought
- Spread ≤ MaxSpread
- Current time within TradeHoursStart–TradeHoursEnd

## Recorded short-entry rules

- Fast TEMA < Slow TEMA on all enabled timeframes
- Stochastic %K < Sell Margin and > Oversold
- Spread ≤ MaxSpread
- Current time within TradeHoursStart–TradeHoursEnd

## Recorded exit rules

- Fixed take profit and stop loss levels (in pips)
- Adaptive trailing stop managed by TrailingFAG

## Recorded filters

- Spread ≤ MaxSpread
- Current time within TradeHoursStart–TradeHoursEnd
- Close positions on Friday at ExpireHour

## Risk controls

- Stop loss: Stop loss distance in pips from current price
- Take profit: Take profit distance in pips from current price
- Position sizing: Risk % of balance per trade
