Open TRANSAQ, select Charts and ATF Scripts in the menu (see Fig.243).
Figure 243. The ATF Scripts window.
Click the “Help” button, select “ATF Scripts” in the content, scroll down the displayed text of the article and see the hyperlink “ATF Documentation”, click it (see Fig.244). In the window that opens, we will see a link to a website with documentation for the ATF language http://transaq.ru/dokuwiki .
Click this link and enter the ATF language documentation (see Figure 245).
The help is built as a collection of many examples, which contributes to a very fast mastering of this Transaq ATF language. Consider the structure of the help.
The tutorial contains the following sections:
Own indicator step by step
Array line, calc() function
Shifts and control of display boundaries
Execution control, variables, scopes
Definition of functions
Interaction of calc() with global variables; multiple signals
Mechanical trading and portfolio control
Objects: Files, Arrays, Hashes, Trades, Orders, Line buffers
Simple examples of objects
Working with a glass (starting from ATF 1.8)
Line Crossing Tracking (ver. 1.13)
ATF environment (ver. 1.12) 15. Testing trading strategies
Figure 244. Hyperlink “ATF Documentation”.
Figure 245. The help section “Tutorial”.
The Articles section includes programming examples of the most important trading blocks:
Time in ATF
Calling DLL functions
Applications and transactions
Script life cycle
Links to indicators.
The Examples section contains a lot of code examples that you will need to build your own listings.:
List of ATF examples by category
Ichimoku Kinko Hyo
Impulse system (A. Elder)
RSI (EMA based)
Stochastic Momentum Index
Price crossing of the moving average
Intersection of two moving averages
Examples of technical functions
Saving data to a file
Saving transaction information to a file
Regular synchronization of client time with server time
A simple “Ladder” strategy
is an example of programming trading functions tied to the keyboard
Uniform execution of transactions (ATF 1.19)
Maximum/minimum in a specific time interval.
The “Keywords” section contains a description of the key commands of the language.
The “Constants” section contains constants used by the ATF language for internal storage of important variables. You can find out their values by referring to the names of the specified variables.
The “Objects” section is the most important. It displays language classes that allow you to access objects
of the array type,
properties of the trading instrument,
XML data storage,
FORTS money data (used in QUICK software),
data on FORTS securities (used in QUICK software),
client limits on the futures market (used in QUICK software),
market data. The help section “Macros” describes the built-in firmware to control the display of elements.