> For the complete documentation index, see [llms.txt](https://docs.optionalpha.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optionalpha.com/tools/finding-trades/scanners.md).

# Scanners

{% embed url="<https://vimeo.com/1052337610>" %}

Scanner automations typically begin with a [symbol loop](/tools/bots/loops.md) and a subsequent list of one or more [decisions](/tools/bots/decision-actions.md), ending with an 'Open Position' action.

Here is an example of a scanner that evaluates the market and opens a bullish or bearish credit spread depending on the current conditions:

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

### Open Position action

The 'Open Position' action includes all the position's details, including the symbol, expiration, strike prices, position sizing, [SmartPricing](/tools/bots/smartpricing.md) settings, [Exit Options](/tools/managing-positions/exit-options.md), and any [tags](/tools/bots/tags.md) you may want automatically applied to the position that is opened.

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

We can also define one or more entry criteria:

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

As well as position criteria to set minimum and maximum values for specific variables, which the bot will filter out if your criteria aren't met:

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.optionalpha.com/tools/finding-trades/scanners.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
