# Set up trading rules

### **What are the rules?**

You can formulate any strategy you need using predefined rules. These rules specify the details of what, how much, and with what profit to execute buy/sell actions. Sampo monitors the market 24/7 and identifies the optimal moments for buying/selling (using the [Smart Buy module](/autopilot-mode/how-it-works/smart-buy-module.md)).&#x20;

Each rule consists of 7 parameters:

1. **Pair** - the trading pair to engage in. You can set any token pair with USDT, for example, "BTCUSDT" or "ETHUSDT."
2. **Lot** - the amount of each purchase in USDT. The lot must exceed 10 USDT.
3. **Sell** - the percentage of the position that will be sold at each sell signal.
4. **Limit** - the maximum position size in USDT.
5. **Profit** - the minimum profit percentage required for a sale (Profit="1" indicates a sale only if profit >= 1%).
6. **Buy more** - the threshold for position averaging (Buy more="1" implies buying only if average position profit <= **-**&#x31;%).
7. **Period** - the time interval between purchases in minutes.

For example, the rule with the following parameters: `Pair=BTCUSDT, Lot=15, Sell=50, Limit=1000, Profit=1, Buy more=3, Period=60` - signifies:

* When Sampo detects a buy signal for BTC, it will acquire BTC for 15 USDT (**Lot**) provided the total purchase amount remains below 1000 USDT (**Limit**), and the previous purchase occurred no earlier than 60 minutes ago (**Period**), considering an average profit lower than -3% (**Buy more**).
* Subsequently, when Sampo identifies a sell signal for BTC, it will sell 50% of the present position size (**Sell**) if the profit equals or surpasses 1% (**Profit**).

### **FAQ**

* Sampo can generate trade signals as frequently as once per minute, so please consider this when setting your limits
* All sales are executed exclusively with a profit, disregarding the exchanges' commissions.
* You have the ability to establish numerous accounts within Sampo and configure distinct strategies for a single pair.
* If you're uncertain about which pair to trade, consider starting with BTC or ETH, or explore the top cryptocurrencies by market capitalization.


---

# 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.sampoprotocol.com/manual-mode/set-up-trading-rules.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.
