1 //+------------------------------------------------------------------+
\r
3 //| Copyright © 2011, Zarko Asenov |
\r
5 //+------------------------------------------------------------------+
\r
6 #property copyright "Copyright © 2011, Zarko Asenov"
\r
9 #property indicator_chart_window
\r
10 #property indicator_buffers 2
\r
11 #property indicator_color1 Red
\r
12 #property indicator_color2 DarkBlue
\r
14 double ExtMapBuffer1[];
\r
15 double ExtMapBuffer2[];
\r
16 //+------------------------------------------------------------------+
\r
17 //| Custom indicator initialization function |
\r
18 //+------------------------------------------------------------------+
\r
22 SetIndexStyle(0,DRAW_ARROW);
\r
23 SetIndexBuffer(0,ExtMapBuffer1);
\r
24 SetIndexEmptyValue(0,0.0);
\r
25 SetIndexStyle(1,DRAW_ARROW);
\r
26 SetIndexBuffer(1,ExtMapBuffer2);
\r
27 SetIndexEmptyValue(1,0.0);
\r
31 //+------------------------------------------------------------------+
\r
32 //| Custom indicator deinitialization function |
\r
33 //+------------------------------------------------------------------+
\r
41 //+------------------------------------------------------------------+
\r
42 //| Custom indicator iteration function |
\r
43 //+------------------------------------------------------------------+
\r
46 int counted_bars=IndicatorCounted();
\r
48 for(int i=Bars-counted_bars;i>=0;i--)
\r
56 //+------------------------------------------------------------------+