//+------------------------------------------------------------------+ //| Setting Chart.mq5 | //| Copyright 2014, MetaQuotes Software Corp. | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link "http://www.mql5.com" #property version "1.00" #property script_show_inputs #include input ENUM_CHART_MODE ChartMode=CHART_CANDLES;//Chart Mode input char ChartScale=3; // Chart Scale input bool ChartShowAskLine= true; //Show Ask Line input color ChartColorAsk = clrRed; //Ask Color input color ChartColorBid= clrCyan; //Bid Color input bool ChartScaleFix = true; //Scale Fix input bool ChartShowGrid = false;//Show Grid input bool ChartShift=true;//Chart Shift input bool ChartAutoScroll = true;//Auto Scroll input bool ChartShowOHLC = false; //Show OHLC input bool ChartShowPeriodSep=true;//Show Period Separator input bool ChartForeground=true;//Foreground long currChart; long prevChart=ChartFirst(); int i=0,limit=100; //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { //--- variables for chart ID while(i