No-code trading bot: stock and option alerts in, orders out
Description and use
The bot receives alerts from TradingView, Discord/Telegram, or any URL POST source, parses ticker/direction/action text, selects the appropriate option contract by delta/DTE rules, places market or limit orders on entries and exits, and closes positions on exit alerts. Paper runs prove alert firing, correct text parsing, exit closure, and expected quantity. Live brokers cost from $15/month.
Problem
A trader wants to receive stock and option alerts from TradingView and have them automatically turned into orders at a broker without writing code.
Outcome
The bot receives alerts from TradingView, Discord/Telegram, or any URL POST source, parses ticker/direction/action text, selects the appropriate option contract by delta/DTE rules, places market or limit orders on entries and exits, and closes positions on exit alerts. Paper runs prove alert firing, correct text parsing, exit closure, and expected quantity. Live brokers cost from $15/month.
Workflow
- Create a TradingView alert on an indicator or strategy with the webhook URL pasted into the alert's webhook field; the message can be plain text like 'SPY long entry'.
- Set up a Discord or Telegram channel with author or keyword filters so chatter does not trigger trades.
- Configure the bot's strategy form to define four things: what each alert does (long/short entry/exit), how the option contract is picked (from rules or provided in alert), order type/duration/limit target, and trading window/stacking rules.
- Deploy the bot on a connected account with a budget per entry; stocks size in whole shares, options size per contract (100 shares).
- Run on the built-in paper broker first (free, up to 10 bots) to verify alert firing, text reading, exit closure, and quantity.
- For broker rejections, connect the broker's paper account instead (e.g., Alpaca paper with PK-prefixed keys, Tradier sandbox with delayed data).
Evidence
I write code for a living, and the trading setup I actually run has no code in it. The signal lives in a TradingView chart. The alert is one line of text. The thing on the other end turns that line into an order at my broker.
TradingView: an alert on an indicator or a strategy, with the strategy's webhook URL pasted into the alert's webhook field. The message can be plain text.
The alert for a stock, or for an options strategy that picks its own contract, is this: SPY long entry and the exit is this: SPY long exit. That is the whole template. Ticker, direction, action.
What each alert does. Four alert kinds: long entry, long exit, short entry, short exit... A long-only setup can treat short entries as its exits, which is handy when the indicator only knows 'flip'.
How the option contract is picked. 'From my rules': one to four legs, each finding its strike by delta, by price, by strikes from the money, or by offset from another leg, with buy or sell, call or put, and a DTE range.
Order type, duration and limit target. Market or limit, set separately for entries and exits on each side. A limit takes its price from Bid, Ask, Mid, a custom number, or the price in the alert. Duration is Day, GTC or FOK.
Stocks size in whole shares. $500 on a $50 stock buys 10. Options size per contract, and a contract is 100 shares, so a $2.00 premium costs $200: a $500 budget buys 2 and leaves $100 unspent. If one contract costs more than
- Record date: 2026-10-22T21:26:09.630Z