# 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: 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.optionalpha.com/tools/finding-trades/scanners.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.
