# How It Works

To effectively use the automated trading strategy, follow these key steps for wallet management and trade execution:

* **Fund Each Wallet**
  * Ensure each wallet has sufficient SOL to cover both trade amounts and transaction fees.
* **Automated Buys & Sells**
  * If a wallet has no tokens, it begins by performing a **BUY** operation (swap SOL for the selected token).
  * The strategy will then alternate or repeat buys until the sell conditions are met.
  * Once the predefined conditions are met (e.g., price threshold or time frame), it will initiate a **SELL** of some or all tokens.
* **Low Funds Detection**
  * The system continuously monitors wallet balances.
  * If the wallet’s balance drops below a specified threshold (reserve), it will be flagged as **low\_fund**, and further trading for that wallet will stop.
  * If more than 50% of the wallets in use reach low-fund status, the entire strategy may enter a **Low Funds** mode, halting further trading until funds are replenished.


---

# 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://selen-ai.gitbook.io/selen-ai-how-to-use/how-it-works.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.
