#property copyright "Copyright @2015, FT corp"
#property link ""
#property indicator_separate_window
#property indicator_buffers 6
#property indicator_color1 clrNONE
#property indicator_color2 clrNONE
#property indicator_color3 C'170,0,0'
#property indicator_color4 C'244,0,0'
#property indicator_color5 C'0,102,0'
#property indicator_color6 C'26,255,26'
#property indicator_width1 0
#property indicator_width2 0
#property indicator_width3 2
#property indicator_width4 4
#property indicator_width5 2
#property indicator_width6 4
#property indicator_maximum 20
#property indicator_minimum 5
extern double correct_1 = 0.025;
extern double correct_2 = 0.691;
extern int dist_search = 55;
int CountBars = 500;
double L0 = 0;
double L1 = 0;
double L2 = 0;
double L3 = 0;
double L0A = 0;
double L1A = 0;
double L2A = 0;
double L3A = 0;
double L0l = 0;
double L1l = 0;
double L2l = 0;
double L3l = 0;
double L0Al = 0;
double L1Al = 0;
double L2Al = 0;
double L3Al = 0;
double GrayUP[];
double OrangeUP[];
double RedUP[];
double GrayDN[];
double GreenDN[];
double LimeDN[];
double val1[];
double detouch[];
int init()
{ IndicatorDigits(1);
IndicatorBuffers(8);
SetIndexBuffer(0,GrayUP); SetIndexStyle(0,DRAW_NONE);
SetIndexBuffer(1,GrayDN); SetIndexStyle(1,DRAW_NONE);
SetIndexBuffer(2,OrangeUP); SetIndexStyle(2,DRAW_HISTOGRAM);
SetIndexBuffer(3,RedUP); SetIndexStyle(3,DRAW_HISTOGRAM);
SetIndexBuffer(4,GreenDN); SetIndexStyle(4,DRAW_HISTOGRAM);
SetIndexBuffer(5,LimeDN); SetIndexStyle(5,DRAW_HISTOGRAM);
SetIndexBuffer(7,val1);
SetIndexBuffer(6,detouch);
if (CountBars+200>Bars) CountBars=Bars-200;
else CountBars = CountBars+200;
SetIndexDrawBegin(0,Bars-CountBars);
SetIndexDrawBegin(1,Bars-CountBars);
SetIndexDrawBegin(2,Bars-CountBars);
SetIndexDrawBegin(3,Bars-CountBars);
SetIndexDrawBegin(4,Bars-CountBars);
SetIndexDrawBegin(5,Bars-CountBars);
SetIndexLabel(0,NULL);
SetIndexLabel(1,NULL);
SetIndexLabel(2,NULL);
SetIndexLabel(3,NULL);
SetIndexLabel(4,NULL);
SetIndexLabel(5,NULL);
SetIndexLabel(6,NULL);
SetIndexLabel(7,NULL);
SetIndexLabel(8,NULL);
IndicatorShortName(" ");
return(0);
}
int deinit()
{
return(0);
}
int start()