Option Alpha Docs
  • Intro to Option Alpha
  • TOOLS
    • Bots
      • Creating a Bot
      • Safeguards
      • Automation Basics
      • Using Loops
      • Decisions
      • Automated Trades
      • SmartPricing
      • Exit Options
      • Using Tags
      • Using Inputs
      • Automation Scheduling
      • Bot Logs
      • Templates and Cloning
      • Managing Positions
      • Autotrading Best Practices
    • Trade Ideas
      • Manual Trading
    • 0DTE Oracle
    • Earnings Edge
    • Settings
      • Webhooks
      • Live Trading
        • Connecting to Tradier
        • Connecting to tastytrade
        • Connecting to TradeStation
        • Connecting to Schwab
  • PLATFORM
    • Infrastructure & Security
    • Automations
      • Automation Behavior
    • Data Feeds
    • Order Handling
    • Bot Limitations
    • Supported Ticker Symbols
      • Supported Browsers
      • Supported Countries
    • Ex Dividend & Earnings Dates
    • Troubleshooting
      • Testing Automations
      • Broker Rejection Errors
        • Invalid Authorization
        • Overlapping Strikes Failsafe
        • Duplicate Orders Error
      • Capital Warnings
      • Position Limit Warnings
      • Trade Enforcements
      • Pricing Anomaly Warning
      • Missing or Invalid Input
      • Daily Symbol Limit Error
      • Excessive Errors Failsafe
      • Bot Event Loops
      • Option & Expiration Availability
  • Calculations
    • Profit and Loss
    • Decision Properties
    • Decision Calculations
    • Parameter Selection
    • Probability
      • Probability Theory
      • Understanding Alpha and Expected Value
    • Indicators
      • ADX
      • ATR
      • BOLLINGER BANDS
      • BOP
      • CCI
      • CMO
      • DX
      • EMA
      • KAMA
      • MACD
      • MFI
      • MOM
      • ROC
      • RSI
      • SMA
      • STOCH
      • Stoch RSI
      • TRIMA
      • ULTIMATE OSCILLATOR
      • WILLIAMS %R
  • Resources
    • 'Fast Track' Video Series
    • Live & On-Demand Events
    • Videos
    • Education
    • Blog
    • Podcast
Powered by GitBook
On this page
  • Position Loops
  • Symbol Loops
  • Bot Symbol Loops
  • How to Add Loops in an Automation
  • Loop Inputs

Was this helpful?

  1. TOOLS
  2. Bots

Using Loops

With loops, you can scan a custom watchlist of tickers or manage multiple positions in a single automation.

PreviousAutomation BasicsNextDecisions

Last updated 6 months ago

Was this helpful?

Loops allow us to run actions for multiple positions and symbols.

There are three types of Loops available in automations:

  • Position Loops

  • Symbol Loops

  • Bot Symbol Loops

Loops are typically added to the beginning of an automation so that all subsequent actions are connected to the loop.

Position Loops

Position loops run all subsequent actions after the loop for the bot's open positions. We can loop through all open positions or select a specific position type.

Symbol Loops

Symbol loops run all subsequent actions after the loop for the selected ticker symbols. This enables us to evaluate multiple criteria for multiple symbols at once, and only symbols that meet the criteria will proceed down the automation's 'Yes' path.

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.

How to Add Loops in 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.

Do not establish an input for the "symbol" or "position." Always use the the supplied input that appears when adding an action.