TradeStation Help

Creating a Command Line Command Macro

A Command Line Command macro consists of one or more Command Line commands that are saved together and to be run at a future time. The Command Line macro wizard guides you through the process of creating the macro. Once the macros are created, they can be run from the Command Line, Macros dialog, and from the TradeStation Development Environment. In addition, you can assign a macro to a toolbar button and/or Hot Key as a shortcut.

  1. Access from the Main toolbar and click the Macroimage\macro_button.gif icon. The Macros dialog is displayed.
  2. Under Categories, select Command Line Macros.
  3. Click Create.

For example, the below macro named .Big5 includes a set of action commands that creates a new 5 minute chart and loads it with 30 days of pre & post session data. Once this macro is created and saved, type .Big5 on the Command Line, and press ENTER to run the macro. Or, you could assign a hot key to run the macro when a specified key is pressed.

.Newchart;;
5 min;;
.Days 30;;
.Session US Stock with Pre & Post Market;;

For more information, see Create Macro Wizard. For a list of TradeStation commands, see Command Line Reference (All Commands) or Command Line Reference (Sorted by Application).

Related Topics

Creating an Order Entry Macro

Macros Wizard

Assigning or Removing a Macro to a Hot Key

Assigning a Macro to a Toolbar Button