Strategy Templates
Discord Get started

Strategy Templates

Stocks Template

Ready settings for a stocks strategy driven by TradingView alerts, and how IBKR, Tradier, Charles Schwab, Robinhood and STG / DAS differ for stocks.

Who it is for

This template is for traders who send buy and sell alerts from TradingView indicators. When an alert fires, the strategy places the stock order in your broker. A stock room on Discord or Telegram works too: change the source and turn on AI selling.

Settings

Start from the TradingView to Interactive Brokers template, then set these values. The Strategy Editor explains each setting.

TabSettingValueWhy
GeneralSourceTradingViewTradingView alerts need no AI key.
GeneralAlert namesThe names of your alertsThe strategy acts only on these alerts.
GeneralDirectionBothThe strategy acts on buy and sell alerts.
GeneralTickerALL, or your symbolsALL trades every symbol your alerts name.
GeneralEntryMarketThe order fills at the current price.
GeneralExitMarketA limit exit that does not fill leaves the position open.
GeneralTime in forceDayAn order that does not fill does not stay open to the next day.
GeneralAllow extended hoursOffOrders fill in the regular session only.
BrokersBrokerIBKR, Tradier, Charles Schwab, Robinhood or STG / DASOnly these five trade stocks.
BrokersRoute to accountYour stock accountIt shows when the broker has more than one account.
SizingHow to pick the trade sizeFixed sizeEvery trade uses the same size.
SizingDefault quantity10, SharesA small position while you test.
AINot shownTradingView alerts have no conversation to read.
Risk & exitsStop loss15%The position closes when it loses 15%.
Risk & exitsTake profit40%The position closes when it gains 40%.
ProtectionsDuplicate protectionOnA repeat of a recent alert does not trade twice.
ProtectionsAvoid stacking the same tickerOn, 2%The strategy does not buy a stock again until the price moves 2% from your average cost.
ProtectionsSlippage cap1%A fill more than 1% from the expected price is rejected.
ProtectionsMaximum trade value1000No single trade spends more than $1,000.
ProtectionsSelling restriction bypassOffThe strategy closes only positions it opened.
NotificationsSend to DiscordOnFills and errors show in your Discord channel.
NotificationsBroker error alertsOnYou see a broker action that fails.

Broker differences

Interactive BrokersTradierCharles SchwabRobinhoodSTG / DAS
Entry and exit orderMarket or LimitMarket or LimitMarket or LimitMarket or LimitMarket only
Limit priceBid, Mid, AskBid, Mid, AskBid, Mid, AskBid, Mid, AskNone
Allow extended hoursYes. A market exit outside regular hours goes as a limit order.Yes. Pre-market and after-hours entries go as limit orders, and the app watches the stop.Yes, with a Limit entry. Schwab refuses a market order outside regular hours.NoNo
Dollar sizeWhole sharesWhole sharesWhole sharesFractional sharesFrom buying power
Stop loss and take profitBracket order at IBKRBracket order at TradierOrders at SchwabThe app watches the priceSet one exit type only
Double-down protectionBlock, or a capBlock, or a capBlock onlyBlock onlyBlock, or a dollar cap
Short locate %NoNoNoNoYes

Things the editor does for you:

  • Tradier. The strategy name must be lowercase with hyphens, 20 characters at most. The editor formats the name as you type.
  • Charles Schwab. Use Limit when Allow extended hours is on. Schwab refuses the market order.

Test it

Fire your TradingView alert once with the smallest size, or use Test signal on the Strategies page. Follow Test before you go live.