The Hist topic type enables you to display an The syntax for the Hist item is as follows: The .INT, or interval, parameter specifies the database file from which you want data. Defining the interval parameter as DAY uses data from the DAYS.DAT file, defining the interval parameter as MIN uses data from the BARS15.DAT file, and defining the interval parameter as TICK uses data from the TICKS.DAT file. The default definition is DAY. The .SPAN parameter defines the time base. The number you use to define the span parameter is closely linked to your interval definition. For example, a span parameter of 7 can mean three things: 7 days, 7 minutes, or 7 ticks, depending on how you define the .INT parameter. The default is 1 (1 is the SPAN and DAY is the INTERVAL, so the default is 1 day, which is how data is stored in the DAYS.DAT datafile). The .PRDS, or periods, parameter defines the number of periods returned by the link. The period parameter can be defined at any number that does not create a block larger than 64 Kb. The default is 30, or an array of 30 database records. The .NEARD, or near date, parameter enables you to specify a date in recent history as the beginning of the array (the array displays data descending by date and, optionally, time). The default is the current date. The date must be entered in MM/DD/YYYY or MM/DD/YY format. The .NEART, or near time, parameter enables you to specify a time that serves as the beginning of the array (the array displays data descending by date and time). The default is the current time. Enter time in HH:MM format. The .FARD, or far date, parameter enables you to specify a date that ends the array. Enter dates in MM/DD/YYYY or MM/DD/YY format. The .FART, or far time, parameter enables you to specify a time that ends the array. Enter time in HH:MM format. The .MAXDAYS parameter enables you to limit the length of the array using a number of days. Combined with the .NEARD and .NEART parameters, .MAXDAYS can be used to retrieve a defined range of data. The .QE, or quote element, parameter enables you to specify which database fields you want to appear in an array. The default is to show all fields. Your choices are as follows:Using the Hist Topic
Datafile | Fields |
TICKS.DAT | DATE,TIME,PRICE,VOLUME |
BARS15.DAT | DATE,TIME,OPEN,HIGH,LOW,CLOSE |
DAYS.DAT | DATE,TIME,OPEN,HIGH,LOW,CLOSE,VOLUME,OPEN-INTEREST |