3 Äëÿ ðàáîòû èíäèêàòîðà ñëåäóåò ïîëîæèòü ôàéëû
\r
7 â ïàïêó (äèðåêòîðèþ): MetaTrader\experts\include\
\r
9 â ïàïêó (äèðåêòîðèþ): MetaTrader\indicators\
\r
11 //+SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS+
\r
13 //| JVEL1: Copyright © 2005, Weld, Jurik Research |
\r
14 //| http://weld.torguem.net |
\r
15 //| MQL4+3color: Copyright © 2006, Nikolay Kositsin |
\r
16 //| Khabarovsk, farria@mail.redcom.ru |
\r
17 //+SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS+
\r
18 #property copyright "Nikolay Kositsin"
\r
19 #property link "farria@mail.redcom.ru"
\r
20 //---- îòðèñîâêà èíäèêàòîðà â îòäåëüíîì îêíå
\r
21 #property indicator_separate_window
\r
22 //---- êîëè÷åñòâî èíäèêàòîðíûõ áóôôåðîâ
\r
23 #property indicator_buffers 8
\r
24 //---- öâåòà èíäèêàòîðà
\r
25 #property indicator_color1 SlateBlue
\r
26 #property indicator_color2 SpringGreen
\r
27 #property indicator_color3 Magenta
\r
28 #property indicator_color4 Gray
\r
29 //---- Bollinger Bands öâåòà
\r
30 #property indicator_color5 Blue
\r
31 #property indicator_color6 Blue
\r
32 #property indicator_color7 Red
\r
33 #property indicator_color8 Red
\r
34 //---- òîëùèíà èíäèêàòîðíûõ ëèíèé
\r
35 #property indicator_width1 2
\r
36 #property indicator_width2 2
\r
37 #property indicator_width3 2
\r
38 #property indicator_width4 2
\r
39 //---- ñòèëü îãèáàþùåé ëèíèè
\r
40 #property indicator_style1 0
\r
41 //---- ñòèëü ëèíèé Bollinger Bands
\r
42 #property indicator_style5 4
\r
43 #property indicator_style6 4
\r
44 #property indicator_style7 4
\r
45 #property indicator_style8 4
\r
46 //---- ïàðàìåòðû ãîðèçîíòàëüíûõ óðîâíåé èíäèêàòîðà
\r
47 #property indicator_level1 0.0
\r
48 #property indicator_levelcolor DarkGray
\r
49 #property indicator_levelstyle 4
\r
50 //---- ÂÕÎÄÍÛÅ ÏÀÐÀÌÅÒÐÛ ÈÍÄÈÊÀÒÎÐÀ þþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþææ+
\r
51 extern int Depth=10; // ãëóáèíà ñãëàæèâàíèÿ èíäèêàòîðà
\r
52 extern int Smooth_Length=3; // ãëóáèíà JMA ñãëàæèâàíèÿ ãîòîâîãî èíäèêàòîðà
\r
53 extern int Smooth_Phase =100; // ïàðàìåòð JMA ñãëàæèâàíèÿ ãîòîâîãî èíäèêàòîðà, èçìåíÿþùèéñÿ â ïðåäåëàõ -100 ... +100, âëèÿåò íà êà÷åñòâî ïåðåõîäíîãî ïðîöåññà;
\r
54 extern int Input_Price_Customs = 4;//Âûáîð öåí, ïî êîòîðûì ïðîèçâîäèòñÿ ðàñ÷¸ò èíäèêàòîðà
\r
55 //(0-CLOSE, 1-OPEN, 2-HIGH, 3-LOW, 4-MEDIAN, 5-TYPICAL, 6-WEIGHTED, 7-Heiken Ashi Close, 8-SIMPL, 9-TRENDFOLLOW, 10-0.5*TRENDFOLLOW,
\r
56 //11-Heiken Ashi Low, 12-Heiken Ashi High, 13-Heiken Ashi Open, 14-Heiken Ashi Close.)
\r
57 //---- æææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææææ+
\r
58 //---- ââåäåíèå ôóíêöèè digits() äëÿ óñòàíîâêè ôîðìàòà òî÷íîñòè (êîëè÷åñòâî çíàêîâ ïîñëå äåñÿòè÷íîé òî÷êè) äëÿ âèçóàëèçàöèè çíà÷åíèé èíäèêàòîðà
\r
59 int digits(){return(0);}
\r
60 //---- Ââåäåíèå ôóíêöèè COUNT_begin() äëÿ âû÷èñëåíèÿ íîìåðà áàðà, íà÷èíàÿ ñ êîòîðîãî áóäåò îòðèñîâûâàòüñÿ èíäèêàòîð è ðàñ÷èòûâàòüñÿ Bollinger Bands
\r
61 int COUNT_begin(){return(Depth+30);}
\r
62 //---- óñòàíîâêà çíà÷åíèé èíäèêàòîðà, êîòîðûå íå áóäóò âèäèìû íà ãðàôèêå
\r
64 //---- Îïðåäåëåíèå íàçâàíèÿ èíäèêàòîðà
\r
65 string Label = "JVEL1";
\r
67 //---- Âêëþ÷åíèå â òåêñò èíäèêàòîðà åãî îñíîâíîãî òåêñòà
\r
68 #include <3c_BB_Osc.mqh>
\r
69 //---- +-----------------------------------------------+
\r
70 //---- ââåäåíèå ôóíêöèè INDICATOR ----------------------------------------------------------------------------+
\r
71 //---- îáðàùåíèå ê èñõîäíîìó èíäèêàòîðó äëÿ ïîëó÷åíèÿ èõîäíûõ çíà÷åíèé
\r
72 double INDICATOR(int INDICATOR.bar)
\r
74 return( iCustom( NULL, 0, "JVEL1", Depth, Smooth_Length, Smooth_Phase, Input_Price_Customs, 1, bar) );
\r
76 //---- -------------------------------------------------------------------------------------------------------+
\r