Automated stock trading software

Build a stock trading bot around your rules.

Run algorithmic stock trading rules on the stocks or ETFs you select. Define indicator and price conditions, control share or percentage sizing, and specify exits in a strategy you can backtest and simulate.

  • Stocks and ETFs
  • Visual or Python
  • Shares or allocation sizing
Stock strategy ยท draft
User-defined stock rules
UNIVERSES&P 100 standard listSP_100
BUY WHENLast Price > MACD (10-day setting)DAILY
ORDER SIZEFixed share quantity25 SHARES
STOPPercentage from entry1%
EXAMPLENOT A RECOMMENDATION

Continued testing and automation: Premium/Elite. Live connection: Elite plus eligible provider/account. Check stocks and etfs coverage and restrictions.

Choose how you build

From a virtual stock portfolio to custom Python logic.

Use the same stock and ETF concepts at the level of control that fits you.

Beginner

Simulate shares and orders

Create a virtual portfolio, submit supported manual orders, and observe positions and balances without committing real capital.

Explore simulation
Active trader

Configure the complete strategy

Combine a watchlist or universe with chart conditions, sizing, stops, targets, schedules, and portfolio limits.

Explore no-code bots
Quant

Code custom stock logic

Build Python universe selection, multi-timeframe indicators, custom signals, and typed order requests with the SDK.

Explore Python
Stock bot examples

Configure more than a single buy signal.

Each example shows a different stock automation pattern. Symbols and thresholds remain yours to choose.

STOCK AUTOMATION PREVIEWILLUSTRATIVE
Price and indicator strategy

Evaluate a chart condition across your universe.

UNIVERSEYour selected stock or ETF list
ENTRYClose crosses above your channel
SIZEYour fixed shares or allocation
EXITYour ATR stop and time limit
Stock-native controls

The details that make a stock strategy usable.

Universes and watchlists

Choose custom symbols, supported standard lists, or user-defined query criteria.

Quote and indicator rules

Combine supported fields, indicators, expressions, and timeframes.

Shares and allocations

Express position size using supported fixed-quantity or allocation models.

Position controls

Add supported stops, targets, holding limits, exposure controls, and position policies.

Connected-account boundary

Your strategy does not become a recommendation.

Investfly provides tools for rules you create or adopt. It does not select your stocks, supply a house ranking model, or decide whether live trading is appropriate for you.

Availability depends on

  • Supported provider and connected account
  • Account permissions and instrument eligibility
  • Market-data rights and current platform support
  • Your continuing review and authorization
Stock trading bot questions

Match the automation to your stock workflow.

What is a stock trading bot?

A stock trading bot repeatedly evaluates rules for securities you choose and can produce supported alerts or orders. Investfly keeps the universe, entry, sizing, exit, and account authorization under your control.

Can Investfly automate ETF strategies too?

Yes. Stock and ETF workflows can use supported universes, watchlists, indicators, baskets, recurring schedules, share quantities, and portfolio-percentage sizing.

Can I build a stock trading bot without Python?

Yes. Use the visual builder for supported price, indicator, schedule, sizing, and exit rules, or use Python when your strategy requires supported custom logic.

Can I test a stock bot before connecting a broker?

Yes. Historical backtests and virtual portfolios are separate from live account authorization. Their results are hypothetical and may differ from live fills, costs, liquidity, and market conditions.

From stock research to a complete bot

Exploring an AI stock trading app? See how AI trading ideas fit into Investfly's stock strategy workflow, from your initial idea through building, testing, and simulation.

Inspect the five-minute AAPL/META SMA example: rising-edge SMA(20) above SMA(50), market/day entry, 30% equity sizing, initial 4% protection, staged closes and a later trailing stop. The strategy view shows every rule and limit, not just an entry signal.

Inspect SMA CrossOver, use Customize to save a private draft, and review every setting before running it.

Reported historical period Matched closed-trade records Last completed run
2026-09-03 to 2026-10-09 15 2026-10-10

Historical simulation, not live performance. Partial closes may create multiple matched records. The run uses available history; its dates can change as data refreshes. Inspect costs, fills, missing data and warnings in the full report. These settings demonstrate software behavior, not a recommended strategy.

Stock strategy overview with universe, entries and sizing
The overview shows the complete saved definition; the screenshot is a separate fictional configuration. Fictional local demo; simulated data and results.

Eligible stock connections

Connection Stocks and options distinction
Tradier Stocks/ETFs plus options; multi-leg order support for eligible accounts.
TastyTrade Stock and options scope; verify account/instrument eligibility.
Alpaca Stock and spot-crypto scope; do not assume multi-leg options support.

Standard remains free after the included trial, with one stock/ETF virtual portfolio, screener, watchlist, notification automation and saved strategy. Continued backtesting and automated deployment require Premium or Elite; live connections require Elite.

Start with a stock screener, review historical assumptions, and inspect scheduled entry, baskets and rotation templates. A scheduled basket defines your weights and rules; it does not select an optimized investment for you.

Recurring contributions and ranked rotation

The weekly contribution example schedules Monday 10:00, contributes $1,000 virtual cash per run and splits it 50/50 between AAPL and MSFT, subject to position/exposure limits. Confirm schedule timezone and available cash.

Inspect Advanced Weekly DCA Open, use Customize to save a private draft, and review every setting before running it.

Reported historical period Matched closed-trade records Last completed run
2020-07-27 to 2026-10-09 2 2026-10-10

Historical simulation, not live performance. Partial closes may create multiple matched records. The run uses available history; its dates can change as data refreshes. Inspect costs, fills, missing data and warnings in the full report. These settings demonstrate software behavior, not a recommended strategy.

The rotation example runs Monday 09:45, ranks MSFT/NVDA/META/AAPL/AMZN by 20-day rate of change and targets the top two within a 50% equity budget, subject to a 35% per-position cap. It is a rule illustration, not an optimized allocation. Review full protective targets, trail and maximum hold before copying.

Inspect Advanced Score Weighted Rotation, use Customize to save a private draft, and review every setting before running it.

Reported historical period Matched closed-trade records Last completed run
2020-07-27 to 2026-10-09 163 2026-10-10

Historical simulation, not live performance. Partial closes may create multiple matched records. The run uses available history; its dates can change as data refreshes. Inspect costs, fills, missing data and warnings in the full report. These settings demonstrate software behavior, not a recommended strategy.

Check stocks and etfs access before creating a bot

Provider for live connectionMarket/account scopePaper modeLive mode
TradierSupported stocks/ETFs; options are a separate permissionInvestfly virtual portfolio: simulated funds; no provider connection required.Elite: separately authorize an eligible provider account.
AlpacaSupported stocks; review instrument/account permissionsInvestfly virtual portfolio: simulated funds; no provider connection required.Elite: separately authorize an eligible provider account.
TastyTradeSupported stock instruments; confirm the selected accountInvestfly virtual portfolio: simulated funds; no provider connection required.Elite: separately authorize an eligible provider account.

Historical testing: Available stock/ETF OHLCV bars; symbol, interval and warm-up determine the usable period. Stored intervals are 1, 5, 15, 30 and 60 minutes and daily where data is available; inspect the reported period instead of assuming every symbol has every interval.

Plan and execution limits: Premium or Elite is required for continued automated deployment and historical testing after the trial. Standard continues to provide one free stock/ETF practice portfolio. Provider support is not a promise that every account, country, symbol, structure or order type is eligible. Review the connection and strategy compatibility report, quote timestamp, fees and market-data rights. Investfly-managed protection and modeled fills can behave differently from native broker orders. Review current plans and testing assumptions.

Next: review stock stop/target fill behavior.

Stocks and ETFs, your way

Turn your stock rules into a testable strategy.

Build visually or with Python, then review backtests and virtual portfolio activity before deciding what comes next.

Examples are illustrative. Backtests are hypothetical and trading involves risk of loss.