#property indicator_separate_window #property indicator_buffers 8 #property indicator_color1 Black #property indicator_color2 Black #property indicator_color3 Black #property indicator_color4 Black #property indicator_color5 Black #property indicator_color6 Black #property indicator_color7 Black #property indicator_color8 Black extern string paire = "EURGBP"; extern int Time_frime= 0; extern bool Show_SAR=1; extern double Step=0.02; extern double Maximum=0.2; extern color color_SAR=Red; extern bool Show_BB=1; extern int BandsPeriod=20; extern double BandsDeviations=2.0; extern color color_BB=Black; extern bool Show_MA_1=1; extern int PRD_1=34; extern string price="CLOSE"; extern string ma_style ="EMA"; extern color color_MA1 = Black; extern bool Show_MA_2=1; extern int PRD_2=34; extern string price_ma2="HIGH"; extern string ma_style_ma2="EMA"; extern color color_MA2=Black; extern bool Show_MA_3=1; extern int PRD_3=34; extern string price_ma3="LOW"; extern string ma_style_ma3="EMA"; extern color color_MA3=Black; extern color Up=Green; extern color Down=Red; extern color ligne_prix=Black; extern int Corps=3; extern int Meches=1; double ind_1[]; double ind_2[]; double ind_3[]; double ind_4[]; double ind_5[]; double ind_6[]; double ind_7[]; double ind_8[]; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int init() { IndicatorShortName(paire); SetIndexStyle(0,DRAW_LINE,0,1,color_BB); SetIndexBuffer(0,ind_1); SetIndexStyle(1,DRAW_LINE,0,1,color_BB); SetIndexBuffer(1,ind_2); SetIndexStyle(2,DRAW_LINE,0,1,color_BB); SetIndexBuffer(2,ind_3); SetIndexStyle(3,DRAW_ARROW,0,0,color_SAR); SetIndexArrow(3,159); SetIndexBuffer(3,ind_4); SetIndexStyle(4,DRAW_LINE,0,1,color_MA1); SetIndexBuffer(4,ind_5); SetIndexStyle(5,DRAW_LINE,0,1,color_MA2); SetIndexBuffer(5,ind_6); SetIndexStyle(6,DRAW_LINE,0,1,color_MA3); SetIndexBuffer(6,ind_7); SetIndexStyle(7,DRAW_NONE); SetIndexBuffer(7,ind_8); return (0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int deinit() { Comment(""); return (0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { string TimingHL; string TimingOC; int window=WindowFind(paire); double prix,mode; double prix2,mode2; double prix3,mode3; for(int i=0; i