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