/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/
#property copyright "Copyright ?2007, klot"
#property link      "klot@mail.ru"

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Yellow
#property indicator_color2 Blue
#property indicator_color3 Blue

#import "SSA.ex4" //"FullSSA.dll"
 void    fastsingular(double a[],int,int,int,double b[]);
 
extern int Lag = 30;
extern int NumComps = 4;
extern int N = 300;
extern int PRICE=0;

double g_ibuf_100[];
double gda_112[];


int init() {
   ArrayResize(gda_112, N);
  
   IndicatorBuffers(3);
   SetIndexBuffer(0, g_ibuf_100);
  
   SetIndexStyle(0, DRAW_LINE, EMPTY, 2);
  
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   int l_ind_counted_0 = IndicatorCounted();
   SetIndexDrawBegin(0, Bars - N);
   for (int li_20 = N - 1; li_20 >= 0; li_20--) {
      gda_112[li_20] = iMA(NULL, 0, 1, 0, MODE_SMA, PRICE, li_20);
   
   }
   fastsingular(gda_112, N, Lag, NumComps, g_ibuf_100);
  
   return (0);
}

