All programs written in the TeleTrader Language can only be executed from within TeleTrader WorkStation and can only be inserted in chart documents and price pages. Usually, your program will produce a result that is drawn on the chart, like an indicator or a signal marker. In price pages, the latest result value of such an indicator or signal can be shown in a study column. In some cases, your program might only produce an output that can be used by other programs (like a special sort of calculation).

When you finish writing your program, you most likely want to run it in TeleTrader WorkStation:

▫       If your program produces a result that is drawn on the screen, apply the study to a chart document or price page with the Insert Study dialog.

▫       If your program produces a result that can be used by other programs, call them from within another program to use it. You can then plot the results on the screen:

Result = MyCalculation(source, period);
DrawLine("MyIndicator", Result);

Learn more:

Calculate Values for One Bar - Get Results for All Bars

Accessing the Time Series

Accessing the History of Variables and Results

Recommended Best Practices