> 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="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FuoGrWvJdZWNp9hqmTTPb%2Fimage.png?alt=media&amp;token=604fa8c2-0699-4a4e-baa7-abc59d9042ee" alt=""><figcaption></figcaption></figure>

The trigger for this option works as follows:

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FpPcaj3LV8DsBepp9lXDK%2Fimage.png?alt=media&amp;token=c9a81f34-7690-41be-ba88-fc01d72d645b" 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="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2Fp6cQ8Z24s5uKczDiV4Mr%2Fimage.png?alt=media&amp;token=47fd16ef-6bdd-432f-8316-ab172b996f44" 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.
