A script can contain a variety of top-level sections. Specific section types are listed below.
Benchmark - begin a new benchmark strategy definition
Charts - chart indicator definitions
Data - named formulas calculated once and stored in memory arrays before tests are run
Graphs - graph type definitions
Import - data import definitions
Include - allows a script to always include another script
Library - named formulas calculated when they are referenced, using the current context
Notes - a free-form section in which to organize any notes about the script
OrderSettings - override general settings when script is run as Orders
OrdersInclude - allows a script to include another script only when being run as Orders
Parameters - system parameter definitions
Results - results column definitions
Scan - filter and column definitions for general-purpose scans
ScanInclude - allows a script to include another script only when being run as Scan
ScanSettings - override general settings when script is run as Scan
Settings - runtime settings for all script run modes
Strategy - begin a new trading strategy definition
Template - begin a new template strategy definition
TestData - named formulas calculated for each bar as tests are run and stored in memory arrays
TestInclude - allows a script to include another script only when being run as Test
TestScan - filter and column definitions for scans that include trade and position information
TestSettings - override general settings when script is run as Test
Trades - trade list column definitions
WalkForward - system parameter values by date
|