# No previous trade

<figure><img src="/files/36G1eI1xfbv4kUULlKqc" alt=""><figcaption></figcaption></figure>

The trigger for this option works as follows:

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

**If there has been no \[long, short, long or short, same side, opposite side] trade in the last \[number] candles \[timeframe].**

Ex 1: \[No trade in the previous 2 one-hour candles]

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

The bot closes a position at 1:00 PM. The strategy triggers a long position, one hour later, at 2:00 PM.

-> The bot will not enter any position, because the bot executed a transaction (closing the last position) in the last 2 hours.

Ex 2: \[No trade in the previous 2 one-hour candles]

The bot closes a position at 1:00 PM. The strategy triggers a long position, 2 hours (2x1) later, at 3:00 PM.

-> The bot opens a long position, since there have been no transactions in the last 2 hours.


---

# 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.runbot.io/triggers-boxes/entry-in-position-rules/no-previous-trade.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.
