# Turn on/off Bots by active Deals

## Explanation

This RuleSet will turn on bots if active deal count is lower than or equals 10 and will turn bots off if active deal count is greater than 10. This RuleSet is of the "Account" type and is therefore only processed once per interval for each account.

#### Why?&#x20;

You can use such a RuleSet to have more bots enabled and waiting for signals than you actually want. But the number of deals is still limited to a fixed value. This can increase profits.

{% hint style="warning" %}
Depending on the signals selected, it may be possible that the number of active deals can be slightly higher than your limit. E.g. if the automation interval is 10 seconds, but several start signals occur simultaneously within a few seconds.
{% endhint %}

![](/files/-Miz7fPYY6hKMh_nIdKK)

## Download

{% file src="/files/-Miz8LgVkcbfKCsT-BB6" %}


---

# 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.botmanager.io/misc/ruleset-examples-for-automation/turn-on-off-bots-by-active-deals.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.
