//+------------------------------------------------------------------+ //| Multipaire Indicator.mq4 | //| Copyright © 2010, MetaQuotes Software Corp. | //| http://wallstreetfx.comze.com/ | //+------------------------------------------------------------------+ #property copyright "Damien S" #property link "http://wallstreetfx.comze.com/" #property indicator_separate_window #property indicator_buffers 7 #property indicator_color1 OrangeRed #property indicator_color2 Black #property indicator_color3 Green #property indicator_color4 Black #property indicator_color5 Black #property indicator_color6 Red #property indicator_color7 Red extern string Paire = "EURUSD"; extern string Indicator= "CCI"; extern string setup_a=" Indicateur à une seule période" ; extern int Période =14; extern string setup_b= "Pour le MACD et OSMA"; extern int fast = 12; extern int slow= 26; extern int signal =9; extern string setup_c="Pour le Stochastique"; extern int KPeriod=5; extern int DPeriod=3; extern int Slowing=3; extern string setup_d="Définition du style"; extern string Style = "LIGNE"; extern int Style_point= 159; extern string setup_e="Définition du style de prix et MA"; extern string price ="CLOSE"; extern string ma_style ="SMA"; double Id[]; double Id_2[]; double Id_3[]; double ext_1[]; double ext_2[]; double ext_3[]; double ext_4[]; int init() { IndicatorShortName("Multi indic("+Paire+","+Indicator+","+Période+")"); SetIndexStyle(0,DRAW_LINE,0,2); SetIndexBuffer(0,Id); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,Id_2); SetIndexStyle(2,DRAW_HISTOGRAM); SetIndexBuffer(2,Id_3); SetIndexStyle(3,DRAW_LINE); SetIndexBuffer(3,ext_1); SetIndexStyle(4,DRAW_LINE); SetIndexBuffer(4,ext_2); SetIndexStyle(5,DRAW_LINE); SetIndexBuffer(5,ext_3); SetIndexStyle(6,DRAW_LINE); SetIndexBuffer(6,ext_4); return(0); } void start() { int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; int limit=Bars-counted_bars; double prix,mode; string ls_0 = "Multi "; int li_8 = WindowFind(ls_0); for(int i=0; i