Вы находитесь на странице: 1из 132

............................................................................................................................................

8
............................................................................................................................... 8
..................................................................................................................................... 8
......................................................................................................................................... 9
...................................................................................................... 9
................................................................................................................... 10
............................................................................................................................................ 10
........................................................................................................................... 10
................................................................................................................ 11
.......................................................................................................... 11
........................................................................................................................................ 12
................................................................................................................................................... 12
- ....................................................................................................................................... 13
.......................................................................................................................................... 13
...................................................................................................................................... 14
DDE ...................................................................................................... 14
.................................................................................................................................................. 15
.................................................................................................................................... 15
...................................................................................................................................... 16
..................................................................................................................................... 17
................................................................................................................................. 18
......................................................................................................................................... 19
.............................................................................................................................. 20
.................................................................................................................................... 20
............................................................................................................. 21
.......................................................................................................................................... 22
............................................................................................................................................... 23
................................................................................................................................................. 24
.......................................................................................................................................... 25
......................................................................................................................................... 26

........................................................................................................................................... 28
............................................................................................................................................... 28
......................................................................................................................................... 29
............................................................................................................................ 29
..................................................................................................... 29
..................................................................................................... 32
.............................................................................................................. 33
............................................................................................................................................ 33
............................................................................................................................................ 34
......................................................................................................................................... 35
............................................................................................................................... 36
........................................................................................................................................ 36
.................................................................................................................................................. 37
........................................................................................................................................... 39
................................................................................................................................. 39
.................................................................................................................................................... 40
..................................................................................................................................................... 40
......................................................................................................................... 41
....................................................................................................................................... 42
.................................................................................................................................................. 42
..................................................................................................................................................... 43
............................................................................................................................................. 43
................................................................................................................................................ 44
........................................................................................................................ 45
.............................................................................................................................................. 46
...................................................................................................................................................... 46
......................................................................................................................................................... 47
..................................................................................................................................................... 48
...................................................................................................................... 49
.............................................................................................................................. 50
................................................................................................................... 50

................................................................................................................... 50
................................................................................................................................... 51
................................................................................................................................... 53
........................................................................................................................ 53
................................................................................................................................. 54
.............................................................................................................................. 56
...................................................................................................................................... 59
......................................................... 59
..................................................................................................................................... 60
............................................................................................................................... 61
.................................................................................................................................................. 61
.................................................................................................................................................. 62
................................................................................................................................................ 62
.............................................................................................................................. 63
.................................................................................................................................. 64
........................................................................................................................ 64
...................................................................................................................... 67
Acceleration/Deceleration ................................................................................................................ 68
.................................................................................................................................................... 69
Accumulation/Distribution (A/D) .................................................................................................................. 69
: ................................................................................................................................................... 69
Alligator ...................................................................................................................................................... 70
.................................................................................................................................................... 70
Average Directional Movement Index ......................................................................................................... 71
.................................................................................................................................................... 71
Average True Range .................................................................................................................................. 71
.................................................................................................................................................... 72
Awesome Oscillator .................................................................................................................................... 72
............................................................................................................................... 72
........................................................................................................................................... 72
......................................................................................................... 72

......................................................................................................................................... 73
............................................................................................................................. 73
.................................................................................................................................................... 73
Bollinger Bands .......................................................................................................................................... 73
.................................................................................................................................................... 74
Commodity Channel Index ......................................................................................................................... 74
.................................................................................................................................................... 75
DeMarker.................................................................................................................................................... 75
.................................................................................................................................................... 76
Elder-Rays.................................................................................................................................................. 76
.................................................................................................................................................... 77
Envelopes................................................................................................................................................... 77
: ................................................................................................................................................... 77
Force Index ................................................................................................................................................ 77
.................................................................................................................................................... 78
Fractals ..................................................................................................................................................... 78
Gator Oscillator ........................................................................................................................................ 79
Ichimoku Kinko Hyo ................................................................................................................................. 79
Market Facilitation Index ............................................................................................................................. 80
.................................................................................................................................................... 80
Momentum ................................................................................................................................................. 80
.................................................................................................................................................... 81
Money Flow Index ...................................................................................................................................... 81
.................................................................................................................................................... 81
Moving Average.......................................................................................................................................... 82
.................................................................................................................................................... 83
(Simple Moving Average, SMA) ......................................................... 83
(Exponential Moving Average, EMA) ................................ 83
(Smoothed Moving Average, SMMA) .......................................... 83
- (Linear Weighted Moving Average, LWMA) .................. 84
Moving Average Convergence/Divergence ................................................................................................. 84

.......................................................................................................................................... 84
/ ................................................................................... 85
......................................................................................................................................... 85
.................................................................................................................................................... 85
Moving Average of Oscillator .................................................................................................................. 85
On Balance Volume.................................................................................................................................... 85
.................................................................................................................................................... 86
Parabolic SAR ............................................................................................................................................ 86
.................................................................................................................................................... 87
Relative Strength Index .............................................................................................................................. 87
.................................................................................................................................................... 88
Relative Vigor Index ................................................................................................................................... 88
.................................................................................................................................................... 88
Standard Deviation ..................................................................................................................................... 88
.................................................................................................................................................... 89
Stochastic Oscillator ................................................................................................................................... 89
.................................................................................................................................................... 89
Williams Percent Range............................................................................................................................. 90
.................................................................................................................................................... 90
.................................................................................................................................................. 90
.......................................................................................................................................... 91
.................................................................................................................................. 93
................................................................................................................................... 93
.................................................................................................................................. 94
..................................................................................................................................... 94
................................................................................................................................... 94
.............................................................................................................................. 95
................................................................................................................................ 95
..................................................................................................................................... 96
....................................................................................................................... 96
............................................................................................................. 97

............................................................................................ 97
.......................................................................................................... 97
......................................................................................................... 98
............................................................................................................. 98
.......................................................................................................................................... 98
MetaQuotes Language 4 ................................................................................................................ 99
MetaEditor .......................................................................................................................................... 99
.............................................................................................................................................. 100
................................................................................................................................ 100
............................................................................................................... 101
........................................................................................................... 101
................................................................................................................................ 102
.......................................................................................................... 103
............................................................................................................... 104
.................................................................................................... 104
.................................................................................................................. 104
............................................................................................... 105
..................................................................................................................... 105
........................................................................................................................... 107
............................................................................................................... 107
...................................................................................................................... 108
.......................................................................................................................................... 108
................................................................................................................................................. 108
.................................................................................................................................................... 109
""................................................................................................................................ 110
FXT ............................................................................................................. 110
.................................................................................................................... 112
...................................................................................................... 112
.................................................................................................................. 112
............................................................................................... 114
..................................................................................................................... 114

........................................................................................................................... 116
....................................................................................................................... 116
.......................................................................................................................................... 116
................................................................................................................................................. 117
......................................................................................................... 118
............................................................................................. 118
.............................................................................. 119
..................................................................................... 119
................................................................. 119
..................................................................... 120
................................................................................................................................................. 121
................................................................................................................................. 121
................................................................................................................... 122
............................................................................................................... 122
.................................................................................................................................... 122
............................................................................................................ 123
....................................................................................................................... 124
................................................................................................................................ 124
- ................................................................................................................. 125
FTP..................................................................................................................................... 125
........................................................................................................................... 126
/ ................................................................ 126
................................................................................................ 127
...................................................................................................................................... 128
............................................................................................ 129
(HST-) .............................................................................................. 129
............................................................................................................................... 130
.................................................................................................................... 130
.................................................................................................................. 131
........................................................................................................................... 131
Datacenter.ini .......................................................................................................................................... 132


-
:

;
;
;
;
, ,
MetaQuotes Language 4 (MQL 4);
.

,
.
.

.
. ,
, .
Microsoft
Windows 98SE/ME/2000/XP/2003.
.


. ,
.
.
.
,
. : DEFAULT,
MQL4-, .
, MQL4-
.
,
.

, .


"" ,
.
.
:
. ,
.

, .
.
, .
, . , terminal.exe
"123456-'British Pound'", "123456" , British Pound .
(
), . ,
. .
,terminal.exe 123456-'GBPUSD'.
, , .
.
" "
"Datacenter.ini".


:
() .
,
. ,
. ,
, , .


, "
" " ".
,
, .

;
;
(, , ) ;
;
;
(, );
;
Email ;
, ,
;
,
;

;
.

"" ,
" ". ,
. ,
. .

,
: "" , "" , ""
( ,
, , ).
" ",
.
. " ".
,
.
:
MRC Markets : 8 800 333 88 36 ( ),
Email support@mrcmarkets.com.


, , .
.
" ".
, .


. .
: .
.
,
, .
.
""
( )
"" "". ,
( ) . ,
"".
: " ",

. " "
.



128- .
. , ,

- RSA. ,
.
,
. , , ,
.


.
: -
() .

, .
,
.
. ( )
, . ,
, .
:

,

( ). KEY
/CONFIG;

.


.
. ,
.
.
, "Live Update"
. ,
"Start".
.
.
:

, ;

;
, ,
, .


,
" " -
Ctrl+O. :

,
- , ;
.
, , Ask-,
OHLC. ,
;
.
,
;
. :
, ;
. :
, DLL- ,
;
.
,
;
.
.
ftp-,
;
. ,
.


,
.
,
. -
.
" " :

;
c -;
;
;
DDE;
.


( ).
, .

, .
,
.
IP- (
) .
, . ,
, "".

: "[- ] : [ ]" ( ). ,
"192.168.0.1:443", "192.168.0.1" , "443" .
"OK".
.
,
.
.
, .
, .
.
: ,
.

-
- ,
. -
.
- .
.
-,
. " -" -
"...". ,
- (
):

- (HTTP, SOCKS5, SOCKS4);


-. ,
;
-. ,
.

""
. ,
"OK", .
-.
.


( )
-. :
.
.
,
.
. - .

.
,
.
, .
" ".


.
.
" " IP- ( ) .
"[- ] : [ ]".
, "" .
, .
.
.
:


;

.



(). ( ),
. .
,
. ,
,
.
.
, "
", (, )
.
. ,
.
"" "" .
, ""
.
. ,
.
"", .
. ,
-. .
, " ", ,
.

DDE

"DDE" (Dynamic Data Exchange).
" DDE " "".
.
.


.
. ,
, .
" ". "" "",
.
: " ", ,
"" "" .


.
.

.



, ,
, Stop Loss Take Profit.
, .
" " "".
,
. ,
, .
, .
.
Ask-
Bid-.
Ask-.
, .
, "
Ask".
, Ask- .
OHLC
,
. " OHLC" .

. , ,
. : OPEN, HIGH, LOW CLOSE
(OHLC) , ,
. ,
.

.
().
" "
, . ,
M1 H1 , H4
, D1 , W1 MN1 .

-,
. , -.

, " "
"". , ,
.

.
" ",
/DELETED . ,
" ",
. ,
EURUSD, . ,
(,
) .


. ,
, .
.
, .

(
) .
,
. ,
".
". ". "
.
. .

,
". ";
,
". ".
;
" Ask", " OHLC" "
", , .

;
" ", " " "
", ,
"".


, .
,
"". : (
), , ,

.
.


. ,
, ..
,
.
" "
. ,
.

, , , ,
, .
, ,
. .
" "
.


. .
, .
. ,
.

""
. ""
. , 10,
10
(OHLC) .
0.


.

.


" "
"" . "
" , ,
" " .
, "
" .

( "
"): " " ,
, " " ,
.

.
,
. "" .

, .
,
.


, ().
, MetaQuotes
Language 4
().
"".
:

.
,
start().
. ,
"".
, .

"".

:

;
o ,
start().

,
. , ,
. ,
"".


. ,
. , ,
. ( ),
.

, .
, .
.

(
).

" " ,
.
, , .
,
.
.
o

(
).
DLL
DLL-.
, -
. ,
DLL-.
.
DLL
, DLL.
. ,
.
.


MQL4, . ,
MQL4-.
.

: " ", " ",


" DLL", " DLL" "
", ,
MQL4-. ,
.


.

. ,
"" :

SMTP SMTP- .
. "[ ] : [ ]". , "192.168.0.1:443", "192.168.0.1"
, "443" ;
;
;
, ;
, .

: " " "" .


, , .
"" ,
.
"", .
.


.
- FTP-.
"":

.
, ;
, ;
: .
, .

- (
);
FTP FTP-, .
, , .
"[- ] : [ ]", ,
"192.168.0.1:443", "192.168.0.1" , "443" ;
FTP FTP-, .
( ),
;
FTP FTP-;
FTP FTP-;

.
(
1024-65535), ,
. FTP-
, TCP- 20
. TCP-
( 1024-65535),
.
FTP ,
.
FTP-.
, .

""
, .
"", .
.


(
). ,
. .
"".
. :

Connect .
;
Disconnect . ,
;
Email Notify .
, " ";
Timeout .
- , ,
;
OK .
;
News . ,
" ";
Expert Advisor
;
Expert Confirmation .
, "
" ;
Alert lert();
Requote ;
Trailing Stop .

- ,
. ,
. ,
"" .
. ,
.
Enter .
"".
:
.


, ,
.

,
. : "", "", "",
"", "", "", "".
" ".

: "", "",
" " " ".
. - ,
.
" ".


.
.
" ".

,
. - .
" ".

, ,
. "" .
"".

,
, , , , ,
. , ""
.
"".

.
,
.
"".

. ,
: ,
, .
" ".


.
, ,
.

, .
,
,
.
" "



. ,
. :

, ,
, .

, ( " ",
" ", "", "", "") .

, ,
.

, , ,
, .

, ,
MetaEditor ( MetaQuotes Language 4).


, ,
, .
:

.
.
, .

"";
.
.
.
;
.
, "
". /DELETED
.
, ;
.
, .

"".
" ";
;

"CSV", "PRN" "HTM";
"BMP"
"GIF".
;
.

.
,
" " Insert;
.
.
,

.
, ""
" " ;
,
, ;
.
.
, .
,

"" ;
. "
", - , .
,

"", - Ctrl+P
"";
.
:
.


,
.
"". :

Languages .
, .
, .
, MultiLanguage Pack.
.
"Multilanguage Pack" .
MultiLanguage Pack
;
.
. ,
.
" "
.
. "" ""
. "" ""
.
, "";
/ ,
. (
): , ,
/ .
, .
,
.
"
";

/
() , .
;
/ " ",
.
- Ctrl+M

"";
/ " ".
.
- Ctrl+D

"";
/ "".
, , ,
.
- Ctrl+N

"";
/ "".
, , , ,
.
- Ctrl+T

"";
/ "".
.
- Ctrl+R

"";
/ .
,
. ,
, () .
.
F11
"".


"" , .
, , .
"" .
, .
: "" ,
"" , "" , "" ,
. ,
" " " ".
.
, :

(, ),
;
(, , , ),
;

, .
;
,
, .
.

: "", ,
" ".


""
. :

,
.
( ). ,
.

- Ctrl+I;
.
:
o .
: , , .
( "") ,
. , ""
;
o ,
.
Backspace;
o
.
Delete;
o ;
o
;
o .
- Ctrl+Z;
.


"" - Alt+1;
"
".


"" - Alt+2;
,
.


"" - Alt+3;
" ". ,
( )
" ", ;

.
, .
,
"";
.
. ,
.
: DEFAULT .
"
".

"" ;

.
.
;
: .

/ .

- Ctrl+G;
/ .

- Ctrl+L;
/
. ,
.

"";
.
( )
10 50% .

"";
.
"+"

"",
;
.
"-"

"",
;
.
F12;
.
.

F8.

: ""
.


"" .
:

.
.
.
"" " "
" ",
" ", F9

"";
.
,
.
F2;

. , ,
.
.
F3;
MetaQuotes Language MetaEditor.
MetaEditor ,
. MetaEditor
.
F4;
.
, , ,
. "
".
- Ctrl+O.


.
:

.
,
. ,
.


"" " ";
;
;
;
.
.
.

.
. ,
.


"" .
. :

,
" ".
.
F1 ;
" ",
, , .


.
.
, ,
. "
". ,
, .
( )
" ".
:

;
;
, ;
.

.
,
,

.
" "
" ", "
";

. ,
.
.
" ".
: DEFAULT .

" ";

/ " ".
.
.

"
".
" " - Ctrl+M
;

/ " ".
.

"
".
" " - Ctrl+D
;

/ "".
, , .
"".
" " - Ctrl+N
;

/ "".
, , .
"".
" " - Ctrl+T
;

/ "".
.

"
".
" " - Ctrl+R
;

. ,
.

"".
" ",
" " "
", F9;

MetaEditor.
, , MQL 4.

"MetaEditor"

-.
"
MetaQuotes Language" F4;

. ,
.

"".
" " ;

.
.
.
"
" - Ctrl+O;

/ .
,
. ,

, () .

.
F11 "
";

. "
",

-
,

.
" "
;

.
. , ,

.
"
" ;

.
,
.
" "
F1.


. :

(
).
" "
- Alt+1;

(

).
" "
- Alt+2;
( ).
" "
- Alt+3;

.
" ",
"+";

.
" ",
"-";
.
,

.
" ";
.
( )

10-50%

.
" ";
.
. ,
.

"
".
" ";

.
" ",

"";
.
. ,
.
" ".
" "
.

: ""
.


" "
( , ), .
( "" "")
"".
.
:

.
.
.
" "
;

.
.
.
" "
;

.
.
.
" "
;

.
, .
( ), , .
.
" "
;

.
. .
" " ;

.
.
" " ;

.
.
. ""
, , , ,
.
.
[ ] / [
] / [ ].
.
Ctrl+F ;

( ).
.


.
.
,
.


" " ,
.
. "" ,
"", "" "" .
"" ""
. " " / - Ctrl+M,
" "

"".

,
. " "
, :

" ",
.
Stop Loss Take Profit.
" ".
" "
" ", "
", " ",

"" F9;
.

.
"
" " "
"";

.
, " ".
,
;
() .

Delete.
:
, , .

.
, ,
;
.
;
,
. .
" " , "
" . ""
;
.
,
.
;
/
;
;

.
A;
/ .
G;
.
" "
. " "
" ". ,
.
.
, : ,
.


(OHLC),
, ( ). " "
- .

. .
:


.
- Ctrl+C;
/ .
;

;
/ ;
/ .
(OHLC), .
, .

: ( ""
) , .


.
/ - Ctrl+N,
" "

"".

: "",
"", "", " " "". ""
.
.
.
" " Insert.
.
( ), ""
.
: ,
.

"" .
.
" "
. , "Drag'n'Drop",

. "
".
"" ().
,
.
MetaEditor.
"".
"" , ""
, "" .
" "
. , ,
. "Drag'n'Drop",

. ,
. .
" "
( ),
"" (, ).

.
" " "".

"", "".
, " "
.
. , Ctrl+O
. On Balance
Volume, Ctrl+O .


""
. , , ,
, . ,
.
"", .
,
" ".
: "" -
. , ,
.


"" ,
. ,
, ,
. " ",

- Ctrl+T

"". :


, . ,
;

. ,
,
;

.
;
.

( )
;
,
. ;
,
/ , ,
;

, .

: "" . ,
. , "" ,
- MQL4-.

"" ,
.
, .
, .
,
. .
( ):

. ;
. YYYY.MM.DD
HH:MM (.. :). ;
.
: "Buy" , "Sell" ,
Sell Stop, Sell Limit, Buy Stop Buy Limit;
, .
,
;
,
;
( , ).
;
S/L . ,
.

;
T/P . ,
.

;
( ,
);
,
, ;

.
, ;

.
.
. ,
.

,
. : ,
, , .
:

. .
.
: , , (
), .
"
";
.
, .
. ,
"Sell" "Buy", "#XXXXXXX ..." (
). , ,
.
;
" " "
" .
,
, .
.
;
, " ".
,
. "" . "
" .
" ";
/ ,
. "".
" " ( ) , ,
USDJPY,
;
/ "",
;
/ "".
.
.
. ,
;

;
/ .

- Ctrl+F9 "
". .


" " .
( ):

. ;
. YYYY.MM.DD HH:MM
(.. :). ;
. 3
: "Balance" , "Buy"
"Sell" ;
, ;
,
;
. ;
S/L Stop Loss.
, ,
"[s/l]". ,
. , ,
, .
, "[s/l]" .
;
T/P Take Profit.
, ,
"[t/p]". ,
. , ,
, .
"[t/p]" .
;
. YYYY.MM.DD HH:MM
(.. :). ;
. ;
,
, ;
.
,
. ,
"", .
.
.
. ,
.



, :

.
;
3 ;
;
.
,

( "")
"" "";
HTML-.
, ;
HTML-.
.
,
;
/ "";
/ "".
.
. ,
;

;
/ .

"" .
.
, .
.
:

. ,
;
;
/ "";

;
/ .

"" "", ,
;
" ",
;
,
, .

.
. ,
.
:

,
. "Time=" (
), ;
. :
1. Bid> - . -
, ;
2. Bid< - . -
, ;
3. Ask> - . -
, ;
4. Ask< - . -
, ;
5. Time= .
.
;
.
, ;
;
. ,
.

. ,
Insert;
. ,
Enter;
. Delete,
;
/ / .
, . .
Space (
), .

: ,
. .


. ,
"" "", :

/ . ,
.
"/" Space;
, :
, , .

.
"".
;
,
;
("Time=", "Bid<", "Bid>", "Ask<", "Ask>") ;

.
, ;
.
.
, , .
. ,
;
, ;
.

"" .
, "OK".
:


" " .
"".
:

;
;
.


"" ,
"" . ,
,
.
"", , ,
"".
:
.
.

"" ,
/ , ,
. .
""
. /EXPERTS/LOGS,
YYYYMMDD.LOG.
,
.


""
.
, .
.
"" .
/LOGS,
YYYYMMDD.LOG.
, .


"" ,
.
,
.
.
, .
" ", Ctrl+R
:

"".

.
, ,
;
,
;
;
.
:
, ,
, , ;
,
;
,
, , ;
.
,
.

"", "" ,
. , ""
"". "", "" ""
. " "
" ".
.


.
,
.
.

.
:

.
/EXPERTS.
;
;
();
:
1. (
);
2. ( +
);
3. ( );
. ,

;
.
, .

;
.

;
" ",
;
.
*.FXT ;

.
.
, .
.
TESTER.TPL,
;
"MetaEditor"
. ,
;
.
-
.
"" "".
/, .


.

. :


. ,
.
: "Only Long" ; "Only
Short" ; "Long and Short" .
,
;

. ,
.
. ""
,
. , "", "" "",
.
, .

.
, .
, .
, ,
"".

( "", "" ""). ,
"" .
.
:
.
.


.
. ,
, :
1. ;
2. ;
3. , %
;
4. , % ;
5.
.
;
6.
;
7.
.
;

8.
.
" "
"".

.
:

;
;
(sell, buy, s/l, t/p, modify, close at stop );
(
, );
, ;
;
S/L .
, ;
T/P .
, ;
/. /
;
.
.

,
.
"" - Ctrl+C
.
, . ,
, " ".
HTML- .
" ".
" " " "
.
" :" " :" .
,
.
" "
"".

"" (
"") (
""). ,
"" "" .
.
,
.


"" .
"" - Ctrl+C

. GIF- .
" "
- Ctrl+S. " " "
" .
" :" "
:" . ,

.
" "
"".

""
.
. :

;
;

.
. :
1. .
,
;
2.
.
;
3. .
, . ,
H1 -
,
M30, M1;
:
(" "), .
" " "n/a"
;

;
.
" " " ";
;
;
.
, ;
.

/ . ,
/ ;
;

;
;
(% )
;
(% )
;
(% )
, ;
(% )
, ;

;

;
(
, );
(
, );
()
;
()
;
( )

;
( )

;

;

.


HTML-. ""
" " .
- Ctrl+C.
" "
"".

""
, .
" ", , ,
, c .
/TESTER/LOGS.
/EXPERTS/LOGS,
YYYYMMDD.LOG.

"" .
,
. " "
.
.
" "
"".


,
() .
,
. ,
"".
: " " " ".
" ", ,
, .
:

;
( );
;
.
, ;
.

/ . ,
/ ;
$
;
%
;

.

,
.
" "
( , " ")
. ""
. "",
.
.
"" - Ctrl+C

. ,
. , ,
" ".
HTML- .
" ".
:

/
;
/ " ";

.
A;
/ .
, G.

" "
"".


,
() .
,
. ,
"".
: " " " ".
" " .

. ,
( ) ( )
.

"" .
"" - Ctrl+C

. GIF- .
" "
- Ctrl+S.
" "
"".


.
:

,
;
(-) ,
.


/ ,
.

Enter,
.


.

:
1. [ (:)]
: 08:30; 8:30;
2. []
: 2004.10.16; 16.10.2004; 16.10.04;
3. [ ]
: 2004.10.16 8:30; 16.10.2004 8:30; 16.10.04 8:30;
4. [ ]
: GBPUSD; EURUSD;
5. [ ]
: M1; M5; M15; M30; H1; H4; D1; W1; MN;
6. [ ], [ ]
: GBPUSD, M30; EURUSD, D1;

: ,
.

Enter,
Esc.
. , , ,
8:30 16 2004 , "2004.10.16 08:30".
.. .., .., ...
. , "08:30"
"8:30".
. "" .
"GBPUSD 30", "GBPUSD 30",
-.


(-)
,
.

;
;
,
;

;
Numpad 5
.
;
Page Up ;
Page Down ;
Home ;
End ;
"-" ;
"+" ;
Delete ;
Backspace , ;

Enter / ;
Esc ;
F1 " ";
F2 " ";
F3 " ";
F4 MetaEditor;
F5 ;
F6 "" ,
;
F7 , ,
;
F8 ;
F9 " ";
F10 " ";
F11 / ;
F12 ;

Shift+F12 ;
Shift+F5 ;

Alt+1 (
);
Alt+2
( );
Alt+3 ( );
Alt+A
;
Alt+W ;
Alt+F4 ;
Alt+Backspace Ctrl+Z ;

Ctrl+A ;
Ctrl+B " ";
Ctrl+C Ctrl+Insert ;
Ctrl+E / ;
Ctrl+F "";
Ctrl+G / ;
Ctrl+H / OHLC;
Ctrl+I " ";

Ctrl+L / ;

Ctrl+P ;

Ctrl+S "CSV", "PRN", "HTM";

Ctrl+W Ctrl+F4 ;

Ctrl+Y / ;

Ctrl+Z Alt+Backspace ;

Ctrl+D / " ";

Ctrl+M / " ";


Ctrl+N / "";

Ctrl+O "";
Ctrl+R / "";
Ctrl+T / "";
Ctrl+F6 ;
Ctrl+F9 " "
.
.


"", "".
, " "
.
. , Ctrl+O
. On Balance
Volume, Ctrl+O


.
, .
.
, " ",
" "
"".

. , .
" ", Ctrl
( )
" " .
DEFAULT.TPL,
. , .
, , .

.
, 512
. ,
.
. ,
.
.
: ". " ".
".
.


.
HST.
.
.


" ".
"".
OFFLINE.TPL. "(offline)".
FXT.
, .



. " ",
F8.
"",
( ""):

;
, OHLC;
;
, ;
, ;
;
;
;
;
Ask Ask-;
- (Stop Loss Take Profit).

, ,
. ,
.
: "Yellow on Black" ( ), "Green on Black"
( ) "Black on White" ( ).

. .
.
"" :

.
. ,
, .
( " ")
.
" ".
, "" .
" ".
.
( )
10%-50% .

""
" ".
/
. ,

.

""
" ".
.
,
.
.
"" "".
1:1 " "
(
). "
" ,
.
.
.

"",
" " - Alt+1.
.

"",
" " - Alt+2.
,
.

"",
" " - Alt+3.
OHLC / OHLC.
.
, ,
. : OPEN, HIGH, LOW CLOSE (OHLC)
, ,
. ,
.
.
Ask / Ask- .
Bid-.
Ask-.
, .
, "
Ask".
, Ask- .
/ .
.
().
" "
, . ,
M1 H1 , H4
, D1 , W1 MN1 .
/ .

"", - Ctrl+G.
/ .
.

"", - Ctrl+L.

/ .
,
.



, .
,
. :


:
1. .
,
"",
- Alt + 1,
" ".
2. .

"",
- Alt + 2,
" ".
3. , .

"",
- Alt + 3,
" ".


"CSV", "PRN" "HTM".
, "
" - Ctrl + S. ,
BMP GIF.
" ".
.


" ", "
...", ,
"" - Ctrl+P.
" " ,
- .

" " F11
. , ,
.
, .
MQL4
MQL4 .
"" MQL4-
"
". "Drag'n'Drop".

/
.

,
.
" "
,
"".
"Drag'n'Drop"
"" .
" ", "
", ,
- Ctrl+I.


.


. ""
" ".
, , .
" ".

,
.

.
"",
"", " "
.


.

/
"", "+" / "-",
""/"" "".

.
"5"
.
, " "
, . "
1:1" " ", ,
.
,
/,
. ,
F12 ( " " )
Shift+F12 ( ), :
,
/.
, .
, ,
.
, .

/. ,

"5"
.
,
. ,
.

"" " ".


" "
. ( )
10-50% .

"" "
".


.
,
.
,
. ,
. (
) .
, "".
.
: , "".


.
: , , , ,
, .
.
" ",

"".
" " , "
" .
" ".

.
,
, .
" ",

""
.
" ".

""
. ,
" "
.
.


;


,
;
(
)
;

( );
(,
, )
;

;
, ,
( , ) ;

;
Ctrl +
(
);

"";

;

.

. ()
MQL4-,
.

. ,
.
"".
. ,
MetaQuotes Language 4 (MQL 4)
- .
,
.
/
.
,
.

.
, .
.
.

"" .
.
, .

"".
.
.
"".
.
- Ctrl+A.
/ .
""
- Ctrl+G.
/ .
""
- Ctrl+L.
.
"",
"+"
"".
.

"", "-"
"".
.
.
.

.
( GIF BMP).
" ".

.
"
"
"".
. "
", -, .
" ", Ctrl+P
"".
.
F8.

: "", " ", " " "


" .


.
- .
" ".

. .
.
". ,
,
" " ,

"".
" ...",
,
""
- Ctrl+P.


,
. " " Ctrl+F4. ,
"
". . ,
, . "
" .

.

,
. :

;
;
;
OHLC;
;
;
;
.


. , ,
MACD, RSI Moving Average, .
.
/TEMPLATES TPL-.
.
(DEFAULT.TPL),
. ,
.
, "
...",

"".

.
, .
,
"",
" ...". "
"
.
: "DEFAULT.TPL" .

.
,
, .
.
"".
.
(DEFAULT).
"EUR/USD", "USD/CHF",
"GBP/USD" "USD/JPY".
,
" ",
""
.
, .
. " "
.
.
" " .
" " F5
, " " - Shift + F5
.
: (DEFAULT) .
.
, .
,
. ,
.


.
. ,
.
. ,
.
.


,
. ,

.
,
MetaQuotes Language 4 (MQL 4). MQL 4
.


,
. . :

,
.
/, , , ,
.
;
(, ),
;
(, ),
;
, ;
,
.
.

"" " ".


( ),
.
: , .
, .

, .
. ,
" ",
. .
.

. , , ,
.

. .
, Ctrl,
.
,
. , Backspace
.
. " "
, " "
- Ctrl+Z.


.
.
"", "
". ,
. "" .
:

,
. , .
;
/ / ,
. , ,
" " ;
. , ;
, .
( ) "
" .

"" .
"" .
"" .
.
" " :

;
() ()
.
( )
( ). 1:1 .
;
;
;
, ;
X:
;
Y:
.

""
().
. ,
. " "
-.
.
( ""). , "",
. "" "(%$)",
, .
" " .
"", , .

,
.
/, , , ,
.
""
" ". ,
(
) .


, ,
.
.




. ,
.


.
, .


.
,
.
,
.


,

.
,
.

.
, .

.

.


.

.
.

,
45 .

,
.


,
. 11 (45 )
.
,
. , 11

,
.

.

45
. ,
.

,
,

: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144
.. 1,618
,
0,618 .
,
,
,
0.0%,
23.6%, 38.2%, 50%, 61.8%, 100%, 161.8%, 261.8%
423.6%.

,
.

, 0.618-
, 1.000-, 1.618, 2.618-, 4.236- .

.


1, 2,
3, 5, 8, 13, 21, 34 .. ,

. ,
.

,
.
.
,

38.2%, 50% 61.8%. ,


, .
,

38.2%, 50% 61.8%. ,
.

,
. ,
""
61.8%, 100% 161.8%.
,
.



.
(
)
. .

,
(
). - .


.


.

. ,
.
,
.


/
.
,
.
: .

.
.
""
Drag`n`Drop, " "

"".
(, MACD)

(, Moving Average).
(Median Price, Typical Price, Weighted Close),
. , Moving Average
Awesome Oscillator AO .
AO, Drag`n`Drop
MA AO " " "Previous Indicator
Data" ( ). "First
Indicator Data", MA ,
AO.
, ,
, . ,
""
(). .
,
. " "
" ".
. " "
""
"..." .
, .
,
" " " "
. " " .
: , ,
.

Acceleration/Deceleration
- , .
, , ,
, .
,
.
/ (Acceleration/Deceleration, AC)
c.
, , ,
. ,
, .
- , , , .
/ (Acceleration Deceleration, AC) ,
( -
). wesome scillator,
. , ,
, - . ,
: ,
, ,
.

( Acceleration/Deceleration
, ),
( ) ( ).
( ),
, .
,
, .

5/34 5 , .
MEDIAN PRICE = (HIGH + LOW) / 2
AO = SMA (MEDIAN PRICE, 5) SMA (MEDIAN PRICE, 34)
AC = AO SMA (AO, 5)
:
MEDIAN PRICE ;
HIGH ;
LOW ;
SMA ;
AO Awesome Oscillator.

Accumulation/Distribution (A/D)
/ (Accumulation/Distribution, A/D)
.
: (),
( ) .
, -
(On Balance Volume).
.
Accumulation/Distribution (A/D) ()
, .
, () ,
.
Accumulation/Distribution
.
. , ,
, .

:

. ,
. ,
. ,
.
A/D = SUM (((CLOSE - LOW) - (HIGH - CLOSE)) * VOLUME / (HIGH - LOW), N)

:
CLOSE

LOW

HIGH

SUM (..., N) N .

;
;
;
;

Alligator
" . 1530%
- , , ,
. :
, .
. , -
, ,
."
Bill Williams
Alligator ( ,
Moving Averages), .

( ) ,
(13-
, 8 ).
( )
(8- ,
5 ).
( )
, (5-
, 3 ).

,
. 1530
, ,
.
, ,
. , ,
, . , , ,
. :
, . ,
- ( )
.

MEDIAN PRICE = (HIGH + LOW) / 2


ALLIGATORS JAW = SMMA (MEDEAN PRICE, 13, 8)
ALLIGATORS TEETH = SMMA (MEDEAN PRICE, 8, 5)
ALLIGATORS LIPS = SMMA (MEDEAN PRICE, 5, 3)
:
MEDIAN PRICE ;

HIGH ;
LOW ;
SMMA (A, B, C) . ,
, . , SMMA (MEDIAN PRICE, 5, 3)
, ,
5 , 3;
ALLIGATORS JAW ( );
ALLIGATORS TEETH ( );
ALLIGATORS LIPS ( ).

Average Directional Movement Index


(Average Directional
Movement Index, ADX) .
.

14- +DI 14- -DI.
, +DI -DI. .
, +DI -DI, , +DI
-DI.
.
.
. , +DI -DI
. +DI -DI,
. +DI -DI, .
. ,
(+DI -DI) ,
, .
, .

ADX = SUM ((+DI - (-DI)) / (+DI + (-DI)), N) / N


:
N , ;
SUM (..., N) N ;
+DI (positive directional
index);
-DI (negative directional
index).

Average True Range


(Average True Range, ATR)
.
,
.

Average True Range


, .
,
.
, .
Average True Range :
, ; ,
.

(True Range) :

;
;
.

(Average True Range, ATR)


.

Awesome Oscillator
(Awesome Oscillator, AO)
34- ,
(H+L)/2, 5- ,
(H+L)/2. ,
.

, ,
. :

,
. .
, ;
, ,
.

, Awesome
Oscillator .


,
. :

, ;
,
( );
.


, ,
. :

,
( ), ,
( , ,
),
;
.
,
. ;
(
, ),
;
, ( )
,
.


Awesome Oscillator .
. :
, - . " "
.

Awesome Oscillator 34- ,


(H+L)/2, 5-
(+L)/2.
MEDIAN PRICE = (HIGH + LOW) / 2
AO = SMA (MEDIAN PRICE, 5) SMA (MEDIAN PRICE, 34)
:
MEDIAN PRICE ;
HIGH ;
LOW ;
SMA .

Bollinger Bands
(Bollinger Bands, BB) Envelopes.
, (Envelopes)
, ,
Bollinger Bands ,
.
, : ,
, .
Bollinger Bands ,
. Envelopes, Bollinger Bands ,
.
,

. (..,
) , .
(.., ) , .
:
1. , ,
.
2. ,
;
3.
, ;
4. , ,
.
.

. (MIDDLE LINE, ML)

.
ML = SUM (CLOSE, N) / N = SMA (CLOSE, N)
(TOP LINE, TL) ,

(D).
TL = ML + (D * StdDev)
(BOTTOM LINE, BL) ,

.
BL = ML (D * StdDev)
:
SUM (..., N) N ;
CLOSE ;
N , ;
SMA ;
SQRT ;
StdDev :
StdDev = SQRT (SUM ((CLOSE - SMA (CLOSE, N))^2, N)/N)
20-
2 . ,
10 .

Commodity Channel Index


(Commodity Channel Index, CCI)
.
, , . , Commodity Channel Index
, .
Commodity Channel Index:

1.
, , Commodity
Channel Index .
.
2. /
100. +100
( ),
-100 - (
).

1. . ,
3.
TP = (HIGH + LOW + CLOSE) / 3
2. n- .
SMA (TP, N) = SUM (TP, N) / N
3. SMA(TP, N) TP n
.
D = TP - SMA (TP, N)
4. n- D
SMA (D, N) = SUM (D, N) / N
5. SMA (D, N) 0,015
M = SMA (D, N) * 0,015
6. M D
CCI = M / D
:
HIGH ;
LOW ;
CLOSE ;
SMA ;
SUM ;
N , .

DeMarker
(DeMarker, DeM)
.
, .
, .
n .
DeMarker
.
, ,
.
DeMarker 30,
. 70,
.
""
.


, .

DeMarker i :

DeMax (i)
HIGH (i) > HIGH (i - 1) , DeMax (i) = HIGH (i) - HIGH (i - 1),
DeMax (i) = 0
DeMin (i)
LOW (i) < LOW (i - 1), DeMin (i) = LOW (i - 1) - LOW (i),
DeMin (i) = 0
:
DMark (i) = SMA (DeMax, N) / (SMA (DeMax, N) + SMA (DeMin, N))

:
HIGH (i) ;
LOW (i) ;
HIGH (i - 1) ;
LOW (i - 1) ;
SMA ;
N , .

Elder-Rays
(Elder-Rays) -
.
(,
13). .
, : , (Bulls Power) (Bears Power).
Elder-Rays , .
, ,
, .
/ .
, :

( );
, ;
;
.

.
, :

( );
, ;
;
, .

Bulls

Power

Bulls Power Bears Power -


.

BULLS = HIGH - EMA


BEARS = LOW - EMA
:
BULLS ;
BEARS ;
HIGH ;
LOW ;
EMA .

Envelopes
(, Envelopes)
, , .

: , .
Envelopes
. , ,
.
Envelopes
:
(.., ),
, .
(Bollinger Bands, BB).

:
UPPER BAND = SMA (CLOSE, N) * [1 + K / 1000]
LOWER BAND = SMA (CLOSE, N) * [1 - K / 1000]
:
UPPER
BAND

LOWER
BAND

SMA

CLOSE

K / 1000 (

;
;
;
;
;

Force Index
(Force Index, FRC)
.
: ,

. ,
.
( 2 )
.
(, 13-),
.

, Force Index
( ).
,
.
, Force Index
.
,
.
, Force
Index , .

, .
, , .
, , .
, . , .

FORCE INDEX (i) = VOLUME (i) * ((MA (ApPRICE, N, i) - MA (ApPRICE, N, i-1))


:
FORCE
INDEX
(i)

;
VOLUME
(i)

;
MA (ApPRICE, N, i) N :
,
,

();
ApPRICE

.
N

.
MA (ApPRICE, N, i-1) .

Fractals
,
, (1530 )
. ,
.
(Fractals) ,
.
, , ,

. (
,
) .
High Low
.

Fractals
. ,
, ,
, .
, ,
,
.

Gator Oscillator
Gator Oscillator Alligator
/ ( ).
.

, , .

Ichimoku Kinko Hyo


(Ichimoku Kinko Hyo)
, ,
.
.

. ,
:

Tenkan-sen ,
, ;
Kijun-sen ;
Senkou Span A
, ;
Senkou Span B ,
.

Chinkou Span ,
. Senkou
. ,
, .

,
, .
,
, .
Chinkou Span ,
. .

Kijun-sen . , ,
. ,
. - .
, Tenkan-sen Kijun-sen .
. Tenkan-sen

. , .
, .

Market Facilitation Index


(Market Facilitation Index, BW MFI)
, .
, .
.

Market Facilitation Index ,


, : )
( ), )
, .., .
Market Facilitation Index ,
.
Market Facilitation Index , , ,
,
( ).
Market Facilitation Index , , ,
, ,
.
( ) .
,
. .

BW MFI ,
.
BW MFI = (HIGH - LOW) / VOLUME
:
HIGH

LOW

VOLUME .

;
;

Momentum
(Momentum)
.
.

, ,
/
(Moving Average Convergence/Divergence, MACD).
, Momentum ,
- .

.
Momentum
. ,
, .

( ) ,
.
.
,
( ),
- (
). ,
.

Momentum. ,
. , Momentum ,
.
.

Momentum n :
MOMENTUM = CLOSE (i) / CLOSE (i - n) * 100
:
CLOSE
(i)

CLOSE (i - n) n .

Money Flow Index


(Money Flow Index, MFI)
, .
Relative Strength Index,
, MFI .
Money Flow Index :

- ,
Money Flow Index ( ), ;
Money Flow Index 80 20,
.

Money Flow Index .


(Typical Price, TP) :
TP = (HIGH + LOW + CLOSE) / 3
(Money Flow, MF):

MF = TP * VOLUME

,
.
.
(POSITIVE MONEY FLOW)
.
(NEGATIVE MONEY FLOW)
.
(Money
:

Ratio,

MR)

MR = POSITIVE MONEY FLOW / NEGATIVE MONEY FLOW


, , :
MFI = 100 - (100 / (1 + MR))
:
HIGH

LOW

CLOSE

VOLUME .

;
;
;

Moving Average
(Moving Average, MA)
. Moving Average
.
, .
: (
), , . Moving Average
,
, ,
. .
, Moving Average ,
, .
(Simple Moving Average)
.
(Exponential Moving Average Linear Weighted Moving Average)
.

.
Moving Average, ,
.
Moving Average
, .
: ,
, .

.
:
Moving Average, ,
, Moving Average,
.
:

Simple Moving Average (SMA)


Exponential Moving Average (EMA)
Smoothed Moving Average (SMMA)
Linear Weighted Moving Average (LWMA) -

(Simple Moving Average, SMA)


, ,

(, 12 ) .
SMA = SUM (CLOSE (i), N) / N
:
SUM
CLOSE
(i)

N .

;
;

(Exponential Moving Average, EMA)



.

. - :
EMA = (CLOSE (i) * P) + (EMA (i - 1) * (100 - P))
:
CLOSE
(i)

EMA
(i
1)

P .

;
;

(Smoothed Moving Average, SMMA)


,
(SMA):
SUM1 = SUM (CLOSE (i), N)
SMMA1 = SUM1 / N
:
SMMA (i) = (SUM1 - SMMA (i - 1) + CLOSE (i)) / N
:

PREVSUM = SMMA (i-1) * N


SMMA (i) = (PREVSUM - SMMA (i - 1) + CLOSE (i)) / N
:
SUM

;
SUM1 N , ;
PREVSUM

;
SMMA
(i
1)

;
SMMA (i) ( );
CLOSE
(i)

;
N .

:
SMMA (i) = (SMMA (i - 1) * (N - 1) + CLOSE (i)) / N

- (Linear Weighted Moving Average,


LWMA)
,
.

.
LWMA = SUM (CLOSE (i) * i, N) / SUM (i, N)
:
SUM
CLOSE(i)

SUM
(i,
N)
N .

;
;
;

Moving Average Convergence/Divergence


/ (Moving Average
Convergence/Divergence, MACD) .
.
MACD
(EMA) 12 26.
, MACD
9- .
MACD ,
. MACD: ,
/ .

MACD
: Moving Average Convergence/Divergence
, ,

. / MACD
/.

/
Moving Average Convergence/Divergence
/.
(.., MACD ), ,
, ,
.

MACD ,
. , MACD
, . ,
, .
, /.

Moving Average Convergence/Divergence


26- 12-.
MACD 9- ,
.
MACD = EMA(CLOSE, 12)-EMA(CLOSE, 26)
SIGNAL = SMA(MACD, 9)
:
EMA -
SMA -
SIGNAL -

Moving Average of Oscillator


(Moving Average of Oscillator,
OsMA)
.
MACD, - .
OSMA = MACD-SIGNAL
:
MACD MACD ();
SIGNAL MACD.

On Balance Volume
(On Balance Volume, OBV)
, . ,
, .
,

OBV, ,
.
On Balance Volume , ,
OBV . ,
, .
, , OBV
.
On Balance Volume,
.
(
) (
).
On Balance Volume ,
, . ,
OBV . OBV
,
, .
, .
On Balance Volume .

.
OBV
. ,
,
, , OBV
.
On Balance Volume ,
.
,
OBV , , OBV .
, .

, : OBV (i) = OBV (i - 1) + VOLUME (i)


, : OBV (i) = OBV (i - 1) - VOLUME (i)
, : OBV (i) = OBV (i - 1)
:
OBV (i) On Balance Volume ;
OBV (i - 1) On Balance Volume ;
VOLUME (i) .

Parabolic SAR
SAR (Parabolic SAR)
. .

, , Parabolic SAR
.
(Up Trend) , (Down
Trend) .
Parabolic SAR, ,
.

. (
) , .
Parabolic SAR .
, ,
Parabolic SAR.
(trailing stop).
( Parabolic SAR),
,
. Parabolic SAR
.

: SAR (i) = ACCELERATION * (HIGH (i - 1) - SAR (i - 1)) + SAR (i - 1)


: SAR (i) = ACCELERATION * (LOW (i - 1) - SAR (i - 1)) - SAR (i - 1)
:
SAR (i - 1) Parabolic SAR
ACCELERATION

HIGH
(i
1)

LOW (i - 1) .

;
;

,
.
(ACCELERATION), Parabolic SAR . ,
, .

Relative Strength Index


(Relative Strength Index, RSI)
, 0 100.
Relative Strength Index, . 14- .
9- 25- .
Relative Strength Index
, , RSI
.
.
, (failure swing).
.
Relative Strenght Index:


Relative Strength Index 70,
30,
.


Relative Strength Index ,
, .
( )
, Relative Strength Index
() ().

Relative Strength Index
, .

, ,
(), ()
RSI.
Relative Strength Index.

Relative Strenght Index:


RSI = 100 - (100 / (1 + U / D))
:
U

D .

Relative Vigor Index


(Relative Vigor Index, RVI)
, , ,
, . ,
, .
,
.
. 10.
4-
Relative Strength Index.
.

RVI = (CLOSE - OPEN) / (HIGH - LOW)


:
OPEN

HIGH

LOW

CLOSE .

Standard Deviation

;
;
;

.
. ,
, ,
. ,
,
.
. ,
Bollinger Bands
.

StdDev = SQRT (SUM (CLOSE - SMA (CLOSE, N), N)^2)/N


:
SQRT
SUM
(...,
SMA
(...,
N)
N .

N)

;
;

N;

Stochastic Oscillator
(Stochastic Oscillator)
.
. %K. %D -
%K. %K , %D .
:

, (%K %D)
( 20), , ,
( 80),
;
, %K %D, ,
%K %D.
, , ,

.

%K ,
;
%K ,
%K, 1
, 3 - ;
%D ,
%K;
%D (, ,
), %D.

%K:

%K = (CLOSE - MIN (LOW (%K))) / (MAX (HIGH (%K)) - MIN (LOW (%K))) * 100
:
CLOSE

MIN
(LOW
(%K))

MAX (HIGH (%K)) - %K.

%K;

%D :
%D = SMA (%K, N)
:
N
SMA - .

Williams Percent Range


(Williams Percent Range, %R) -
, /. Williams Percent
Range Stochastic Oscillator.
, ,
.
-80% -100%
. 0% -20% ,
. Williams' Percent Range
(, -30%).
.
/ ,
, .
, /
, , .
Williams' Percent Range
.
, .
Williams Percent Range
.

Williams Percent Range


Stochastic Oscillator:
%R = (MAX (HIGH (i - n)) - CLOSE (i)) / (MAX (HIGH (i - n)) - MIN (LOW (i - n))) * 100
:
CLOSE
(i)

MAX (HIGH (i - n)) n


MIN (LOW (i - n)) n .

;
;

:
, . ,
-
. ,
. ,
, .
.
, ,
.
.
,
Stop Loss Take Profit.
Stop Loss Take Profit. ,
,
.



. ,
.
.
- .
: , , .



.
. ASK ( ),
BID ( ).
( ).
.


.

. :
1. Buy Limit "ASK"
.
. ,
, , ;
2. Buy Stop "ASK"
.
. ,
;
3. Sell Limit "BID"
.
. ,
, , ;
4. Sell Stop "BID"
.
. ,
.

.

.


,
.
, .
.

.
ASK-, BID-.

.



.
.
.
.
ASK-, BID-.

;

;
BID-.
ASK-.

ASK- ,
" Ask" .


,
.
,
.
(Trailing Stop).
, ,
.

, , .
""
.
.
.

, .
,
.
. ,
,
. ,
. , .

.
, "" .
" "
.
: , (
). , ,
, .
, .


,
. ,
. ,
, . ,
"" (Requote)
, .


.
,
.

:
.


:
, . ,
-
. ,
. ,
, .
.

. (),
.
:


;
,
;
Buy Limit, Buy
Stop, Sell Limit Sell Stop;

;

.



.
, .



" ",
"",
F9 " ".
" " " "
" ".
"". :

, ;
( ) ;
();
();

: ,
.

().
25 .
6
. , ;

/ .
(), .
, ,
.
, ;
: .
:
.

, "Sell"
"Buy".
.
: ,
"".
.
, "Sell" "Buy" .


, " S/L T/P".
.
,
. " "
, ( "
") .


,
, " ".
,
. " "
,
.
, .



.
" "
" " " "
"".
"".


.
"" "".
, ,
.

, "" .
.
,
. " "
"S/L" "T/P". ,
" ", .
: " " " " ,
.


. ,
, .
.
, GOLD,
.
,
.



.
:
Bid, Ask.


" "
.
, ,
"". , .
:

" "
. , " ..."
;
.
"..." "" ,
, ;
. ,
" ", ;
BID-.
ASK-.
ASK- , " Ask"
.



.
, .
"" ( ).
"" " ".
.
, " ...".
. ,
. ( )
, ( )
( ) .



, .
"" ( ). ""
" ".
"
...". .
, ,
.
, ,
.
, .
,
.
: " "
. ""


"".
" ",
"",
F9, " " " " "
",
" ". "" " ".
(), ,
. ,
. " " :

: Buy Limit, Buy Stop, Sell Limit Sell Stop;


,
;
.
, .
: 10 !

" " ,
. .
" "
. , " ",
( ).
, ,
.
. "
".
:
.



. ,
" "
" ".
.
, ,
. "".
:
.
" "
.
" ",
.


.

" "
" ".
.
.
, "".
" " .


.
, - .
.

(, , ).
, .

,
.
MetaQuotes
Language 4, MetaEditor .
:

,
- ;

, ;
, .

MetaQuotes Language 4
MetaQuotes
Language 4 (MQL 4). ,

. , MQL 4
, .
MQL 4 , .
MQL 4 ,
, , .
MetaEditor.
MetaQuotes Language Dictionary,
.
, MQL 4, :

(),
.
, .
,
;

.
;
, -
. , , .

MetaEditor
MetaEditor .
,
, MetaQuotes Language 4 (MQL4).
, ,
.
,
MQL4-.
. MQL4 .

.
MQL4.
. ,
MetaEditor.
, .
MetaEditor
.

() ,
MetaQuotes Language 4 (MQL 4),
.

.
.

, .
:



"MetaEditor".
MQL4-.


.
. ,
.

.
.

, .



MetaQuotes Language 4 (MQL 4) MetaEditor.
, "" "
", " MetaQuotes Language",
F4
"".
, MQL4. ""
:

;
;
;
.
, "", "".

.
(*.MQ4) /EXPERTS
. .
.
" ",
F9
.
*.EX4,
/EXPERTS.
" " .
, . ,
.


,
"" "
". ,
.
EX4-.
,
.
: ,
. , .



.
. " "
- Ctrl+O.
"". :

.
,
start().
. ,
"".
, .
:
, ,
.
;
o
.

,
. , ,
. ,
"".
o


. ,
. , ,
. ( ),
.

, .
, .
.

( ).

" " ,
. ,
, , .
,
.
(
).

DLL
DLL-.
, -
. ,
DLL-.
.

DLL
, DLL.
. ,
.
.


MQL4, . ,
MQL4-.
.


, .
. " "
" "
. ,
"Drag'n'Drop" .
. "" :

:
1. Long&Short ;
2. Only Long ;
3. Only Short .
/ ;

;

/
;

;
DLL / DLL-;
DLL
DLL-;
/
.

" " .
extern.
.

( "").
.
"" . ""
.
, .
,
"". .
:
. , ,
. start().
, .
, ""
.

.
.

.
: .
, .


, .
.
" "
. ,
.
:


;
;
, ;

""
;

. start()
, init() .

,
.
.
,
.
"".
.


, .
, :




()


"". "" .


" " .
.
.
/EXPERTS.
,
. "
". :

.
,
.
.
: Only Long ; Only Short
; Long and Short .
,
.
( ,
,
.

. ,
.
.
.

"". ,
"", "" "",
.
" ".

.
.


, .
()
. .

.
*.FXT, /TESTER.
,
.
/TESTER "",
.
"", "".
, ,
.
"", .
,
512 .
: - 512 ,

. .



TOHLCV ( HST).
.
. ,
.
. ,

.

.
,
. ,
, .
,
.

:

( )

, . ,

,
. .

(Open = High = Low = Close,


Volume=1),
.
.
, !

( +
)

, .
().

.
12
. , 12
. .
,
. 12,
6 .
Open, High, Low, Close .
6
.

(
)
. " ",

, . , ,
, .
, , .

. ,
. ,
.


.
.
:
o


, ,
;

, .

"".
" " .
. :
1. .
, ( );
2.
.
;
3. . , ,
. ,
H1 - ,
M30,
M1.
( )
. "".
, .
,
.


,
.
.
,
( , ).
,
, .

, ,
, , .
,
. , 100
.
.
, " "
"" "". ,
, "" .

.


""", ""

. .
, "||".
. F12
.
.
" "
.

: "", ""
.


:
"", "", "" "".

;
;
(sell, buy, s/l, t/p, modify, close at stop );
(
, );
, ;
;
S/L .
, ;
T/P .
, ;
/. /
;
.
.

,
.
"" - Ctrl+C
.
, . ,
, " ".
HTML- .
" ".
" " " "
.
" :" " :" .

.

"" (
"") (
""). , ,
"" "" .
.
,
.

"" .

"" - Ctrl+C

. GIF- .
" "
- Ctrl+S. " " "
" .
" :" "
:" . ,

.

""
.
. :

;
;

.
. :
1. .
,
;
2.
.
;
3. . ,
, . ,
H1 -
,
M30, ;
:
(" "), .
" " "n/a" ;

;
.
" " " ";
;
;
.
, ;
.

/ . ,
/ ;
;

;
;
(% )
;

(% )
;
(% )
, ;
(% )
, ;

;

;
(
, );
(
, );
()
;
()
;
( )

;
( )

;

;

.


HTML-. ""
" " .
- Ctrl+C.

""
""
, .
" ", , ,
, c .
/TESTER/LOGS.
/EXPERTS/LOGS,
YYYYMMDD.LOG.
"" .
,
. " "
.
.

FXT
*.FXT
.
.

,
, .

/. ""
FXT- /TESTER/HISTORY.
"[ ][ ]_[ (0
, 1 , 2 )].FXT" ( ).
, "EURUSD1440_1.FXT", "EURUSD" , "1440"
D1 (1440 , 24 ), "1" .
. :
//+------------------------------------------------------------------+
//|
|
//+------------------------------------------------------------------+
struct TestHistoryHeader
{
int
version;
char
copyright[64];
//
char
symbol[12];
int
period;
int
model;
//
int
bars;
//
time_t
fromdate;
time_t
todate;
double
modelquality;
//
//----
char
currency[12];
//
int
spread;
int
digits;
double
point;
int
lot_min;
//
int
lot_max;
//
int
lot_step;
int
stops_level;
//
int
gtc_pendings;
//
//----
double
contract_size;
//
double
tick_value;
//
double
tick_size;
//
int
profit_mode;
// { PROFIT_CALC_FOREX, PROFIT_CALC_CFD,
PROFIT_CALC_FUTURES }
//----
int
swap_enable;
//
int
swap_type;
//
{ SWAP_BY_POINTS, SWAP_BY_DOLLARS,
SWAP_BY_INTEREST }
double
swap_long;
double
swap_short;
//
int
swap_rollover3days; //
//----
int
leverage;
//
int
free_margin_mode; // { MARGIN_DONT_USE, MARGIN_USE_ALL,
MARGIN_USE_PROFIT, MARGIN_USE_LOSS }
int
margin_mode;
//
{
MARGIN_CALC_FOREX,MARGIN_CALC_CFD,MARGIN_CALC_FUTURES,MARGIN_CALC_CFDINDEX };
int
margin_stopout; //
double
margin_initial; //
double
margin_maintenance; //
double
margin_hedged;
//
double
margin_divider; //
char
margin_currency[12];//
//----
double
comm_base;
//

int
comm_type;
// { COMM_TYPE_MONEY, COMM_TYPE_PIPS,
COMM_TYPE_PERCENT }
int
comm_lots;
// { COMMISSION_PER_LOT, COMMISSION_PER_DEAL }
//---int
from_bar;
// fromdate
int
to_bar;
// todate
int
start_period[6]; // ,
//---int
reserved[64];
};

:
#pragma pack(push,1)
struct TestHistory
{
time_t
otm;
double
open;
double
low;
double
high;
double
close;
double
volume;
time_t
ctm;
int
flag;
};
#pragma pack(pop)

//
// OHLCV

//
// (0- , )



.
, .
, .
, ""
"".



.
, .
, .
,
. , :




()


"". ""
.


" " ,
. .

.
/EXPERTS.
,
. " ".
:

.
,
.
. : Only
Long ; Only Short ; Long and
Short . ,
;

( , ,

.

. ,
.
.
.
"", "" "".
,
. ,
. ,
. ,
, "".
. ,
"",
.

( "", "" ""). ,
"" .
.


.
, . :
1. ;
2. ;
3. %
;
4. % ;
5. .

;
6.
;
7. .

;

8.
.
,
. ""
.


, .
()
. .

.
*.FXT, /TESTER.
,
.
/TESTER "",
.
"", "".
, ,
. ,
"", .
,
512 .
: - 512 ,

. .



OHLC.
. /
. ,
.
. ,

.

. .

. , ,
.
,
.

:

( )

, . ,

,
. .

(Open = High = Low = Close,


Volume=1),
.
.
, !

( +
)

, .
().

.
12
. , 12
. .
,
. 12,
6 .
Open, High, Low, Close .
6
.

(
)
.
" ",
,
. , -
,
. , ,
.
.
, .
,
.


.
.
:
o


, ,
;


, .

( )
. "".
, .
.


,
.
.
,
( , ).
,
, .

, ,
, , .
,
. , 100
.
.
, " "
"" "".
, "" .

.
:

"", ""
;
, , .



" " " ".

,
() .
,
. ,
"".
: " " " ".
" ", ,
, .
:

( );
;
.
, ;
.

/ . ,
/ ;
$ ,
;
% ,
;

.

,
.
" "
( , " ")
. ""
. "",
.
.
"" - Ctrl+C

. ,
. , ,
" ".
HTML- .
" ".
:

/
;
/ " ";

.
A;
/ .
, G.

" " .

. ,
( ) ( )
.

"" .
"" - Ctrl+C

. GIF- .
" "
- Ctrl+S.


,
MetaQuotes Language 4
.
/ .
,
. ,
.

.
:
, .
:



"MetaEditor".
MQL4-.


.
. ,
.


.

, .



MetaQuotes Language 4 (MQL 4) MetaEditor.
, ""
" ", "
MetaQuotes Language", F4
"".
MQL4- ,
MQL4-.
" "
:

;
;
;
.
, "", "".

,
. ,
.
. ,
.
. (*.MQ4)
/EXPERTS/INDICATORS
.
.
.
" ", F9

.
*.EX4,
/EXPERTS/INDICATORS.
" " .


,
"" "
". MetaEditor,
.

EX4-.
, .
: , .
,
.



. ( )
.
" " - Ctrl+O.
"".
:

DLL

DLL-. ,
- . , MQL4 DLL-.


MQL4-, . ,
MQL4.


. "
"
" " . ,
"Drag'n'Drop"
. :

"" DLL MQL4.


, ,
.
.

" " ,
. ,
.

""
. , .

""
. , "",
. ,
.
: , ,
.

""
. ,
. , ,

: ,
. " "
/ .

.
, ,
(, MACD)
(, Moving Average).

, .
.
"", "
" " ".
: ""
, .


, MetaQuotes Language 4 (MQL 4)
.
, . ,
, . , ,
, , .
:


"MetaEditor".

MQL4-.


.
. ,
.

.
.

, .



MetaQuotes Language 4 (MQL 4) MetaEditor.
, "" "
", " MetaQuotes Language", F4

"". MQL4-
, MQL4. ""
:

;
;
.

.
(*.MQ4) /EXPERTS/SCRIPTS
. .
.
" ",
F9
.
*.EX4,
/EXPERTS/SCRIPTS.
" " .


,
"" "
". ,
.
EX4-.
, MQL4.



.
. " "
- Ctrl+O.
"".
:

, , .
, .
.

" " ,
. ,
, , .
,
.

DLL
DLL-.
, -
. ,
DLL-.

DLL
, DLL.
. ,
.


MQL4, . ,
MQL4-.


, .
. ,
"#property show_inputs", .
"" :

:
1. Long&Short ;
2. Only Long ;
3. Only Short .
/ ;

;
/
;

;
DLL / DLL-;
DLL
DLL-;
/
.

" " .
extern. ,
.

( "").
.
"" . ""
.
, .
, "".
, .
: ,
.
.
" " " "
. ,
"Drag'n'Drop" .
"
", MQL4-.
: .


. .
, .
"
" . ,
.
:

""
MQL4-.


.
.
:
terminal.exe config\start.ini
terminal.exe test1.txt
terminal.exe "C:\Program Files\MetaTrader 4\config\settings25.ini"

(Drive:\SubDirectory\FileName),
.
:
[] = []
" " (;) .
:
, - ( "" ),
FTP ( "" ),
( "" ),
, .

Profile - profiles.
.
, .
MarketWatch - ( \symbolsets),
.
" - ".
Login - , .
, .
Password - . ,

.
Server - , .
srv-,
config. ,
.
AutoConfiguration - "true" "false" ,
. ,
.

DataServer - .
. ,
.
EnableDDE - "true" "false" , DDE. ,
.
EnableNews - "true" "false" ,
. ,
.

:
; common settings
Profile=test 3
MarketWatch=set2.set
Login=12345
Password=xxxxxx
Server=MetaQuotes-demo
AutoConfiguration=false
DataServer=192.168.0.1:443
EnableDDE=true
EnableNews=false

ProxyEnable - "true" "false" ,


- .
ProxyServer - -.
ProxyType - -. "HTTP", "SOCKS4"
"SOCKS5".
ProxyLogin - -.
ProxyPassword - -.

- ,
( ""
).
:
; proxy settings
ProxyEnable=true
ProxyServer=proxy.company.com:3128
ProxyType=HTTP
ProxyLogin=user45
ProxyPassword=xxx

FTP

FTPEnable - / . "true"
"false".
FTPPassiveMode - / .
"true" "false".
FTPAccount - , FTP.
FTPServer - FTP-.
FTPLogin - FTP-.

FTPPassword - FTP-.
FTPPath - FTP-, .
FTPPeriod - FTP- .

- ,
( "" ).
:
; ftp settings
FTPEnable=true
FTPPassiveMode=false
FTPAccount=12345
FTPServer=ftp.company.com
FTPLogin=admin
FTPPassword=pAssWOrd123
FTPPath=/inetpub
FTPPeriod=10

ExpertsEnable - / .
ExpertsDllImport - / DLL.
ExpertsDllConfirm - / DLL.
ExpertsExpImport - /
MQL4-.
ExpertsTrades - / .
ExpertsTradesConfirm - /
.

: "true" "false".

- ,
( "" ).
:
; experts settings
ExpertsEnable=true
ExpertsDllImport=true
ExpertsDllConfirm=true
ExpertsExpImport=true
ExpertsTrades=true
ExpertsTradesConfirm=false

Symbol - ,
.
. ,
, .
, .
Period - (M1, M5, M15, M30, H1, H4, D1, W1, MN).
H1.

Template - ( \templates),
.
Expert - ,
. ,
Symbol Period. Symbol ,
,
. ,
. , .
ExpertParameters - ( \experts\presets).
, "
- ". ,
.
.
Script - ,
. , ( ).
ScriptParameters - ( \experts\presets).
, .

:
; open chart and run expert and/or script
Symbol=EURUSD
Period=H4
Template=popular.tpl
Expert=MACD Sample
ExpertParameters=macd.set
Script=period_converter
ScriptParameters=

TestExpert - , .
, .
TestExpertParameters - ( \tester).
, "
- " ,
.
"" "" ( " "
) ,
\tester\[ ].ini .
TestSymbol - ,
.
.
TestPeriod - (M1, M5, M15, M30, H1, H4, D1, W1, MN).
H1.
TestModel - 0, 1 2 ( ,
, ).
0 ( ).
TestRecalculate - / "".
"true" "false".
"false".
TestOptimization - / . "true"
"false". "false".

TestDateEnable - / " ".


"true" "false".
"false".
TestFromDate - YYYY.MM.DD.
1970.01.01.
TestToDate - YYYY.MM.DD.
1970.01.01.
TestReport - .
. , :
tester\MovingAverageReport". ,
".htm".
.
TestReplaceReport - / .
"true" "false". "false"
,
. , "MovingAverageReport[1].htm".
"false".
TestShutdownTerminal - /
. "true" "false".
"false".
"",
"false", .

:
; start strategy tester
TestExpert=Moving Average
TestExpertParameters=ma0.set
TestSymbol=EURUSD
TestPeriod=H1
TestModel=2
TestRecalculate=false
TestOptimization=false
TestDateEnable=true
TestFromDate=1970.01.01
TestToDate=2006.06.06
TestReport=MovingAverageReport
TestReplaceReport=false
TestShutdownTerminal=true



. .

.
. , .
,
.
" ". , "
" F2.
"
".

. ,
" . :",
.
SSSSSSPP.hst ( SSSSSS - , PP -
) /HISTORY.
,
.
" " .
.
,
. , ,
"OK".
. "",
.
.


CSV, PRN HTM.
" "
"".
. ,
.
CSV, PRN, HTM HST.
" " ,
. , "",
:

.
, , ;
.
, , ;
() ;
;
.
, "Ctrl" "Shift";
/ ;

(HST-)

struct HistoryHeader
{
int
version;
//
char
copyright[64];
//
char
symbol[12];
//
int
period;
//
int
digits;
//
time_t
timesign;
//
time_t
last_sync;
//
int
unused[13];
//
};

( )

#pragma pack(push,1)
//----
struct RateInfo
{
time_t
ctm;
//
double
open;
double
low;
double
high;
double
close;
double
vol;
};
#pragma pack(pop)


,
, .
.
, ,
.
"SYMBOL, BID, ASK, DATE" ( , , ,
) .

"DDE" (Dynamic Data Exchange).
MS Windows
. DDE (
ADVISE), ( REQUEST) .
N/A REQUEST,
.
DDE
" DDE " .

: DDE .
.
DDE- "DDEsample.xls":
BID: = MT4|BID!USDCHF
: 1.5773
ASK: = MT4|ASK!USDCHF
: 1.5778
HIGH: = MT4|HIGH!USDCHF
: 1.5801
LOW: = MT4|LOW!USDCHF
: 1.5741
TIME: = MT4|TIME!USDCHF
: 21.05.02 9:52
QUOTE: = MT4|QUOTE!USDCHF
: 21.05.02 9:52 1.5773 1.5778 1.5776

: MS Excel
" Excel ".



. ,
. ,


. ,

, .
, ,
(
).

.
.
, " "
F3. ,
.
.
,
.
.



. :

(Bid Ask) ;
( )
;
,
;
GTC
. "" , ;
;

;
;
(Forex, CFD,
Futures);
( ,
);
;
;

(Forex, CFD, Futures)
.

, ""
" " "
".


.
.

. ,
- .
" Languages". ,
.
.
MultiLanguage Pack,
.
. MultiLanguage Pack
, " Languages MultiLanguage Pack".
MultiLanguage Pack
.

Datacenter.ini
,
, .
datacenter.ini
. datacenter.ini
/config .
" "
datacenter.ini.
,
. .
datacenter.ini:
[ ][][ ]
:

- .srv;
- ;
- IP : .

, (;), .

datacenter.ini:
;---------------;
;---------------MetaQuotes-demo1 192.168.1.4:443
MetaQuotes-demo2, 192.168.1.4:444
;---------------MetaQuotes-demo3 192.168.1.5:445
MetaQuotes-demo4, 192.168.1.5:446