> For the complete documentation index, see [llms.txt](https://docs.botmanager.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.botmanager.io/misc/ruleset-examples-for-automation/turn-on-off-bots-by-active-deals.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.botmanager.io/misc/ruleset-examples-for-automation/turn-on-off-bots-by-active-deals.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
