Action Command Rules
Action commands will perform a specific desktop or window action.
Syntax: .actionname <parameter1> <parameter2> ;;
- Action commands must be preceded with a period (.), see Command Line Reference for usage.
- If needed, parameters <p> may be specified after the command.
- Every Action command has a short and a long name; you can enter a command using either the short or the long version. For example, to open a workspace, you can enter .OW or .OpenWorkspace in the Command Line Entry box.
- For parameters that represent a file, such as a workspace file, you can include the file path as part of the parameter. If you do not include the file path, TradeStation only checks the default directory for that file. For example, if you enter the command .OpenWorkspace My Stocks, only the MyWork directory (the default location for workspace files) will be checked, since the file path was not included in the parameters.
- Multiple commands are separated by double semi-colons (e.g. .action1 <p> ;; .macro1 ;; .action2)
Example
- Creates a new chart using the current symbol and interval.
.newchart
- Creates a new chart and plots 10 days of MSFT data using a 5 minute interval.
.newchart ;; msft 10 days ;; 5 min
- Creates a new workspace with a news window, a chart window, and a RadarScreen window. The workspace is then saved using the name MyWorkSpace.
.nws ;; .newnews ;; .nc ;; .newradarscreen ;; saveas MyWorkSpace