TradeStation Help

Command Line Reference (Sorted by Application)

Following is reference for TradeStation commands, organized by application. For a comprehensive list of all TradeStation commands listed alphabetically, see Command Line Reference (All Commands).

For each command, the long format is given first, followed by the short format, any parameters, and a description of the commands behavior.

Chart Analysis Commands

Commands must be preceded with a period (.) with the exception of symbols and intervals. Chart Analysis commands will be applied to Data1 or the selected symbol, unless otherwise applicable.

Long

Short

Parameter

Description

View menu

 

 

 

.DataWindow

.DW

 

Displays or hides the Data window.

.OptimizationReport

.OPTR

 

Displays the Strategy Optimization Report.

.PerformanceReport

.PR

 

Displays the Strategy Performance Report.

.Preferences

.PREF

 

Displays the Chart Analysis Preferences dialog.

.InsertAnalysisGroup <p>

.IAG <p>

<analysis group>

(Optional)

Inserts the specified analysis group. If an analysis group is not specified, the Insert Analysis Groups dialog will display.

.InsertAnalysisTechnique <p>

.IAT <p>

<analysis technique>

(Optional)

Inserts the specified analysis technique. If the specified name is shared by both an analysis technique and a strategy, the analysis technique will be inserted.

If an analysis technique is not specified, the Insert Analysis Techniques dialog will open to the tab that was last referenced.

.InsertStrategy <p>

.IST <p>

<strategy>

(Required)

Inserts the specified Strategy.

.InsertSymbol <p>

.ISY <p>

<symbol>

(Optional)

Inserts the specified symbol as the next available data stream, in the next available sub-graph.

If a symbol is not specified, the Insert Symbol dialog will open.

.TMPerformanceReport

.TMPR

 

Opens or closes the TradeManager Performance Report.

Format menu

 

 

 

.AutoScaleRange

.ASR

 

Sets Scale Range to 'Automatic' for the selected object.

.AutoScaleRangeScreen

.ASRS

 

Sets Automatic Scale Range to 'Date Range on Screen', using the last 'Based on' selection or, if not applicable, then the default 'Based on' selection.

.AutoScaleRangeEntire

.ASRE

 

Sets Automatic Scale Range to 'Entire Date Range'.

.AutoScaleRangePercent

.ASRP

 

Sets Automatic Scale Range to 'Percent Below/Above Last', based on the values in the Below/Above edit boxes.

.AutoScaleRangePercentBelow <p>

.ASRPB <p>

<number>

(Required)

Sets Automatic Scale Range to 'Percent Below/Above Last' and provides the 'Below' value as a required parameter.

.AutoScaleRangePercentAbove <p>

.ASRPA <p>

<number>

(Required)

Sets Automatic Scale Range to 'Percent Below/Above Last' and provides the 'Above' value as a required parameter.

.AxisIncrement <p>

.AI <p>

<number>

<Auto>

<Automatic>

(Required)

Sets the Custom Axis Increment to a specified numeric value or clears the setting with 'Auto' or 'Automatic'.

.Bar <p>

.Bars <p>

.BAR <p>

.BARS <p>

<bars>

(Required)

Changes the number of bars of historical data loaded.

.BarSpacing <p>

.BS <p>

<pixels>

(Required)

Sets the spacing between bars based on the specified number of pixels.

.BarSpacing <+><p>

.BarSpacing <-><p>

.BS <+><p>

.BS <-><p>

<pixels>

(Required)

Increases or decreases the spacing between bars based on the specified number of pixels.

.BoxSize <p>

.BSIZE <p>

<number>

(Required)

Sets the box size for a Point & Figure chart. This parameter may be a decimal.

.CenterLastPrice <p>

.CLP <p>

<on  or  off>

(Required)

Changes the centering of the last price if Scale Range is set to an Automatic setting other than 'Percent Below/Above Last'. The word 'on' or 'off' must be used.

.CustomRenko

.CMRenko

<brick size>

(Optional)

<brick offset>

(Optional)

Ex. .CMRenko ".8, .2"

Sets the chart to a Custom Renko chart using bricks that represent a fixed size and a brick offset that is also a fixed size, using specified parameters. Default parameters are used, if not specified.

.Daily

.D

 

Changes the interval to Daily.

.Day <p>

.Days <p>

.DAY <p>

.DAYS <p>

<days>

(Optional)

Changes the amount of historical data to the specified number of days.

.FirstDate <p>

.FD <p>

<mm/dd/yyy>

(Required)

Sets the first date of the symbol.

.Fixed

.FIXED

 

Enables Fixed scaling using current values.

.FixedMin <p>

.FMin <p>

<number>

(Required)

Specifies the Min value for Fixed scaling and automatically turns on Fixed scaling.

.FixedMax <p>

.FMax <p>

<number>

(Required)

Specifies the Max value for Fixed scaling and automatically turns on Fixed scaling.

.FormatAnalysisTechniques

.FAT

 

Opens the Format Analysis Techniques & Strategies dialog to the Analysis Techniques tab.

.FormatStrategies

.FST

 

Opens the Format Analysis Techniques & Strategies dialog to the Strategies tab.

.IncludeAnalysisTechnique <p>

.IncAT <p>

<on  or  off>

(Required)

Toggles the Expand Range to Include Analysis Techniques setting in the Automatic Scale Range calculations. The word 'on' or 'off' must be used as a parameter.

.IncludeOpenOrderLines <p>

.IncOOL <P>

<on  or  off>

(Required)

Toggles the Expand Range to Include Account Open Order Lines setting in the Automatic Scale Range calculations. The word 'on' or 'off' must be used as a parameter.

.Kagi

.Kagi

(Optional)

Parameter details

Ex. .Kagi"2, price, 1min"

Sets the chart to Kagi, which creates a reversal amount that can be specified as a fixed price or percentage using the specified parameters. Default parameters are used, if not specified.

.KagiInterval

.KInt

<Daily>

<Weekly>

<Monthly>

<x tick>

<x ticks>

<x minute>

<x minutes>

<x min>

(x is an integer)

(Required)

 

Changes the interval currently used by a Kagi chart. The following intervals are accepted as parameters:

daily, weekly, monthly, <x> tick, <x> ticks, <x> minute, <x> minutes, and <x> min.

.KagiReversal

.KRev

<reversal amount>

<reversal type>

(Required)

Ex. KRev"2,%"

Changes the reversal amount and type of reversal for a Kagi chart.

.KaseBar

.KBar

(Optional)

Parameter details

Ex. KaseBar "2, 1 min"

Sets the chart to Kase Bar, which creates bars with a true range based on a user's specified Target Range value. Kase Bars can use specified parameters or the default parameters if none are specified.

.KaseBarInterval

.KBInt

<target range>

<interval>

<x> tick

<x> minute

<x> min

Ex. .KaseBarInterval 1 min

Changes the interval of the underlying data of a Kase Bar chart.

.KaseBarRange

.KBRng

<range amount>

Ex. 1, 1.5, 2, etc.

(Required)

 

Ex.KaseBarRange 2

Changes the target range value for a Kase Bar chart.

.LastDate <p>

.LD <p>

<mm/dd/yyyy>

(Required)

Sets the last date of the symbol.

.LineBreak

.LB

(Optional)

Parameter details

Ex. .LineBreak "2, 1 min"

Sets the chart to a Line Break which is made up of a series of vertical blocks called lines which use closing prices to indicate market direction by specified parameters. Default parameters are used, if not specified.

.LineBreakInterval

.LBInt

<daily>

<weekly>

<monthly>

<x tick>

<x ticks>

<x minute>

<x minutes>

<x min>

(x is an integer)

(Required)

Changes the interval currently used by a Line Break chart. The following intervals are accepted as parameters:

daily, weekly, monthly, <x> tick, <x> ticks, <x> minute, <x> minutes, and <x> min.

.LineBreakNumber

.LBNum

<value>

(Required)

Ex. .LBNum 2

Changes the number of line breaks for a Line Break chart.

.LowerMargin <p>

.LM <p>

<number>

<Required>

Specifies the Lower margin value as a percentage.  This automatically turns on the upper/lower margin setting.

.Margins <p>

 

<on  or  off>

(Required)

Turns the display of upper/lower margins in the sub-graph either 'on' or 'off''.  The Upper and Lower margin values will be based on the last or default settings.

.MeanRenko

.MNRenko

<brick size>

(Optional)

Ex. .mnrenko .5

Sets the chart to a Mean Renko chart using bricks that represent a fixed size and a brick offset that is equal to half of the brick size, using specified parameters. Default parameters are used, if not specified.

.Minute <p>

.Minutes <p>

.MIN <p>

.MINS <p>

<minutes>

(Required)

Changes the interval to the specified number of minutes.

.MomentumBar

.MBar

(Optional)

Parameter details

Ex. .MomentumBar "2, 1 min"

Sets the chart to a Momentum Bar which chart as standard vertical bars, yet each bar has a specified price range by using specified parameters. Default parameters are used, if not specified.

.MomentumBarInterval

.MBInt

<Daily>

<Weekly>

<Monthly>

<x tick>

<x ticks>

<x minute>

<x minutes>

<x min>

(x is an integer)

(Required)

Changes the interval currently used by a Momentum Bar chart. The following intervals are accepted as parameters:

daily, weekly, monthly, <x> tick, <x> ticks, <x> minute, <x> minutes, and <x> min.

.MomentumBarRange

.MBRng

<range amount>

(Required)

Ex. MBRng 2

Changes the range amount for a Momentum Bar chart.

.Month <p>

.Months <p>

.MTH <p>

.MTHS <p>

<months>

(Optional)

Changes the amount of historical data to the specified number of months.

.Monthly

.M

 

Changes the interval to Monthly.

.PercentChange

.PC

 

Toggles the percent change chart on and off, based on the first bar of the chart.

.PointAndFigure

.PF

(Optional)

Parameter details

Ex. PF".5, 3, 5 min, C, off"

Sets the chart to Point & Figure which focuses on price changes by eliminating time and volume by using specified parameters for box size and reversal. Default parameters are used, if not specified.

.PointAndFigureInterval <p>

.PFI <p>

<Daily>

<1 tick>

<1 minute>

<5 minutes>

<15 minutes>

<60 minutes>

(Required)

Changes the interval currently used by a Point & Figure chart. The following intervals are accepted as parameters: Daily, 1 tick, 1 minute, 5 minutes, 15 minutes, and 60 minutes.

.RangeBar

.RBar

<Range Amount>

<Interval>

 

(Optional)

Parameter details

Ex. .RangeBar "2, 1 min"

Sets the chart to Range Bar which focuses only on price change; not time by using specified parameters. Default parameters are used, if not specified.

.RangeBarInterval

.RBInt

<Daily>

<Weekly>

<Monthly>

<x tick>

<x ticks>

<x minute>

<x minutes>

<x min>

(x is an integer)

(Required)

Ex. RBInt 5 min

Changes the interval currently used by a Range Bar chart. The following intervals are accepted as parameters:

daily, weekly, monthly, <x> tick, <x> ticks, <x> minute, <x> minutes, and <x> min.

.RangeBarRange

.RBRng

<value>

(Required)

Ex: .RBRng 2

Changes the range amount for the Range Bar chart.

.Renko

 

<brick size>

(Optional)

Ex. .Renko .5

Sets the chart to a Classic Renko chart using bricks that represent a fixed size, using specified parameters. Default parameters are used, if not specified.

.Reversal <p>

.REV <p>

<number>

(Required)

Sets the reversal size for a Point & Figure chart.

.Right <p>

.R <p>

<spaces>

(Required)

Sets the space to the right of the chart based on the number specified.

.Right <+><p>

.Right <-><p>

.R <+><p>

.R <-><p>

<spaces>

(Required)

Increases or decreases the number of spaces to the right of the chart based on the number specified.

.ScaleType <p>

.ST <p>

<Linear>

<Log  or  Semi-log>

(Required)

Sets the Scale Type that should be used for the selected object to either Linear or Log.

.ScrollBar

.SCROLL

 

Toggles the scroll bar on and off for the active window.

.Session <p>

.SESS <p>

<session>

(Required)

Sets the session to be used.

.Second <p>

.Seconds <p>

.SEC <p>

.MINS <p>

<seconds>

(Required)

Changes the interval to the specified number of seconds.

.SessionBreak

.SB

 

Toggles the session break lines on and off for the active window.

.Share <p>

.Shares <p>

.SHARE <p>

.SHARES <p>

<shares>

(Required)

Changes the interval to the specified number of shares.

.Tick <p>

.Ticks <p>

.T <p>

<ticks>

(Required)

Changes the interval to the specified number of ticks.

.UpperMargin <p>

.UM <p>

<number>

<Required>

Specifies the upper margin value as a percentage.  This automatically turns on the upper/lower margin setting.

.Week <p>

.Weeks <p>

.WK <p>

.WKS <p>

<weeks>

(Optional)

Changes the amount of historical data to the specified number of weeks.

.Weekly

.W

 

Changes the interval to Weekly.

.Year <p>

.Years <p>

.YR <p>

.YRS <p>

<years>

(Optional)

Changes the amount of historical data to the specified number of years.

Desktop Commands

Commands must be preceded with a period (.) with the exception of symbols and intervals. Desktop commands are available from all windows in the TradeStation Desktop. For more information on the TradeStation Desktop, see About the Desktop.

Long

Short

Parameter

Description

File menu

 

 

 

.Close

.C

 

Closes active workspace.

.CloseDesktop

.CDT

 

Closes the active desktop.

.MaximizeAllDesktops

 

 

Maximizes the desktop window from the restored position.

.MinimizeAllDesktops

 

 

Minimizes the desktop window from the restored and/or maximized position.

.NewChart

.NC

 

Creates a new Chart Analysis window.

.NewDesktop

.NDT

 

Creates a new untitled desktop.

.NewHotList

.NHL

 

Creates a new Hot Lists window.

.NewInternetBrowser

.NIB

 

Creates a new Internet Browser window.

.NewMatrix

.NM

 

Creates a new Matrix window.

.NewNews

.NN

 

Creates a new News window.

.NewRadarScreen

.NRS

 

Creates a new RadarScreen window.

.NewTimeAndSales

.NTS

 

Creates a new Time & Sales window.

.NewWindow

.NW

 

Opens the New Window dialog.

.NewWorkspace

.NWS

 

Creates a new workspace.

.Offline

.OFFL

 

Disconnects you from the TradeStation Network so you can work offline.

.Online

.ONL

 

Displays the TradeStation Network Logon dialog so you can work online.

.Open <p>

.O <p>

<workspace>

(Optional)

Opens the specified workspace.

.OpenDesktop

.ODT

<desktop>

Opens a desktop.

.PositionGraphBar

.PGB

 

Toggles the position graph bar to display/hide.

.Print

.P

 

Prints the active window.

.Run <p>

 

<executable file>

(Required)

Executes the instructions typed in. A file name is required but the path is optional.

.Save

.S

 

Saves the active workspace.

.SaveAll

.SALL

 

Saves all workspaces.

.SaveAllDesktops

.SADT

<desktop>

Saves all desktops.

.SaveAs <p>

.SAS <p>

<workspace>

(Optional)

Saves the active workspace with a different name.

.SaveDesktop

.SDT

<desktop>

(Optional)

Saves the specified desktop.

.Workspace Tabs

 

 

Toggles to display or hide the workspace tab.

View menu

 

 

 

.ELOutputBar

.ELO

 

Displays the EasyLanguage Print Log.

.LaunchMessageCenter

.LMC

 

Launches the Message Center window.

.LaunchQuickQuote

.LQQ

 

Launches the Quick Quote window.

.LaunchTicker

.LT

 

Launches the Ticker Bar.

.NewQuickTradeBar

.NQTB

 

Launches the Quick Trade Bar.

.OrderBar

.OB

 

Displays the Order Bar.

.StatusBar

.STATUS

 

Displays the Status Bar.

.TitleBar

.TB

 

Toggles the nonactive window's title bar to display/hide. Displays active window's title bar.

.TitleBarAll

.TBA

 

Toggles the active window's title bar to display/hide.

Help menu

 

 

 

.Help

.H

 

Opens TradeStation Platform Help.

Hot Lists Commands

Commands must be preceded with a period (.) with the exception of symbols and intervals.

Long

Short

Parameter

Description

.InsertColumn <p>

.IC <p>

<column>

(Optional)

Inserts the specified column. If a column is not specified, the Insert Column window will open.

.Refresh

.RF

 

Refreshes/reloads the active window.

Matrix Commands

Commands must be preceded with a period (.) with the exception of symbols and intervals.

Long

Short

Parameter

Description

.AxisIncrement

.AI

<number>

<MM>

(Required)

Sets the Custom Axis Increment to a specified numeric value or resets to Minimum Move with 'MM'.

.GraphDepth

.GD

 

Sets the graph to display depth.

.GraphSize

.GS

 

Sets the graph to display size.

News Commands

Commands must be preceded with a period (.) with the exception of symbols and intervals.

Long

Short

Parameter

Description

.InsertKeyword <p>

.IK <p>

<keyword(s)>

(Optional)

Appends the specified keyword to the selected keyword filter. The keyword must be preceded by AND, OR, or NOT to connect it to the original keyword(s). For example, to add "textiles" to an existing keyword filter, the parameter would appear as follows: <AND textiles>.

If a keyword is not specified, the Format Filter window will open.

.InsertSymbol <p>

.ISY <p>

<symbol>

<symbol,symbol>

(Optional)

Appends the specified symbol to the selected symbol filter. If a symbol is not specified, the News Filter window will open.

.InsertSymbolList <p>

.ISYL <p>

<symbol list>

(Optional)

Appends the specified symbol list to the selected symbol list filter. If a symbol list is not specified, the  News Filter window will open.

.NewHeadlinesFilter

.NHF

 

Inserts a new All Headlines filter.

.NewKeywordFilter <p>

.NKF <p>

<keyword(s)>

(Optional)

Inserts a new keyword filter based on the specified keyword(s). If a keyword is not specified, the News Filter window will open.

.NewSymbolFilter

.NSF <p>

<symbol list>

(Required)

Inserts a new symbol filter based on the specified symbol.

.Refresh

.RF

 

Refreshes/reloads the active window.

Order Execution Commands

Commands must be preceded with a period (.) with the exception of symbols and intervals.

Long

Short

Parameter

Description

.CancelAllOrders

 

 

Cancels all open orders.

.CancelAllOrdersSymbolAccount

.CAOSA

<symbol>

<account>

(Required)

Cancels all open orders for a specific account and symbol

Command details

.CancelLastOrder

 

 

Cancels the last order sent.

.CancelOrder

 

 

Cancels all orders using the OrderName alias.

.CancelReplaceSelected

.CRS

 

Enters the selected open order on the Orders tab into the Order Bar.  

Command details

.CancelReplaceSelectedMarket

.CRSM

 

Executes the Send Now - Replace this order as a Market Intelligent order for the selected open order on the Orders tab.

.CancelReplaceSelectedPrice

.CRSP

<parameter>

Parameter details

(Required)

Replaces the selected open order on the Orders tab with the parameter.  

Command details

.CancelReplaceSelectedQuantity

.CRSQ

<quantity>

(Required)

Replaces the selected open order on the Orders tab with the new quantity.

.CancelReplaceLast

.CRL

 

Enters the selected open order on the Orders tab into the Order Bar.

Command details

.CancelReplaceLastMarket

.CRLM

 

Executes the Send Now - Replace this order as a Market Intelligent order for the last open order.

.CancelReplaceLastPrice

.CRLP

<value>

(Required)

Replaces the last open order with the new price or min move.

Command details

.CancelReplaceLastQuantity

.CRLQ

<quantity>

(Required)

Replaces the last open order with the new quantity.

.CloseAllPositions

 

 

Closes all open positions

.ClosePosition

.CPOS

<symbol>,

<account>

(Required)

Closes the Close Position window.

.DecreasePrice

 

 

Decreases the order price by the default increment.

.DecreaseQuantity

 

 

Decreases the order quantity by the default increment.

.DecreaseStopPrice

 

 

Decreases the stop order price by the default increment.

.IncreasePrice

 

 

Increases the order price by the default increment.

.IncreaseQuantity

 

 

Increases the order quantity by the default increment.

.IncreaseStopPrice

 

 

Increases the stop order price by the default increment.

.PlaceOrder

 

<action>,

<symbol>,

<quantity>,

<limit>,

<duration>,

<route>

<account>

<advanced>

Parameter details

(Required)

Allows orders to be placed from macros or EasyLanguage using the provided parameters.

Command details

.ReversePosition

 

<symbol>,

<account>,

<OSO Template>

(Required/Optional)

Reverses a position for a specific account and symbol with an optional Bracket OSO Template.

RadarScreen Commands

Commands must be preceded with a period (.) with the exception of symbols and intervals.

Long

Short

Parameter

Description

File menu

 

 

 

.Find <p>

.FIND <p>

<search word>

(Optional)

Opens the Find window for the specified word. If a word is not specified, the Find window opens blank.

.PageDelete

.PD

 

Deletes the selected page.

View menu

 

 

 

.Preferences

.PREF

 

Opens the RadarScreen Preferences window.

.ReferenceRows

.RR

 

Toggles the references rows on and off.

.Refresh

.RF

 

Refreshes/reloads the currently selected cell.

Insert menu

 

 

 

.InsertIndicatorColumn <p>

.IIC <p>

<column>

(Optional)

Inserts the specified indicator column. If a column is not specified, the Insert Indicator Columns dialog will open.

.InsertSymbol <p>

.ISY <p>

<symbol>

(Optional)

Inserts the specified symbol. If a symbol is not specified, the Insert Symbol dialog will open.

.InsertSymbolList <p>

.ISYL <p>

<symbol>

(Optional)

Inserts the specified symbol list. If a symbol is not specified, the Insert Symbol List dialog will open.

.LabelRow <p>

.LR <p>

<label row text>

(Required)

Inserts a label row containing the specified text.

.PageInsert

.PI

 

Inserts a new RadarScreen page.

Format menu

 

 

 

.PageRename

.PRN

 

Rename the active RadarScreen page.

.Session <p>

.SESS <p>

<session>

(Required)

Sets the session to be used.

.UpdateIndication

.UI

 

Toggles the update indication on and off.

Scanner Commands

Commands must be preceded with a period (.) with the exception of symbol names and interval/range commands. 

Long

Short

Parameter

Description

.NewScanner

.NSCN

 

Creates a new Scanner LaunchPad window.

.Preferences

.PREF

 

Displays the Preferences dialog.

Time & Sales Commands

Commands must be preceded with a period (.) with the exception of symbol names and interval/range commands.

Long

Short

Parameter

Description

.Ask

.ASK

 

Toggles the display of Ask prices on and off.

.Bid

.BID

 

Toggles the display of Bid prices on and off.

.Minute <p>

.Minutes <p>

.MIN <p>

.MINS <p>

<minutes>

(Required)

Displays the number of specified minutes past.

.Refresh

.RF

 

Refreshes/reloads the active window.

.Tick <p>

.Ticks <p>

.TICK <p>

.TICKS <p>

<ticks>

(Required)

Displays the number of specified ticks past.

.TickDay

.TicksDay

.TDAY

 

Displays all of the ticks for the day.

.Trade

.TRD

 

Toggles the display of Trade prices on and off.

TradeManager Commands

Commands must be preceded with a period (.) with the exception of symbol names and interval/range commands.

Long

Short

Parameter

Description

.CancelReplaceSelected

.CRS

 

Enters the selected open order on the Orders tab into the Order Bar.

Command details

.CancelReplaceSelectedMarket

.CRSM

 

Executes the Send Now - Replace this order as a Market Intelligent order for the selected open order on the Orders tab.

.CancelReplaceSelectedPrice <p>

.CRSP

<parameter>

Parameter details

(Optional)

Replaces the selected open order on the Orders tab with the parameter.

Command details

.CancelReplaceSelectedQuantity <p>

.CRSQ

<quantity>

(Required)

Replaces the selected open order on the Orders tab with the new quantity.

.CancelReplaceLast

.CRL

 

Replaces the selected open order on the Orders tab into the Order Bar.

Command details