Special “tokens” are simply text within parenthesis that is translated by the system before being output. For example, the {Symbol} token automatically gets translated into the instrument symbol that is currently being exported (eg. “EURUSD”). Below is a list of special tokens that are recognised by the system and you can use to design your own custom export file formats.
(These fields are only applicable when generating bar data i.e. all except for 'Tick' time frame)
(These fields only applicable when using 'Tick' time frame)
Some numeric tokens provide the ability to modify their values. If, for example, you wish to add an additional spread to the BidPrice of a token, you can specify:
{BidPrice+0.0001}
This will add an amount of 0.0001 to the original output value. Similarly, most mathematical calculations can be applied including subtraction (-), division (/) and multiplication (*).
It is also possible to round numbers to the nearest digit using the “F” specifier like so:
{Close:F0}
The “0” indicates the number of digits to round to. “0” being whole numbers, “1” being 1 decimal place and so forth.
The specifiers below allow you to fine-tune the format of any date/time fields.
Outputting the Tick Time-stamp
{Timestamp:yyyyMMdd HHmmss}
yields
20120112 010210
(Note: You must be using the 'Tick' timeframe to output the Timestamp token).
Outputting the Bar Time-stamp
{BarBeginTime:yyyy-MM-dd},{BarBeginTime:HH:mm}
yields
2016-12-11,09:10
(Note: You must be using a bar time-frame (such as '5 minutes)' to output the BarBeginTime token).