2 Äëÿ ðàáîòû èíäèêàòîðà ñëåäóåò ïîëîæèòü ôàéë JJMASeries.mqh â ïàïêó
\r
3 (äèðåêòîðèþ): MetaTrader\experts\include\
\r
5 //+SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS+
\r
7 //| Copyright © 2006, Nikolay Kositsin |
\r
8 //| Khabarovsk, farria@mail.redcom.ru |
\r
9 //+SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS+
\r
10 #property copyright "Nikolay Kositsin"
\r
11 #property link "farria@mail.redcom.ru"
\r
12 //---- îòðèñîâêà èíäèêàòîðà â îòäåëüíîì îêíå
\r
13 #property indicator_separate_window
\r
14 //---- êîëè÷åñòâî èíäèêàòîðíûõ áóôôåðîâ
\r
15 #property indicator_buffers 8
\r
16 //---- öâåòà èíäèêàòîðà
\r
17 #property indicator_color1 Purple
\r
18 #property indicator_color2 Blue
\r
19 #property indicator_color3 Magenta
\r
20 #property indicator_color4 Gray
\r
21 //---- Bollinger Bands öâåòà
\r
22 #property indicator_color5 Gray
\r
23 #property indicator_color6 Gray
\r
24 #property indicator_color7 Gold
\r
25 #property indicator_color8 Gold
\r
26 //---- òîëùèíà èíäèêàòîðíûõ ëèíèé
\r
27 #property indicator_width1 3
\r
28 #property indicator_width2 1
\r
29 #property indicator_width3 1
\r
30 #property indicator_width4 1
\r
31 //---- ñòèëü îãèáàþùåé ëèíèè
\r
32 #property indicator_style1 0
\r
33 //---- ñòèëü ëèíèé Bollinger Bands
\r
34 #property indicator_style5 4
\r
35 #property indicator_style6 4
\r
36 #property indicator_style7 4
\r
37 #property indicator_style8 4
\r
38 //---- ïàðàìåòðû ãîðèçîíòàëüíûõ óðîâíåé èíäèêàòîðà
\r
39 #property indicator_level1 0.0
\r
40 #property indicator_levelcolor Blue
\r
41 #property indicator_levelstyle 4
\r
42 //---- ÂÕÎÄÍÛÅ ÏÀÐÀÌÅÒÐÛ ÈÍÄÈÊÀÒÎÐÀ þþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþææ+
\r
43 extern int Length = 15; // ãëóáèíà ñãëàæèâàíèÿ DX
\r
44 extern int Phase =-100; // ïàðàìåòð, èçìåíÿþùèéñÿ â ïðåäåëàõ -100 ... +100, âëèÿåò íà êà÷åñòâî ïåðåõîäíûx ïðîöåññîâ +DM è -DM
\r
45 extern int Smooth = 3; // ãëóáèíà ñãëàæèâàíèÿ ãîòîâîãî èíäèêàòîðà
\r
46 extern int Smooth_Phase=-100; // ïàðàìåòð, èçìåíÿþùèéñÿ â ïðåäåëàõ -100 ... +100, âëèÿåò íà êà÷åñòâî ïåðåõîäíîãî ïðîöåññà ñãëàæèâàíèÿ
\r
47 //---- æææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ+
\r
48 //---- ââåäåíèå ôóíêöèè digits() äëÿ óñòàíîâêè ôîðìàòà òî÷íîñòè (êîëè÷åñòâî çíàêîâ ïîñëå äåñÿòè÷íîé òî÷êè) äëÿ âèçóàëèçàöèè çíà÷åíèé èíäèêàòîðà
\r
49 int digits(){return(0);}
\r
50 //---- Ââåäåíèå ôóíêöèè COUNT_begin() äëÿ âû÷èñëåíèÿ íîìåðà áàðà, íà÷èíàÿ ñ êîòîðîãî áóäåò îòðèñîâûâàòüñÿ èíäèêàòîð è ðàñ÷èòûâàòüñÿ Bollinger Bands
\r
51 int COUNT_begin(){return(60);}
\r
52 //---- óñòàíîâêà çíà÷åíèé èíäèêàòîðà, êîòîðûå íå áóäóò âèäèìû íà ãðàôèêå
\r
54 //---- Îïðåäåëåíèå íàçâàíèÿ èíäèêàòîðà
\r
55 string Label = "JADX";
\r
57 //---- Âêëþ÷åíèå â òåêñò èíäèêàòîðà åãî îñíîâíîãî òåêñòà
\r
58 #include <3c_BB_Osc.mqh>
\r
59 //---- +-----------------------------------------------+
\r
60 //---- ââåäåíèå ôóíêöèè INDICATOR -------------------------------------------------------------------------+
\r
61 //---- îáðàùåíèå ê èñõîäíîìó èíäèêàòîðó äëÿ ïîëó÷åíèÿ èõîäíûõ çíà÷åíèé
\r
62 double INDICATOR(int INDICATOR.bar)
\r
64 return( iCustom( NULL, 0, "JADX", Length, Phase,Smooth,Smooth_Phase, 0, 0, bar) );
\r
66 //---- ----------------------------------------------------------------------------------------------------+
\r