# 2.1 Adaptive Allocation Logic

#### The Brain of the Protocol

The core of Stratos is the Adaptive Allocation Engine. This is a deterministic system that governs how capital flows within the smart contract. Unlike human traders who react to news or sentiment, the Engine reacts strictly to on-chain data and predefined volatility thresholds.

The Engine operates on a binary state logic: it is either "Risk-On" or "Risk-Off." It does not hedge in the traditional sense (e.g., 50/50 splits); instead, it commits capital to the state that matches the current market environment.

#### Trigger Mechanisms

The Engine monitors price feeds and volatility indices via decentralized oracles. A rebalancing event—shifting from Growth to Protection or vice versa—is triggered when specific conditions are met:

* **Volatility Thresholds:** If the standard deviation of price action exceeds safety parameters over a set timeframe, the protocol flags a high-risk environment.
* **Trend Reversal:** Moving average crossovers and momentum indicators confirm whether a price drop is a momentary dip or a structural trend shift.

#### The Rebalancing Cycle

1. **Monitor:** The contract polls oracle data at every block.
2. **Detect:** A threshold breach is identified (e.g., volatility spikes + price drops).
3. **Execute:** The contract calls the swap function, routing assets through the most liquid decentralized exchanges (DEXs) to convert the portfolio.
4. **Settle:** The new asset allocation is confirmed and recorded on-chain.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.strtcoin.xyz/2.-the-stratos-engine/2.1-adaptive-allocation-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
