Using Loops
With loops, you can scan a custom watchlist of tickers or manage multiple positions in a single automation.
Loops allow us to run actions for multiple positions and symbols. Loops are typically added to the beginning of an automation so that all subsequent actions are connected to the loop.
There are three types of Loops available in automations:
Position Loops
Symbol Loops
Bot Symbol Loops

Position Loops
To manage all open positions (or a specific position type) inside a bot, we can use a "Position Loop."
A "Position Loop" repeats the action(s) below it for each position the bot has open, enabling us to apply one or more management techniques across one or more positions inside an automation.
Example: Use a "Position Loop" to monitor all open trades and close any position that is in-the-money less than 5 days from expiration:

All "Position" inputs below the loop action will automatically be linked to the current position in the loop:

This video shows how to set up a monitor automation using a Position Loop:
Symbol Loops
Symbol loops run all subsequent actions after the loop for the selected ticker symbols. This enables us to evaluate multiple criteria for different symbols, and only symbols that meet the criteria will proceed down the automation's 'Yes' path.
Example: Use a "Symbol Loop" to scan multiple tickers and open an iron condor if the symbol passes the following criteria:
Above the 50-day SMA
Has an IV Rank between 30-80
RSI is neutral (between 30-70)

This video shows how to set up a scanner automation using a Symbol Loop:
Bot Symbol Loops
Similar to Symbol loops, Bot Symbol loops will loop through multiple symbols and run all subsequent actions. Bot Symbols use our custom watchlists to sort and filter ticker symbols dynamically in real-time.

This video shows how to use Bot Symbols inside an automation:
Loop Inputs
When using any loop, the automation will automatically link to the symbol or position input variable inside a decision as an input.
For example, if using a Symbol loop for multiple tickers, the decision will auto-populate the Symbol loop into the the decision's symbol field.

With "Position Loops," all "Position" inputs below the loop action will automatically be linked to the current position in the loop:

Do not establish an input for the "symbol" or "position." Always use the the supplied input that appears when adding an action.
Last updated
Was this helpful?