Automating TradingView Indicator Alerts in TradeStation for Stocks and Futures

7 min read

Last Updated: August 31, 2026  |  Published: May 15, 2025

This guide explains the complete process for automating TradingView indicator alerts in TradeStation using PickMyTrade. Whether you’re trading stocks or futures, this method ensures your alerts trigger live orders seamlessly.

1. Connect Your TradeStation Account #

Before setting up alerts, connect your TradeStation account to PickMyTrade.

Steps: #

  • Click the TradeStation Connection button in the top right corner of PickMyTrade.
  • Enter the following details:
FieldDescription
TradeStation UsernameEnter your TradeStation login ID
EnvironmentSelect Sim (simulation) or Live

Ensure the correct environment is selected to avoid misrouting live trades.

PickMyTrade broker dropdown with TradeStation selected and Environment field showing Sim or Live options

TradeStation Connections modal with username field and Environment dropdown open showing Sim and Live

2. Generate Alerts for TradingView Automation in TradeStation #

Once your TradeStation account is connected:

  • Navigate to Generate Alert in the sidebar.
  • Fill out the required configuration fields (see below).
  • Click Generate Alert to receive your webhook message and URL.
Generate Alert page showing Symbol Details fields for Broker, Alert Type, and Instrument Type

3. Select TradeStation as Your Broker #

  • Broker: TRADESTATION
    Select TradeStation from the broker dropdown list.
Broker dropdown open with TradeStation selected among Rithmic, IB, Tradelocker, and ProjectX options

4. Choose Alert Type for TradingView Indicators #

Two alert types are available:

  • INDICATOR — Use this if you are triggering alerts manually or based on TradingView chart indicators.
  • STRATEGY — Use only if you’re automating a Pine Script strategy.

Example:

  • Alert Type: INDICATOR
Alert Type dropdown open with Indicator selected over Strategy, Broker set to TradeStation

5. Instrument Type #

Select the appropriate instrument type:

  • Futures
  • Stock
  • Options

Example:
If trading MNQZ5 (Micro Nasdaq Futures), select Futures.

Instrument Type dropdown open with Futures selected among Options and Stock choices

6. Enter TradingView Symbol for TradeStation Alerts #

Enter the TradingView symbol (e.g., MNQZ5).

Symbol Details form with TradingView Symbol field filled in as MNQZ5

This field is optional unless you’re using stop-loss types like:

  • Ticks
  • Total Profit / Loss (USD)

7. Order Type and Alert Behavior #

Buy Alert #

If already in a Buy Position:
Triggering a new Buy Alert will add to the current buy position.

If in a Sell Position:
The system will first close the sell position, cancel all open sell orders, then open a new buy position.

All open sell orders will be canceled when a Buy Alert is triggered.


Sell Alert #

If already in a Sell Position:
Triggering a new Sell Alert will add to the current sell position.

If in a Buy Position:
The system will first close the buy position, cancel all open buy orders, then open a new sell position.

All open buy orders will be canceled when a Sell Alert is triggered.


Close Alert #

The system will close all open positions and cancel all open orders.

It will not open any new positions.

Example Configuration:

  • Alert Type: BUY
Order Details Alert Type dropdown open with Buy selected among Sell and Close options

8. Quantity and Risk Settings #

Option A: Quantity #

  • Quantity Type: QUANTITY
  • Quantity Value: 1
    Defines a fixed number of contracts for each trade.
Quantity and Risk Management panel showing the Quantity Value input field

Option B: Risk Percentage #

  • Quantity Type: RISK PERCENTAGE
  • Value: e.g., 2%
    When using Risk Percentage, the system calculates your trade size so that your maximum loss equals a fixed percentage of your total account balance, based on the stop-loss distance.

Quantity and Risk Management panel with Quantity Type set to Risk Percentage and its value field

9. Configure Stop Loss & Take Profit #

When you’re automating TradingView indicator alerts in TradeStation, proper risk management through Stop Loss and Take Profit is essential.

  • Enable Stop Loss / Take Profit: YES
Stop Loss and Take Profit panel with Enable Stop Loss Take Profit toggle set to Yes or No
  • Type:
    • Point / Dollar (From Entry Price)
    • Percentage
    • Price
    • Ticks
    • Total Loss / Profit (USD)

1. Point / Dollar (From Entry Price) #

Define Stop Loss and Take Profit as fixed dollar values added to or subtracted from the entry fill price.


Example — Price Movement Reference #

  • Entry Price: 21,680 (MNQZ5)
  • Stop Loss Input: 100
  • Take Profit Input: 200
Stop Loss and Take Profit settings with Point Dollar mode showing 100 and 200 values and calculated max loss profit

Resulting Price Levels:

  • Stop Loss Price = 21,680 − 100 = 21,580
  • Take Profit Price = 21,680 + 200 = 21,880

These price levels determine when your SL/TP orders will trigger.


Example — Risk/Reward Calculation #

To calculate the actual dollar risk or profit per trade, use the formula below.

Formula:
Result = Value × Lot Size × Quantity


Stop Loss Calculation:

  • Stop Loss (Points): 100
  • Lot Size: 2
  • Quantity: 1

Result:
100 × 2 × 1 = $200.00


Take Profit Calculation:

  • Take Profit (Points): 200
  • Lot Size: 2
  • Quantity: 1

Result:
200 × 2 × 1 = $400.00

Calculation Details popup showing the Result formula with Stop Loss, Lot Size, and Quantity values totaling 200

2. Percentage #

Define Stop Loss and Take Profit as a percentage change from the entry price. This method adjusts SL/TP dynamically as the entry price changes, making it ideal for percentage-based risk management.


Example — Price Level Calculation #

  • Entry Price Of MNQZ5: 21,680
  • Stop Loss Input: 2%
  • Take Profit Input: 4%
Stop Loss and Take Profit percentage mode showing 2 percent stop loss and 4 percent take profit fields

Calculated Price Levels:

  • Stop Loss Price = 21,680 − (21,680 × 0.02) = 21,246.40
  • Take Profit Price = 21,680 + (21,680 × 0.04) = 22,547.20

Example — Risk/Reward Calculation #

To calculate total dollar risk or profit using percentage input:

Formula:
Result = Percentage × Lot Size × Quantity


Stop Loss Calculation:

  • Stop Loss (%): 2
  • Lot Size: 2
  • Quantity: 1

Result:
2 × 2 × 1 = $4.00


Take Profit Calculation:

  • Take Profit (%): 4
  • Lot Size: 2
  • Quantity: 1

Result:
4 × 2 × 1 = $8.00

Formula card showing Stop Loss result calculation of 2 times Lot Size 2 times Quantity 1 equals 4.00
Formula card showing Take Profit result calculation of 4 times Lot Size 2 times Quantity 1 equals 8.00

3. Price (From TradingView Plot) #

Use values directly from TradingView plots or variables like {{plot_0}}, {{plot_1}}, etc.

  • Stop Loss Input: {{plot_1}}
  • Take Profit Input: {{plot_0}}

9.3.5 Understanding {{plot_x}} Variables in TradingView #

In TradingView, placeholders like {{plot_0}}, {{plot_1}}, {{plot_2}}, etc., are automatically generated when you create an alert based on an indicator. These represent different values plotted by the indicator on your chart.

Placeholder Reference: #

  • {{plot_0}} — The first plotted value from the indicator
  • {{plot_1}} — The second plotted value
  • {{plot_2}} — The third, and so on

How They Work for Stop Loss & Take Profit #

Let’s say your custom indicator plots two key levels:

  • A Stop Loss level
  • A Take Profit level

In that case:

  • Stop Loss might be represented as {{plot_1}}
  • Take Profit might be represented as {{plot_2}}

These placeholders allow you to send dynamic values with each alert — no need to manually hard-code prices like 21,691.

Stop Loss and Take Profit Price mode with TradingView placeholder variables plot_1 and plot_2 fields

Example Setup — Using MNQZ5 #

Let’s assume:

  • Symbol: MNQZ5
  • Entry Price: 21,680

Your indicator is configured to plot the following:

  • Stop Loss Level = 21,591
  • Take Profit Level = 21,891

These will map as:

  • {{plot_1}} = 21,591 (Stop Loss)
  • {{plot_2}} = 21,891 (Take Profit)

Alert Message Example in TradingView: #

Stop Loss: {{plot_1}}, Take Profit: {{plot_2}}

Actual Message Received When Triggered: #





Stop Loss: 21,591, Take Profit: 21,891

Important Notes #

  • The first plotted value in your indicator will always be {{plot_0}}.
  • The second plotted line becomes {{plot_1}}, the third {{plot_2}}, and so on — based on the order in your Pine Script.

Make sure your TradingView indicator has clear and correctly ordered plot() functions if you’re relying on this structure for automated SL/TP placement via PickMyTrade.ur indicator will always be accessible as {{plot_0}}.

4. Ticks #

When using the Ticks method for Stop Loss and Take Profit, you define the distance from the entry price in ticks instead of fixed price levels or percentages. This is especially relevant in futures trading, where tick size and tick value are standardized per instrument.

To use this method correctly, make sure:

  • The symbol is specified
  • The tick size and lot size are properly configured

Example Configuration #

  • Symbol: MNQZ5 (Micro Nasdaq Futures)
  • Entry Price: 21,680
  • Tick Size: 0.25
  • Lot Size: 2
  • Quantity: 1
  • Stop Loss Ticks: 500
  • Take Profit Ticks: 1000
Stop Loss and Take Profit Ticks mode with 500 ticks for SL and 1000 ticks for TP

Price Level Calculation #

Step 1: Convert Ticks to Points

  • Stop Loss in Points = 500 × 0.25 = 125 points
  • Take Profit in Points = 1000 × 0.25 = 250 points

Step 2: Calculate SL and TP Price Levels

  • Stop Loss Price = 21,680 − 125 = 21,555
  • Take Profit Price = 21,680 + 250 = 21,930

These levels define where your stop and target orders will be placed relative to the entry.


Dollar Value Calculation #

To estimate how much money is at risk or can be gained per trade, use this formula:

Formula:
Result = Tick Count × Lot Size × Min Tick × Quantity


Stop Loss Calculation #

  • Stop Loss Ticks: 500
  • Lot Size: 2
  • Min Tick: 0.25
  • Quantity: 1

Calculation:
500 × 2 × 0.25 × 1 = $250.00


Take Profit Calculation #

  • Take Profit Ticks: 1000
  • Lot Size: 2
  • Min Tick: 0.25
  • Quantity: 1

Calculation:
1000 × 2 × 0.25 × 1 = $500.00


Summary #

Total Reward per Trade: $500.00

Stop Loss Price: 21,555

Take Profit Price: 21,930

Total Risk per Trade: $250.00

Formula card showing Stop Loss Ticks calculation of 500 times Lot Size, Min Tick, and Quantity equals 250.00
Formula card showing Take Profit Ticks calculation of 1000 times Lot Size, Min Tick, and Quantity equals 500.00

9.5 Total Profit / Loss (USD) #

Order Configuration #

This method allows you to define Stop Loss and Take Profit as fixed dollar values per contract, regardless of price or tick movement.


Example Configuration: #

  • Stop Loss per Contract: $300
  • Take Profit per Contract: $600
  • Quantity: 1 contract
Stop Loss and Take Profit Total Profit Loss mode with 300 dollar loss and 600 dollar profit per contract

How It Works: #

  • Total Loss = $300 × 1 = $300
  • Total Profit = $600 × 1 = $600

Once the loss or profit reaches the defined USD threshold per contract, the position is closed.


Point Movement for Reference (Optional) #

Assuming:

  • The asset moves $1 per point
  • Entry Price of MNQZ5: 21,680

Then:

  • SL in Points = $300 ÷ $1 = 300 points
  • TP in Points = $600 ÷ $1 = 600 points
  • Stop Loss Price = 21,680 − 300 = 21,380
  • Take Profit Price = 21,680 + 600 = 22,280
Formula card showing Total Stop Loss calculation of 300 times Quantity 1 equals 300.00
Formula card showing Total Take Profit calculation of 600 times Quantity 1 equals 600.00

10. Connect and Manage TradeStation Accounts #

This section explains how to add your TradeStation account to PickMyTrade for automated execution. You can either connect your TradeStation login within your current PickMyTrade account or link it across multiple PickMyTrade accounts.


11.1 Add TradeStation Account in Current PickMyTrade Account #

Use this option if your TradeStation login is already connected to the same PickMyTrade account you’re currently using.

Field NameExample InputExplanation
PickMyTrade Conn. NameTRADESTATION1Select the correct TradeStation connection name from the dropdown.
TRADESTATION Acc. NameTS001928Choose your TradeStation account from the dropdown (must be linked).
OptionQUANTITY MULTIPLIERChoose your preferred position sizing method.
Qty Multiplier1A multiplier of 1 sends exact quantity. 2 would double trade size, etc.
Add Trading Account modal with Indicator Name RSI, Sub-account selected, and TradeStation connection fields

Click Add Account and Confirm & Generate Alert. Make sure your TradeStation connection is active and verified in the account.


11.2 Add TradeStation Account in Another PickMyTrade Account #

Use this setup if you want to send trades into a different PickMyTrade account — useful when managing multiple logins.

Field NameExample InputExplanation
PickMyTrade Tokenabc123xyz098Token from the target PickMyTrade account you want to connect to.
PickMyTrade Conn. NameTRADESTATION1Must match the TradeStation connection name inside that target account.
TRADESTATION Acc. NameTS002091Enter the exact TradeStation account name as shown in the TradeStation terminal.
OptionQUANTITY MULTIPLIERSame sizing logic as above.
Qty Multiplier1Multiply trade quantity by this value (1 = unchanged, 2 = double, etc.)
Add Trading Account modal with Another TradeStation Login selected and PickMyTrade Token field

Ensure the PickMyTrade token is copied accurately and the TradeStation connection exists in the destination account. Execution will fail if the mapping is incorrect.


11.3 Generate Alert Code for Indicator Execution

Once all accounts are added and configured, click Confirm & Generate Alert button.

Add Trading Account modal with one account queued and the Confirm and Generate Alert button

Final Step – Generate Alert and Copy to TradingView #

Click on “Confirm & Generate Alert” #

After generating the alert, you’ll receive a JSON payload.

Added TradeStation Accounts table with Generate Alert button and the resulting JSON webhook payload

Next, follow the link below to learn how to set up your TradingView alert for automated trading:

Setting Up TradingView Alerts for Automated Trading

In summary, automating TradingView indicator alerts in TradeStation gives traders full control over real-time execution based on custom alerts or technical indicators from TradingView. If you’re serious about consistency in execution, automating TradingView indicator alerts in TradeStation can eliminate delays and human error completely.

More Resources #

Want to automate trades on platforms beyond Rithmic, such as Interactive Brokers, TradeLocker, TradeStation, or ProjectX?
Explore all PickMyTrade setup guides

Using Tradovate instead?
View the Tradovate automation guide

Last updated: August 31, 2026

For AI tools & developers:View Markdown →

What are your feelings

  • Happy
  • Normal
  • Sad
Rated 4.6/5 by 83+ traders on Trustpilot
Markdown version