# Bots and Deals

Trades on StockHero bots are consolidated as Deals. Each Deal contains orders based on the trade signals generated by ***Entry Conditions, Stop loss, Take Profit, Exit Condition and Extra Orders***. Deals will also execute orders in that same order of priority, whichever comes first.&#x20;

### Waiting For Entry

A bot that is **waiting for entry** is running. It is actively monitoring the real-time market data for the stock.

There is nothing to be done at this stage. Users may delete or pause the bot without any issues as no orders have been made.

Once the bot receives the first signal to execute a trade, a Deal will be created. This Deal can be found in the section **Open Deals**. After this, the bot's status will show "I**n Progress.**" The Deal's status will also show "**Deal In Progress.**"

<figure><img src="/files/R7b9jUceQoSmZxNN39Zk" alt=""><figcaption><p>A bot that has started a trade will display "deal in progress"</p></figcaption></figure>

### In Progress

When Entry Conditions are met, the first order and any subsequent orders, if applicable, are executed and a Deal is considered to be in progress at this point in time. The bot will send the trade signal to the connected brokerage, which will automatically execute the trade. Users can see the trade details on the Open Deals page.

### Color Codes For Each State

<figure><img src="/files/y0Ob3tvZSxWHUzQfNp4a" alt=""><figcaption></figcaption></figure>

### Liquidate

If a user liquidates a Deal, all positions taken in the same Deal are exited through a market order on the brokerage immediately. This is to ensure orders go through as quickly as possible. As soon as a user liquidates a Deal, the bot will revert to the "**waiting for entry**" state. To stop a bot from running, the user must turn off (deactivate) the bot.

### Turning off a Bot

An Open Deal is paused when a Bot is set to the inactive state. In a paused state, a bot will not act on any trade signals generated. All trade signals will resume once a Bot's status is set to active again. The Bot will start a new order based on the next trade signal. If a Deal is already opened when a user deactivates a bot, that same Deal will remain as it is, i.e., all stocks bought or sold by the bot will remain intact. If the Bot has already executed a Base Order, it will resume with an Extra Order next, if applicable.


---

# 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.stockhero.ai/getting-started/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.
