> For the complete documentation index, see [llms.txt](https://docs.runbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.runbot.io/triggers-boxes/entry-in-position-rules/no-previous-trade.md).

# 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.
