Automating TradingView Strategies for Options in TradeStation

4 min read

1. Introduction #

This guide provides a step-by-step setup for automating equity options trading using a TradingView strategy, routed through PickMyTrade, and executed in TradeStation. It covers everything from broker connection to strike and expiry settings, SL/TP configuration, and multi-account trade execution.

2. Broker Selection #

  • Broker: Select TradeStation from the PickMyTrade broker list.
  • Ensure your TradeStation account is connected and authorized via secure login or API credentials.

3. Alert Type #

Alert Type Options # #

Alert TypeDescription
INDICATORAlerts based on technical indicators (e.g., RSI, Moving Averages).
STRATEGYAlerts based on predefined trading strategies in TradingView.

We have selected INDICATOR as our preferred alert type.


4. Instrument Type #

Select the appropriate instrument type based on what you’re trading:

  • Stocks – For equity shares like AAPL, MSFT, etc.
  • Futures – For standard futures contracts like MNQ, ES, etc.
  • Options – For equity options like AAPL Calls and Puts.

In this setup, we are selecting Options because we are automating trades for AAPL options.


5. Option Type #

SettingExplanationExample
CallExpecting the stock price to rise.Buying an AAPL Call when the stock price is at $150, expecting it to go higher.
PutExpecting the stock price to fall.Buying a TSLA Put when the stock price is at $700, expecting it to drop.

6. Order Strike Away #

Strike Price Settings (Updated for AAPL @ $212.15) #

SETTINGEXPLANATIONEXAMPLE (AAPL @ $212.15)
Strike AwayDefines how far the strike is from the market price.Strike Away: 2 → Call strike: 214.15, Put strike: 210.15
At-the-Money (ATM)Strike price is closest to the market price.Call & Put strike: 212.5
In-the-Money (ITM) CallsStrike below the market price (option has intrinsic value).ITM Call strikes: 210, 207.5, 205…
In-the-Money (ITM) PutsStrike above the market price (option has intrinsic value).ITM Put strikes: 215, 217.5, 220…
Out-of-the-Money (OTM) CallsStrike above the market price (no intrinsic value).OTM Call strikes: 215, 217.5, 220…
Out-of-the-Money (OTM) PutsStrike below the market price (no intrinsic value).OTM Put strikes: 210, 207.5, 205…

Visual Reference (from screenshot):

  • AAPL Last Price: 212.15
  • Closest strike: 212.5
  • Call Bid/Ask at 212.5: 2.61 / 2.64
  • Put Bid/Ask at 212.5: 2.13 / 2.16

7. Option Expiry Date #

Select relative expiry using the current date for reference (e.g., May 14, 2025):

8. Option Expiry Date # #

Expiry TypeEasy ExplanationExample (AAPL Call Option, Today is May 14, 2025)
Current DayEnds today, May 14, 2025.Buy call option, expires at close of May 14, 2025.
Next DayEnds tomorrow, May 15, 2025.Buy call option, expires at close of May 15, 2025.
Day After TomorrowEnds in 2 days, May 16, 2025.Buy call option, expires at close of May 16, 2025.
Current WeekEnds this week, May 16, 2025.Buy call option, expires at close of May 16, 2025.
Next WeekEnds next week, May 23, 2025.Buy call option, expires at close of May 23, 2025.
Current MonthEnds this month, May 30, 2025.Buy call option, expires at close of May 30, 2025.
Next MonthEnds next month, June 28, 2025.Buy call option, expires at close of June 28, 2025.

8.TradingView Symbol (Optional) #

  • TradingView Symbol: AAPL
  • Use Case: Only required when your Stop Loss type is based on:
    • Ticks
    • Total Loss
  • This field connects your TradingView strategy to the correct instrument for SL calculations.

9. Strategy Type #

Confirm Exit Handling

QuestionAnswer
Does your strategy have multiple exits like TP1, TP2?No
Would you like to place SL/TP with each order in TradeStation?Yes

If your strategy supports multiple take-profits, PickMyTrade can execute them, but only one TP/SL can be attached to entry orders per TradeStation’s limitation.

If No, you must manually configure SL/TP inside PickMyTrade.

Stop Loss / Take Profit / Breakeven Type: Refer to the SL/TP configuration section for detailed settings.  Click here.


10. Account Selection and Configuration for TradeStation #

Would you like to add multiple accounts or select a specific account for trade execution?
Yes

Upon selecting Yes, additional configuration fields become visible to connect your TradeStation accounts and define execution parameters.

10.1 Add TradeStation Account to Current PickMyTrade Login #

Field NameExample InputExplanation
PickMyTrade Conn. NameTRADESTATION1Choose the correct connection name from the dropdown.
TradeStation Acc. NameSIM155568455MSelect your TradeStation account.
OptionQUANTITYMULTIPLIERChoose your sizing method.
Qty Multiplier1If multiplier is 2, a trade for 5 contracts becomes 10.

10.2 Add TradeStation Account to Another PickMyTrade Account #

This is useful when managing trades from one account into another PickMyTrade login.

Field NameExample InputExplanation
PickMyTrade Tokenabcd1234xyzThe token from the target PickMyTrade account.
PickMyTrade Conn. NameTRADESTATION1Same as used in the target account.
TradeStation Acc. NameSIM155568455MEnter exactly as it appears in TradeStation.
OptionQUANTITYMULTIPLIERChoose the sizing method.
Qty Multiplier1Multiplies all trade quantities as needed.

Ensure the connection name and token match exactly, or trade execution may fail.

What are your feelings

  • Happy
  • Normal
  • Sad