# 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.

*Source: https://tradelabs.org/docs/templates/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](/docs/copy-trading/strategy-editor/) explains each setting.

| Tab | Setting | Value | Why |
| --- | --- | --- | --- |
| General | Source | TradingView | TradingView alerts need no AI key. |
| General | Alert names | The names of your alerts | The strategy acts only on these alerts. |
| General | Direction | Both | The strategy acts on buy and sell alerts. |
| General | Ticker | ALL, or your symbols | ALL trades every symbol your alerts name. |
| General | Entry | Market | The order fills at the current price. |
| General | Exit | Market | A limit exit that does not fill leaves the position open. |
| General | Time in force | Day | An order that does not fill does not stay open to the next day. |
| General | Allow extended hours | Off | Orders fill in the regular session only. |
| Brokers | Broker | IBKR, Tradier, Charles Schwab, Robinhood or STG / DAS | Only these five trade stocks. |
| Brokers | Route to account | Your stock account | It shows when the broker has more than one account. |
| Sizing | How to pick the trade size | Fixed size | Every trade uses the same size. |
| Sizing | Default quantity | 10, Shares | A small position while you test. |
| AI | | Not shown | TradingView alerts have no conversation to read. |
| Risk & exits | Stop loss | 15% | The position closes when it loses 15%. |
| Risk & exits | Take profit | 40% | The position closes when it gains 40%. |
| Protections | Duplicate protection | On | A repeat of a recent alert does not trade twice. |
| Protections | Avoid stacking the same ticker | On, 2% | The strategy does not buy a stock again until the price moves 2% from your average cost. |
| Protections | Slippage cap | 1% | A fill more than 1% from the expected price is rejected. |
| Protections | Maximum trade value | 1000 | No single trade spends more than $1,000. |
| Protections | Selling restriction bypass | Off | The strategy closes only positions it opened. |
| Notifications | Send to Discord | On | Fills and errors show in your Discord channel. |
| Notifications | Broker error alerts | On | You see a broker action that fails. |

## Broker differences

| | Interactive Brokers | Tradier | Charles Schwab | Robinhood | STG / DAS |
| --- | --- | --- | --- | --- | --- |
| Entry and exit order | Market or Limit | Market or Limit | Market or Limit | Market or Limit | Market only |
| Limit price | Bid, Mid, Ask | Bid, Mid, Ask | Bid, Mid, Ask | Bid, Mid, Ask | None |
| Allow extended hours | Yes. 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. | No | No |
| Dollar size | Whole shares | Whole shares | Whole shares | Fractional shares | From buying power |
| Stop loss and take profit | Bracket order at IBKR | Bracket order at Tradier | Orders at Schwab | The app watches the price | Set one exit type only |
| Double-down protection | Block, or a cap | Block, or a cap | Block only | Block only | Block, or a dollar cap |
| Short locate % | No | No | No | No | Yes |

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](/docs/copy-trading/#5-test-before-you-go-live).

## Related pages

- Instrument: [Stocks](/docs/reference/instruments/stocks/)
- Signals: [TradingView Signals](/docs/reference/strategies/tradingview/)
- Brokers: [Interactive Brokers](/docs/reference/brokers/interactive-brokers/), [Tradier](/docs/reference/brokers/tradier/), [Charles Schwab](/docs/reference/brokers/schwab/), [Robinhood](/docs/reference/brokers/robinhood/), [DAS Trader](/docs/reference/brokers/das-trader/)
- Risk tools: [Trailing Stops](/docs/reference/risk-tools/trailing-stops/), [Protections & Guardrails](/docs/reference/risk-tools/protections/)
