|
This application has been provided with a powerful and versatile programming language. The programming language is used to automate program task, and to access program entities to analyze markets data.
The program has a powerful "Editor" environment which allows to create and test the code just written.
Some general programming knowledge would be useful in this section. The intent of this guide is to be simple enough so even uses with no programming experience, can go through the examples and became familiar with the language.
Before starting here are some general information on the language
Important characters used in the language:
|
"
|
Constant String Delimiter S = S1 & "Bel" & S2 "Bel" is a constant string
|
Here all parenthesis are round. There are no other kind of parenthesis, square brackets etc.
|
(
|
Open bracket
|
|
)
|
Close Bracket
|
|
.
|
Numeric decimal separator. Also separate module name from function name
|
|
,
|
Arguments or variables separator
|
|
()
|
Define a variable as Array
|
|
:
|
The preceding text is a Label characters string
|
|
'
|
Comment sign. Any character on the same line following this sign is to be considered a comment, and ignored from the command interpreter
|
Code Colors:
A color code is used to immediately identify the specific parts of the code, like reserved keyword, comments, error, etc.
|
Blue
|
Reserved Keyword
|
|
Green
|
Comment
|
|
Red
|
Line with a syntax error
|
What are Modules ?
Modules are containers for functions They can contain a large number of functions, and there are two kinds of them:
|
Main
|
This is the one that contains the function "Main" and is the starting point for the command interpreter.
|
|
Utility (secondary)
|
This type of module contains utility functions. Functions contained in this module can be called only from the main module with the following syntax Module1.GetName(1) where "Module1" is the name of the module which contains the function "GetName" Check the specific paragraph for more information.
|
Characters Strings
Strings can be joined using the operator &
|
&
|
Lets consider two strings S1 and S2 defined as follows:
S1 = "Hello"
S2 = "World"
Joining the two strings with the operator &
S = S1 & S2
the resulting string S will have value of "HelloWorld"
|
Strings can be compared using operators like "=" or "<>" .The following operators are not supported ">", "<", ">=", "<="
If "A" = "a" Then 'Correct
If "A" > "a" Then 'Not Correct
N.B. "A" = "a" is TRUE because the language is case insensitive.
Date Format:
All dates are expressed according with the format AAAAMMGG. The first four numbers identify the year (e.g. 2002), the numbers in position 5 and 6 represent the month (e.g. 07 for July), the numbers in position 7 and 8 identify the day of the month (e.g., 01). There is not a specific date data type and it is assumed that a date is numeric.
For Example: 7 of august 2002 will be written as : 20020807
|