Stock Trading

TradersPost supports buying, selling and shorting US Equities and Index ETFs through the following brokers.

TradersPost Automated Stocks Trading Setup

Supported Brokers

Shorting and fractional quantity depend on the connection. The stock automation page explains how a buy or sell alert becomes an order and compares what each stock connection supports.

How a buy or sell alert becomes a stock order

Stocks are the simplest asset class to automate, but two words in an alert, buy and sell, do more than they appear to. This page follows a few alerts from arrival to broker order and covers where the connected brokerage changes the result.

The same alert sends different orders depending on what you hold

Buy and sell are a direction, not a single order.

Example alert
{
    "ticker": "AAPL",
    "action": "buy",
    "quantity": 100,
    "price": 189.50
}
  • You hold: Nothing

    Alert action: buy

    TradersPost sends:
    Buy to open100 AAPL

    You endLong 100

  • You hold: Short AAPL

    Alert action: buy

    TradersPost sends:
    Buy to coverthe short Buy to open100 AAPL

    Opens the long only if side swapping is on

    You endLong 100

  • You hold: Long AAPL

    Alert action: sell

    TradersPost sends:
    Sell to closethe long Sell to opena 100 AAPL short

    Opens the short only if side swapping is on and the connection allows shorting

    You endShort 100

  • You hold: Long or short

    Alert action: exit

    TradersPost sends:
    Closewhatever is open

    Never opens the other side

    You endFlat

With limit orders, Allow signal quantity and Allow signal entry price turned on, the buy to open is a limit order at 189.50 .

Flip to the other side, or stop flat

One advanced setting decides what an opposite signal does.

You holdLong 50 SPYalert sell

Allow side swapping on

Ends short 50
  1. Close the long 50 SPY
  2. Cancel open orders
  3. Open a short of 50 SPY

Allow side swapping off

Ends flat
  1. Close the long 50 SPY
  2. Cancel open orders
  3. Stay flat, nothing new opens

Allowed Sides limits a strategy to long only or short only.

Sides Isolated stops an opposite signal from closing a position at all.

How many shares a dollar amount buys

Quantity comes from the alert or the subscription. The subscription can size it four ways.

Size by Fixed shares Dollar amount Risk vs stop loss Percent of equity

Even price

$1,000÷$100=10

Whole sharesDivides evenly, nothing to round
10

Uneven price

$1,000÷$189.50=5.277

DefaultRounds down to whole shares
5
Use fractional quantityRounds down to the decimals the broker accepts, two here
5.27

tastytrade does not fully support fractional stock quantities for automated trading.

Fractional orders also have rules of their own. Check them before you turn it on.

  • Met: Time in force is Day

    DAY
  • Met: Order type is market

    Market
  • Met: Long only, no short sale

    Buy
  • Not met: No take profit or stop loss attached

    Stop loss 5%

    Fix: Remove the exit, or send it as a separate signal.

This order will not go through as fractional.

Some connections attach your exits, others send them on their own

A bracket order sends the entry, take profit and stop loss together.

Sent as one bracket

Attached

When one exit fills, the broker cancels the other.

Entry Take profit Stop loss

Connections

  • TradeStation
  • Alpaca
  • Webull
  • tastytrade
  • Tradier
  • Interactive Brokers

Exits sent as separate signals

Not attached

Send the entry first, then a separate signal to exit for take profit or stop loss.

EntryOwn order Take profitOwn order Stop lossOwn order

Connections

  • Robinhood
  • E*TRADE
  • Public.com

From the order classes docs. Check the connection page before relying on attached exits.

Order support by connection

What each connection that trades stocks accepts, as TradersPost sends it.

Supported Limited Not supported

Alpaca Robinhood TradeStation Tradier Interactive Brokers E*TRADE tastytrade Webull Public.com Moomoo Clear Street
Direction
Long Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported
Short Supported Limited 1 Supported Supported Supported Supported Supported Supported Supported Supported Supported
Sizing
Fractional quantity Supported 2 Supported 3 Not supported Not supported Not supported Not supported Supported 4 Supported 5 Supported 3 Not supported Not supported
Order types
Market Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported
Limit Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported
Stop Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported
Stop limit Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported
Trailing stop Supported Supported Supported Not supported Supported Supported Not supported Supported Not supported Not supported Supported
Time in force
Day Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported
Good till canceled Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported Supported
Immediate or cancel Supported Supported Supported Not supported Supported Supported Not supported Not supported Not supported Not supported Supported
Fill or kill Supported Not supported Supported Not supported Not supported Supported Not supported Not supported Not supported Not supported Supported
At the open Supported Supported Supported Not supported Supported Supported Not supported Not supported Not supported Not supported Supported
At the close Supported Not supported Supported Not supported Not supported Supported Not supported Not supported Not supported Not supported Supported
Attached exits
Bracket / OCO / OTO Supported Not supported Supported Supported Supported Not supported Supported Supported Not supported Not supported Not supported
Trailing stop attached Not supported Not supported Supported Not supported Supported Not supported Not supported Not supported Not supported Not supported Not supported
Accounts
Paper trading Supported Not supported Supported Supported Supported Not supported Not supported Not supported Not supported Not supported Not supported
  1. 1 Selling to open accepts market and limit orders only.
  2. 2 Up to 9 decimal places.
  3. 3 Up to 6 decimal places.
  4. 4 Up to 8 decimal places.
  5. 5 Up to 2 decimal places.

Signals

It's easy to send signals to TradersPost using Webhooks from platforms like TradingView or TrendSpider. You just need to send JSON in Signals like the following to the webhook URL you create within TradersPost.

Enter Bullish

The buy action is a bullish signal. When TradersPost receives a buy signal, we will Buy To Cover any bearish (short) position for the ticker and Buy To Open a bullish (long).

{
    "ticker": "SQ",
    "action": "buy"
}

Exit Bullish

The exit action will exit any open position. So for example if you have a long shares position open, then TradersPost will Sell To Close those long shares.

{
    "ticker": "SQ",
    "action": "exit"
}

Enter Bearish

The sell action is a bearish signal. When TradersPost receives a sell signal, we will Sell To Close any bullish (long) position for the ticker and Sell To Open a bearish (short) position.

{
    "ticker": "SQ",
    "action": "sell"
}

Exit Bearish

The exit action will exit any open position. So for example if you have a short shares position open, then TradersPost will Buy to Cover those short shares.

{
    "ticker": "SQ",
    "action": "exit"
}

Stocks Asset Class Subscription Settings Walkthrough

The subscription settings page is where you edit all settings for your individual subscriptions. It's also where you can override the settings you've sent in your webhook signal.

Auto Submit

Checking this will submit your subscription orders automatically to your broker. Otherwise, you will need to manually approve or reject each order.

Allowed Tickers

You can allow any ticker that is in your asset class or you can filter a subscription to only trade tickers you've added.

Stock tickers will need to be formatted like this: SPY, TSLA, AAPL

Allowed Sides

Choose which trade directions are allowed: take both bullish and bearish trades, or restrict to just one side.

  • Both (Bullish and Bearish)
  • Bullish
  • Bearish
  • None
Subtract Exit Quantity from Signal Quantity (Advanced)

When side swapping is enabled, enable this option to take the exit quantity and subtract it from the signal quantity before side swapping. (Set Sides to Both, and enable both Side swapping and Allow signal override.)

Example: You are long 50 shares and send the below JSON:

{
    "ticker": "SPY",
    "action": "sell",
    "quantity": "100",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

Scenario 1:

  • Subtract exit quantity from signal quantity

All open orders will be closed and 100 shares will be subtracted from your open long, leaving you net short 50 shares.

Scenario 2:

  • Subtract exit quantity from signal quantity

Your 50 share long will immediately be closed, all open orders cancelled, and you'll be entered into a 100 share short.

Sides Isolated (Advanced)

If there is an open position on the opposite side, do not allow the trade signal to exit the position. (Sides must be set to Bullish or Bearish)

Example: You are short 50 shares, have this setting set to "Bullish" and send the below JSON:

{
    "ticker": "SPY",
    "action": "buy",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

Scenario 1:

  • Sides Isolated

Your trade will fail and your short will not be exited.

Scenario 2:

  • Sides Isolated

Your 50 share short will immediately be closed, all open orders cancelled, and you'll be entered into a 50 share long.


Trading Window

Trading Window

Define your trading windows. Trade signals received outside these windows will be ignored. "From" is inclusive; "To" is exclusive.

When trading windows are defined, any trading signals submitted outside those windows are ignored by default.

Enabling the Allow exits and cancels outside of trading windows option allows exit or cancel signals to be processed even if they occur outside the defined trading windows. This is helpful if you want to ensure entries happen within your window but still allow exits or cancellations at any time.

Example: You are in a 50 share long that was entered during a trading window that ends at 4pm. It's now 4:01pm and the following signal is received:

{
    "ticker": "SPY",
    "action": "sell",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T16:01:08Z",
    "interval": "5"
}

Scenario 1:

  • Allow exits and cancels outside of trading windows

Your 50 share long will immediately be closed, all open orders cancelled, and you'll be net flat.

Scenario 2:

  • Allow exits and cancels outside of trading windows

Your 50 share long will remain open and your sell trade will reject.


Position Size

Fixed Quantity

Hardcode a fixed quantity for each position instead of calculating a quantity dynamically.

This option allows you to specify a fixed quantity for your entries. For example, if you set the fixed quantity to 50, the strategy will always enter a quantity of 50 shares when the trade is entered.

Amount Per Position

Calculate a quantity of shares using a total dollar amount

The amount per position dynamic quantity calculation method is used to calculate a quantity based on a desired total notional dollar amount. If you want to buy $1000 worth of AAPL and the price of AAPL is currently $100, then the quantity would be calculated at 10 shares. This option can be combined with Use fractional quantity (below)

Risk Per Position

Calculate the quantity of shares to buy or sell

Example:

You have a value of 100 in the "Risk Per Position" setting and send the below JSON when Apple is trading at $100:

{
    "ticker": "AAPL",
    "action": "buy",
    "price": "660",
    "stopLoss": {
        "stopPrice": 90
    },
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

The number of shares TradersPost will send to your broker will be 10 ($100 of risk / $10 in stop loss)

Percent of Equity

Enter a percent of equity to use per position. This will be used to determine the amount per position and the resulting calculated quantity per position.

This option dynamically calculates a quantity based on a desired percentage of your equity. For example, if you set the percent of equity to 10%, the strategy will calculate the quantity based on your equity so that the total value of the position is 10% of your equity.

For example, you can buy 10% of your equity worth of AAPL shares. If you have a $10000 account and the current price of AAPL is $100, the quantity will be calculated as 10.


Use Fractional Quantity

Use a fractional quantity if the broker supports it. If the broker does not support fractional trading, the calculated quantity will be rounded down to a whole number.

By default, TradersPost will round down quantities to whole numbers when they are fractional. If you would like to use fractional quantities, you can enable this feature by checking the Use fractional quantity checkbox. When enabled, TradersPost will use the exact quantity up to the allowed number of decimals that the broker or ticker allows.


Allow Add To Position

Allow adding to an existing open position. If this is not checked, trades will be rejected if there is already an open position.

Example: You are long 50 shares and send the below JSON:

{
    "ticker": "SPY",
    "action": "buy",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

Scenario 1:

  • Allow Add To Position

Your 50 share long will have 50 more shares added to it, making it a net 100 share long position.

Scenario 2:

  • Allow Add To Position

Your 50 share long will remain open, your add will reject, and you'll still be net 50 shares long.


Signal Quantity Multiplier

Multiply the signal quantity by a fixed number to scale position size up or down. For example, a signal with quantity 2 and a multiplier of 2.5 results in a final quantity of 5. (Only applies when Allow signal override is enabled.)

The Signal Quantity Multiplier allows you to scale the quantity provided in a trade signal up or down by a fixed decimal value.

This multiplier is applied only if Allow signal override is enabled. When enabled, TradersPost will take the quantity value from the incoming webhook signal and multiply it by the number you provide here.

Example: You send in the following JSON:

{
    "ticker": "SPY",
    "action": "buy",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

Signal quantity multiplier: 2.5

Result: TradersPost will submit a market order for 125 shares (50 × 2.5).


Use Cases

  • You want to follow a signal provider’s trades, but your account is larger or smaller than theirs.
  • You want to scale all trade sizes from a strategy, regardless of what quantity it sends.
  • You want to reduce exposure (e.g. use 0.5 to take half-size positions).

Notes

  • Supports decimal values like 0.1, 1.5, 2, 10, etc.
  • Can be used to scale down as well as up.
  • Works with both whole and fractional quantities (if your broker supports fractional trading and Use fractional quantity is enabled).
  • If the calculated final quantity results in a decimal and your broker does not support fractional shares/contracts, the value will be rounded down.

Tip

If you don't want to use the quantity from the signal, you can leave Allow signal override disabled and configure your own quantity calculation method instead.

Cancel

Cancel

Check this if you do not want TradersPost to cancel open orders before submitting new orders. Beware that if you disable this and you use take profit or stop losses in your broker and you send an exit signal, the broker may reject your exit order due to the take profit or stop loss orders still being open.

Example: You are long 50 shares with a stop loss and take profit, and send the below JSON:

{
    "ticker": "SPY",
    "action": "sell",
    "sentiment": "flat",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

Scenario 1:

  • Disable canceling open orders

Your 50 share long will be exited, but the stop loss and take profit will not be cancelled.

Scenario 2:

  • Disable canceling open orders

Your 50 share long will immediately be closed, all open orders cancelled, and you'll be net flat.

Entries

Entry Order Type

Choose the order type to use for entry orders. Your choices are below:

  • Limit
  • Market
  • Stop Market
  • Stop Limit
  • Trailing Stop

For Trailing Stop orders, you'll also need to add one of the following

  • Entry Trail Amount (in dollars (market price offset) on the stock ticker)

  • Entry Trail Percent (based off the percent offset of the stock ticker price. We call this the market price percentage offset.)

  • Allow entry extended hours

Entry orders will be sent to your broker as extended hours limit orders when the market is closed. If you also select the "Market" order type, then extended hours limit orders will be used when the market is closed and market orders will be used when the market is open.

By default, entry orders are submitted to your broker with extended hours disabled. By checking the Allow entry extended hours checkbox in your strategy settings, you can enable extended hours trading for your entry orders.

When this setting is combined with an Entry order type of Market, the entry order will be submitted as a market order when the market is open and an extended hours limit order when the market is closed.

Entry Time In Force

By default, TradersPost will send the appropriate time in force of either gtc or day depending on the scenario and broker

Choose the entry time in force to use for entry orders. Your choices are below:

  • Good For Day: The order is valid for the trading day and will be canceled if not executed by the end of the trading day
  • Good Until Cancelled: The order is good until canceled and will remain active until it is executed or canceled.
  • Immediate Or Cancel: The order is immediate or canceled, meaning it must be executed immediately or canceled.
  • Fill Or Kill: The order is fill or kill, meaning it must be executed immediately in its entirety or canceled.
Entry Price

Choose what quote price to use as the current market price for entries if the signal does not have a price.

When your signal does not have a price, TradersPost will fetch a quote from the broker and use the configured market price type from the strategy settings instead of using the price from the signal. By default, the Bid-ask midpoint will be used. For example, if you have limit orders configured and you send a signal without a limitPrice, then TradersPost will use the price from the quote.

If you specify a limitPrice, then that value will be used.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100
}

Exits

Exit Order Type

Choose the order type to use for exit orders. Your choices are below:

  • Limit
  • Market
  • Stop Market
  • Stop Limit
  • Trailing Stop

For Trailing Stop orders, you'll also need to add one of the following

  • Exit Trail Amount (in dollars (market price offset) of the stock ticker)

  • Exit Trail Percent (based off the market price percentage offset of the stock ticker)

  • Allow exit extended hours

By default, exit orders are submitted to your broker with extended hours disabled. By checking the Allow exit extended hours checkbox in your strategy settings, you can enable extended hours trading for your exit orders.

When this setting is combined with an Exit order type of Market, the exit order will be submitted as a market order when the market is open and an extended hours limit order when the market is closed.

Exit Time In Force

By default, TradersPost will send the appropriate time in force of either gtc or day depending on the scenario and broker

Choose the exit time in force to use for exit orders. Your choices are below:

  • Good For Day: The order is valid for the trading day and will be canceled if not executed by the end of the trading day
  • Good Until Cancelled: The order is good until canceled and will remain active until it is executed or canceled.
  • Immediate Or Cancel: The order is immediate or canceled, meaning it must be executed immediately or canceled.
  • Fill Or Kill: The order is fill or kill, meaning it must be executed immediately in its entirety or canceled.
Exit Price

Choose what quote price to use as the current market price for exits if the signal does not have a price.

When your signal does not have a price, TradersPost will fetch a quote from the broker and use the configured market price type from the strategy settings instead of using the price from the signal. By default, the Bid-ask midpoint will be used. For example, if you have limit orders configured and you send a signal without a limitPrice, then TradersPost will use the price from the quote.

If you specify a limitPrice, then that value will be used.

{
    "ticker": "AAPL",
    "action": "sell",
    "orderType": "limit",
    "limitPrice": 100
}

Take Profit / Stop Loss

Take Profit

For take profits orders, you can have one of two choices:

  • Take Profit Percent (based on the market price percentage offset of the stock ticker)
  • Take Profit Amount (based on the market price offset of the stock ticker)

Scenario 1:

You send this signal with a take profit % as 5% in your subscription settings.

{
    "ticker": "SPY",
    "action": "buy",
    "quantity": "10",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

You will be entered into a 10 share long with a 10 share limit sell at 693 on SPY.

The take profit % is not based on profit and loss on your portfolio, it's based on the stock ticker market price percentage change. Make sure you understand that we are placing your take profit relative to the price where your stock ticker is trading.

Scenario 2:

You send this signal with a take profit amount as 10 in your subscription settings.

{
    "ticker": "SPY",
    "action": "buy",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

You will be entered into a 50 share long with a 50 share limit sell at 670 on SPY.

The take profit amount is not based on profit and loss on your portfolio, it's based on the stock ticker market price offset. It's up to you to figure out based on the number of shares you're trading and the profit you want to achieve what value to write in the amount field.

Stop Loss

For the stop loss order type, there are three choices:

  • Stop Market
  • Stop Limit
  • Trailing Stop

As far as where the order will be placed relative to your entry, you have two choices:

  • Stop Loss Percent (based on the market price percentage offset of the stock ticker)
  • Stop Loss Amount (based on the market price offset of the stock ticker)

Scenario 1:

You send this signal with a stop loss % as 5% in your subscription settings.

{
    "ticker": "SPY",
    "action": "buy",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

You will be entered into a 50 share long with a 50 share sell (stop market, stop limit, or trailing stop) at 627 on SPY.

The stop loss % is not based on loss on your portfolio, it's based on the stock ticker market price. Make sure you understand that we are placing your stop loss / trailing stop relative to the price where your stock ticker is trading.

Scenario 2:

You send this signal with a stop loss amount as 10 in your subscription settings.

{
    "ticker": "SPY",
    "action": "buy",
    "quantity": "50",
    "price": "660",
    "time": "2025-09-09T14:07:08Z",
    "interval": "5"
}

You will be entered into a 50 share long with a 50 share sell (stop market, stop limit, or trailing stop) at 650 on SPY.

The stop loss amount is not based on profit and loss on your portfolio, it's based on market price on the stock ticker. If you type in 10 it doesn't mean $10 loss on your P/L. It's up to you to figure out based on the number of shares you're trading and the loss you want to limit what value to write in the amount field.

Retry

Retry

When TradersPost executes a trade, the first thing it does is communicate with the broker to fetch the state of the broker account and "plan the trade". This includes fetching current open positions, open orders, account balances, and any other information required to execute the trade. TradersPost then uses this information to determine the plan for executing the trade, which includes deciding whether to cancel any open orders for the ticker, exit the open position if it exists, or enter a new position. If there were any problems communicating with the broker or processing the trade plan, you will see this message.

Here is a list of the available retry settings:

  • Max retries - The maximum number of times the system will retry the trade. If the trade fails after the maximum number of retries, the trade will be marked as failed.
  • Delay in milliseconds - The delay between each retry attempt. The system will wait for this amount of time before retrying the trade.
  • Delay multiplier - The multiplier to apply to the delay between each retry attempt. The system will multiply the delay by this value after each retry attempt. For example, if the delay is set to 1000 milliseconds and the delay multiplier is set to 2, the system will wait 1000 milliseconds before the first retry, 2000 milliseconds before the second retry, 4000 milliseconds before the third retry, and so on.
  • Max delay in milliseconds - The maximum delay between retry attempts. If the delay calculated by the delay multiplier exceeds this value, the system will use this value as the delay.