← All posts
·7 min read·SGACRYPTO Team

How the SGAEMA mean-reversion engine works

A plain-English walkthrough of the signal engine behind every trade — how it reads EMA distance, waits for confirmation, and times entries and exits.

How the SGAEMA mean-reversion engine works

SGAEMA is a mean-reversion engine. The core idea is old and durable: price tends to stretch away from its moving average and then snap back. The hard part isn't the idea — it's measuring the stretch precisely, confirming it across timeframes, and not getting run over while you wait for the snap.

Start with the distance. For every symbol we track, the engine continuously measures how far price has pulled away from its exponential moving average, expressed as a percentage. A small distance is noise. A large distance is a stretched rubber band. We don't trade on the distance alone — we trade on distance that has reached a threshold calibrated per asset, because a 0.3% stretch on a major FX pair is a very different signal than a 0.3% stretch on a volatile altcoin.

Those thresholds aren't static guesses. They're derived from the recent distribution of distances for each symbol, so the bar adapts as volatility regimes change. A quiet market needs a smaller move to qualify; a violent one needs a bigger one.

Next comes confirmation. A single stretched bar on one timeframe is a weak signal. Before the engine commits, it requires the higher-timeframe context to agree — the longer-interval EMA distance has to confirm the same direction the entry timeframe is pointing. This cross-timeframe gate is what keeps the engine out of countertrend traps where the one-minute chart screams "oversold" while the trend on the fifteen is still firmly down.

Then entries. When distance and confirmation line up, the engine opens a position sized to the deployable-capital limits of your plan. Sizing is not fixed dollars — it scales with your equity, so winners compound and the book grows with you rather than staying frozen at a starting stake.

Exits are where most automated strategies quietly bleed out, so this is where we spend the most engineering. Every position carries an automatic take-profit and stop-loss from the moment it opens, plus a trailing stop that arms once a trade is sufficiently in profit and then ratchets behind the high-water mark. The rule is simple: let winners run until they give back a defined slice of peak gains, and cut losers at a hard line. No discretion, no "let me give it room," no 3am decisions.

The whole loop runs 24/7. Crypto never closes, so neither does the engine. It opens, scales, trails and exits without you watching — which, given that the worst trades are almost always the ones a tired human babysits, is exactly the point.

Further reading

Ready to put it to work?

Connect your wallet and run the engine non-custodially.

Start trading