# Price Bot

Price Bot allows traders to buy and sell a stock at target buy and sell price levels.&#x20;

If a user sets 3000 USD as the buy price (entry condition) for a stock and 3500 USD as the sell price, the Price Bot will execute a buy order if the stock's price hits 3000 USD and the price is previously higher than 3000 USD.

Assuming Buy Price = 3000 USD and Sell Price = 3500 USD

| Time            | Stock Price | Action       |
| --------------- | ----------- | ------------ |
| X (bot created) | 3200        | Does nothing |
| X+1             | 3600        | Does nothing |
| X+2             | 3000        | Buys Stock   |
| X+3             | 3400        | Does nothing |
| X+4             | 3500        | Sells Stock  |

Another example with same Entry and Exit conditions:

| Time            | Stock Price | Action                 |
| --------------- | ----------- | ---------------------- |
| X (bot created) | 2900        | Buys Stock immediately |
| X+1             | 3000        | Does nothing           |
| X+2             | 3200        | Does nothing           |
| X+3             | 3000        | Does nothing           |
| X+4             | 3500        | Sells Stock            |


---

# 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/bot-settings/price-bot.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.
