XII.2. ATF programming language.

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

Basic principles

Array line[], calc() function

Shifts and control of display boundaries

Execution control, variables, scopes

Intermediate indicators

Display Settings

Definition of functions

Signals

Lines

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:

XML storage

Arithmetic

Time in ATF

Calling DLL functions

Applications and transactions

Customer positions

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

Indicators

%R

A/D

ADX

Alligator

AO

ATR

Bollinger Bands

CCI

CMO

DeMarker

Chaikin Volatility

EFI

Elder-rays

Ichimoku Kinko Hyo

Impulse system (A. Elder)

MA Envelope

ParabolicSAR

PDI, MDI

RAVI

RSI (EMA based)

RVI

ZigZag

Pivot points

Stochastic Momentum Index

Ultimate Oscillator

Median filter

Signals

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

Trading Robots

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,

hash,

file,

bid,

stop bid,

deal,

glass,

properties of the trading instrument,

period,

XML data storage,

DLL access,

raw_data,

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.

Leave a Reply