//+------------------------------------------------------------------+
//|                        Round Number Levels Hourly Chart Only.mq4 |
//|                                                    Edward Munroe |
//|                                           www.hughbrissforex.com |
//+------------------------------------------------------------------+
#property copyright "Edward Munroe"
#property link      "www.hughbrissforex.com"

#property indicator_chart_window

extern int timeframe = 60;
extern double pricestart = 1.0; 
extern int pipsgap = 1000;
extern int steps = 500;
extern color colour = Blue;
extern int width = 1;
extern int style = 0;
extern string styles = "0 to 3";

int start()
  {
   int i;
   
   for(i=0; i<steps;i++)
    {
    Draw("up"+i,pricestart+pipsgap*i*Point);
    }
    
   for(i=0; i<steps;i++)
    {
    Draw("down"+i,pricestart-pipsgap*i*Point);
    }
  
 
 return(0);
  }
  
   void Draw(string name, double level)
   {  
   ObjectDelete(name);
   ObjectCreate(name, OBJ_HLINE, 0, 0, level);
   ObjectSet(name, OBJPROP_STYLE, style);
   ObjectSet(name, OBJPROP_WIDTH, width);
   ObjectSet(name, OBJPROP_COLOR, colour);
   ObjectSet(name, OBJPROP_TIMEFRAMES, timeframe);
   }
   

