1 //+------------------------------------------------------------------+
\r
3 //| Copyright © 2006, MetaQuotes Software Corp. |
\r
4 //| http://www.metaquotes.net |
\r
5 //+------------------------------------------------------------------+
\r
6 #property copyright "Copyright © 2006, HomeSoft-Tartan Corp."
\r
7 #property link "spiky@yranskeino.ru"
\r
9 #property indicator_chart_window
\r
10 #property indicator_buffers 1
\r
11 #property indicator_color1 Gold
\r
13 extern int t3_period=21;
\r
14 extern double b=0.7;
\r
15 extern int mBar =3000;
\r
20 double ExtMapBuffer1[];
\r
22 //+------------------------------------------------------------------+
\r
23 //| Custom indicator initialization function |
\r
24 //+------------------------------------------------------------------+
\r
28 SetIndexStyle(0,DRAW_LINE);
\r
29 SetIndexBuffer(0,ExtMapBuffer1);
\r
33 //+------------------------------------------------------------------+
\r
34 //| Custom indicator iteration function |
\r
35 //+------------------------------------------------------------------+
\r
38 double e1, e2, e3, e4, e5, e6, c1, c2, c3, c4, n, w1, w2, b2, b3;
\r
56 for(int i=mBar; i>=0; i--)
\r
62 e1 = w1*dpo + w2*e1;
\r
69 t3 = c1*e6 + c2*e5 + c3*e4 + c4*e3;
\r
70 ExtMapBuffer1[i]=t3;
\r
75 //+------------------------------------------------------------------+