//+------------------------------------------------------------------+ //| Candle SnR.mq4 | //| Copyright 2005-2014, MetaQuotes Software Corp. | //| http://www.mql4.com | //+------------------------------------------------------------------+ #property copyright "2005-2014, MetaQuotes Software Corp." #property link "http://free-bonus-deposit.blogspot.com" #property description "Candle SnR" #property indicator_chart_window extern color MainColor=MediumTurquoise; extern int Days=20; int BarShift=1; double ratio; int TimeFrame; string Name; color iLcolor; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int init() { return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int deinit() { DelLine(); return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { //double Range=HighPrice - LowPrice; datetime TimeStart; datetime TimeEnd; double DayOpen; if(Volume[0]<3) DelLine(); if(Period()>=1440) TimeFrame=43200; if(Period()==240) TimeFrame=10080; if(Period()<=60) TimeFrame=1440; for(int x=1; x