Back to Blog
•
8 min read
PRODUCT UPDATE

Seeing the Slow Slide: How CapTradeAI Now Recognizes Gradual Downtrends

Every five minutes, CapTradeAI decides what kind of market it is trading in, and that label decides how careful it is. Sharp drops were always easy to spot. A slow, steady slide that takes most of a day was not. This week the agent got a second, longer view of the market so that gradual downtrends are recognized as what they are.

Market Regimes Risk Management Product Update

In short: the agent's market reading used to look back only about two hours. It now also looks back about fourteen. When the coins it tracks have fallen steadily over that longer window, the agent can now call it a downtrend and switch to its more defensive settings, even if no single two-hour stretch looked alarming on its own.

What a "Market Regime" Is, and Why It Matters

Before CapTradeAI decides whether to buy or sell anything, it first answers a simpler question: what is the market doing right now? It sorts the answer into a small number of regimes. These run from strong bull through weak bull, tight and wide sideways, and weak bear, down to strong bear. The reading is taken once per cycle across all the coins the agent tracks, so it describes the market as a whole, not one coin.

That label matters because many of the agent's settings depend on it. When the market reads as a bear market, the agent becomes more defensive in several concrete ways:

  • Smaller new positions. New buys are scaled down (by default to about 70% of their normal size).
  • Tighter stop-losses. Stops sit closer to the entry price, so a position that keeps falling is closed sooner.
  • Stricter dip-buying. The RSI strategy needs its momentum to stop falling before it buys an "oversold" coin, so it doesn't keep buying something that is still dropping.
  • Grid Trading stands aside. Grid Trading is built for calm, range-bound markets and only opens new positions when the market reads as tight sideways.

In a sideways market most of these protections relax, because ordinary back-and-forth price movement is not a threat. So the regime label works like a switch between "normal" and "careful", and the label has to be right for the switch to help.

How the Agent Read the Market Until Now

The main inputs to the regime reading are a trend signal and a momentum signal. Both are built from the agent's recent five-minute price readings and look back roughly two hours at most. That short window is deliberate. It lets the agent react quickly to a fast move. When prices drop sharply, both signals cross their thresholds within minutes and the protections described above kick in.

The agent is also careful about changing its mind. A new reading has to repeat on consecutive cycles before the agent commits to it, and it moves one step at a time along the scale from bull to bear. This keeps it from flipping back and forth every few minutes on noise. The first step toward bear, "weak bear", is already enough to turn on the tighter stops.

The Blind Spot: A Decline Made of Small Steps

A two-hour window has one weakness. Picture a staircase going down, one small step at a time. Look at any single step and it is almost flat. Only from further back can you see that the whole staircase is heading down.

Markets sometimes fall exactly like that. In late October, over most of a day, the large majority of coins the agent tracks drifted lower, most of them by somewhere between about 4% and 10%. It was a broad, real decline, not one coin having a bad day. But it happened slowly. Within any two-hour slice the move was a fraction of a percent, too small for the trend and momentum signals to treat as a downtrend. For almost the whole period the agent's reading said "tight sideways", the calmest label it has.

So the agent kept trading with its sideways settings during a market that was, seen from further back, clearly going down. Anyone looking at the day's charts could see the downtrend; the agent's reading couldn't. The short-window signals were doing exactly what they were built to do. They just weren't built to see this.

Why not just make the existing signals slower? Stretching the trend and momentum windows to many hours would help with slow slides, but it would also make the agent slower to react to sharp drops, which is their main job. We wanted both: a fast view for fast moves and a slow view for slow ones.

The Improvement: A Second, Longer View

The agent now has an additional signal that steps back and looks at the bigger picture. Every cycle it compares the current price of each tracked coin with its price about fourteen hours earlier and averages the change across all of them. The question it answers is simple: taken together, have the coins we track moved meaningfully over most of a day?

If that average has fallen by more than 3%, and the short-term signals don't already point clearly in some direction, the long view is allowed to call it a downtrend. The short-term signals keep working exactly as before, so a sharp drop is still caught within minutes. The long view only adds something in the case they were blind to: a slow slide where they read "flat".

A downtrend found by the long view goes through the same rules as any other reading. It has to repeat on consecutive cycles, and the agent still moves one step at a time. It cannot jump the agent straight to "strong bear" on a single reading.

Testing It Against Real Market History

Our normal backtests replay the regime labels the agent actually recorded at the time, so they can't show what a new way of computing those labels would have done. For this change we used a separate replay that recomputes the regime reading cycle by cycle from real recorded market data, with and without the new signal. We checked three periods:

  • The late-October slide itself. Our first version looked back about six hours, and it caught almost none of the decline. Most of that fall happened early, after which prices sat at the lower level, so a six-hour view had already "forgotten" the drop by the time it mattered. With a window of about fourteen hours the agent recognized a substantial part of the period as a downtrend, where the old reading had recognized none of it.
  • A quiet, uneventful day, used as a control. The new signal did not produce a single false downtrend reading.
  • A slow rally from mid-October, to check the opposite direction.

The replay also caught a side effect in an early version. The long view had been "voting" a little even when it saw nothing, and that occasionally talked the agent out of a correct call made by the short-term signals. We changed the long view so that it stays completely silent unless its 3% threshold is crossed. After that, the replay showed it no longer overruled any correct reading.

Why Only the Downside, For Now

The same long view could also recognize slow rallies, and in the rally test it often did. But the replay's only false readings came from that side: on the quiet control day it occasionally read normal calm as the start of a rally.

The two kinds of mistake don't cost the same. A false "downtrend" makes the agent more careful than it needed to be for a while, with smaller buys and tighter stops. A false "rally" makes it less careful at a moment when nothing justified that. So we switched on the downtrend side and kept the rally side off. The rally side is still calculated and recorded every cycle, so we can keep checking it against real market behavior and decide later with more evidence.

What you may notice. During a slow, broad decline, the market regime shown on your dashboard may now change to a bear reading where it previously stayed sideways. While it does, expect fewer and smaller new buys and tighter stops, and Grid Trading will hold off on new positions. That is the agent being cautious on purpose. The other side of the trade-off: if a slow decline turns around quickly, the agent may stay careful a little longer than needed and catch less of the rebound.

Takeaways

  • Fast and slow moves need different views. A short window catches sharp drops quickly. A long window catches a slow slide that never looks dramatic within any single hour. The agent now uses both.
  • The regime label drives a lot of behavior. Position sizes, stop distances, dip-buying rules and Grid Trading all depend on it, so recognizing a downtrend earlier improves all of them at once.
  • Test the reading itself. Because ordinary backtests replay recorded labels, this change was checked with a replay that recomputes the reading from real market data, including a quiet day to look for false alarms.
  • Be cautious about loosening caution. The side that only adds caution is live. The side that would relax it stays off until the evidence is stronger.

Same approach as always: find a real case where the agent's view of the market didn't match what actually happened, measure it on real data, make the smallest change that fixes it, and keep it easy to switch off if live behavior disagrees. Our daily trade reviews will keep checking how the new reading behaves in the next slow move, whichever way it goes.

Trading cryptocurrencies involves substantial risk of loss. Nothing in this article is financial advice, and past behavior of any strategy or system does not guarantee future results.

See the Market Regime for Yourself

The dashboard shows the agent's current market regime and sentiment readings next to your portfolio and trade history.