Language Reference

The TeleTrader Language is the basis for all studies (indicators and signals) inside TeleTrader WorkStation. It is a simple programming language that allows you to create custom studies and other technical analysis tools.

This section is intended to be used as a resource for you when you are unsure about the usage or syntax of some part of the TeleTrader Language. It will explain the syntax of the language, and give examples to show how it is used. However, if you have never used a programming language before, you should first read the section about Creating Custom Studies to get familiar with some basic concepts of the language.

You will first get an overview of how programs written in the TeleTrader Language are executed. In this part, you will learn that you only have to write your program with one bar of the time series in mind, but that you can use all available values from the time series in your calculations.

Then, you will get to know the different parts of a TeleTrader program:

▫       The declaration section, where you define what inputs your program takes and what outputs it produces, and where you also define the names of all variables used later

▫       The execution section, where the actual calculations are done and the results of your program are returned or plotted on the screen

At last, you will find a complete function reference that documents all built-in functions of the TeleTrader Language with their parameters and outputs.

Note             To add comments into the source code, enclose the text in braces:
{ This is a comment }

Erfahren Sie mehr:

Program Execution

Declaration Section

Execution Section