# Performance Filter

The "Performance" filter is designed to pause or resume trading on coins/symbols based on trading metrics of a specific pair, market, algorithm, or user actions. The filter allows creating conditions based on the performance of a specific pair, specific market (for example: manual trading), or results of a specific algorithm to either enable or disable that algorithm's ability to place orders.

**Main application:** Stop or continue trading based on results — profits, losses, or other performance indicators.

***

### Interface Elements

#### Source

Determines the performance analysis scope.

**Available options:**

**Global by symbol** Symbol performance across the entire terminal.

**Algo symbol** Symbol performance within this algorithm.

**Algo total** Overall performance of this algorithm (across all coins).

**Custom key** Advanced mode with data source selection. Opens additional parameters.

***

#### Source (Custom Key Only)

**Available only when Custom key is selected.**

Determines what exactly to monitor:

**Algo (Current algorithm)** Current algorithm performance.

**Manual (Manual trading)** Trader's manual trades performance.

**Liquidations** Performance including liquidations.

**All** Overall performance from all sources.

**Specific algorithm selection** Performance of another algorithm from the list.

***

#### Market Type

Spot or USDT-M — for filtering by market (depending on where the algorithm works).

**Available only for Custom key.**

***

#### Quote Assets / Symbols

You can specify specific tickers or broadly set BTC, USDT, etc.

**Available only for Custom key.**

***

#### Timeframe

The period over which performance is measured (for example, 1 hour).

***

#### Validate by

Choose the parameter to check:

**Profit** Check by absolute profit in USDT.

**Price Δ %** Check by price change percentage.

**Profit Factor** Ratio of profit to loss.

***

#### Value

Specify the threshold value for the selected parameter.

**You can specify:**

* **Fixed value** — for example, -100 USDT or 100 USDT
* **Range** — for example, from -100 to 100 USDT

**Example:** If Profit is selected and -100 USDT is specified, the filter will trigger at a loss of 100 USDT.

***

#### Action

What to do when the condition is met:

**Stop till next run** Stop the algorithm on the symbol.

**Pause** Temporarily pause until other conditions are met.

***

#### Sleep Time

Time in seconds the algorithm will be paused after the filter triggers. After this time expires, the filter will check conditions again.

**Example:** 300 seconds = 5 minutes pause before rechecking.

***

### Usage Examples

#### Example 1: Stop Losing Symbol

**Settings:**

* **Source:** Algo symbol
* **Timeframe:** 1 hour
* **Validate by:** Profit
* **Value:** -100 USDT
* **Action:** Stop till next run

**Result:** If the symbol showed a loss of -100 USDT over the last hour, the algorithm will stop trading this symbol.

***

#### Example 2: Pause on Price Drop

**Settings:**

* **Source:** Global by symbol
* **Timeframe:** 1 hour
* **Validate by:** Price Δ %
* **Value:** -5%
* **Action:** Pause
* **Sleep Time:** 300 seconds

**Result:** If the symbol price fell by 5% over an hour, the algorithm will pause for 5 minutes, then check the condition again.

***

### Why This Filter is Needed

**Automatic Risk Management:** Stop trading on losing symbols automatically, protecting your deposit from further losses.

**Adaptation to Market Conditions:** Pause the algorithm during unfavorable price movements or low efficiency.

**Performance Control:** Monitor results of specific symbols, algorithms, or the entire terminal, making data-driven decisions.


---

# 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://guide.moontrader.com/en-moontrader-docs/trading/trading-algorithms/general-algorithm-settings/performance-filter.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.
