
#property copyright "eevviill"
#property link      "itisallillusion@gmail.com"


#property indicator_chart_window

extern int bar_count = 0;

extern string pus1 = "";
extern string t_f = "TIMEFRAMES";
extern string d0 = "Data0 location";
extern int corner0 = 0;
extern int size0 = 8;
extern int X_distance0 = 840;
extern int Y_distance0 = 20;
extern color color0 = Yellow;
extern string distance_between0 = " ";
 
extern string pus2 = "";
extern string sym = "SYMBOLS";
extern string distance_between = "  ";
extern bool use_symb1 = true;
extern string symb1 = "EURUSD";
extern int corner1 = 0;
extern int size1 = 13;
extern int X_distance1 = 750;
extern int Y_distance1 = 40;
extern color color1 = LawnGreen;

extern string pus21 = "";
extern bool use_symb2 = true;
extern string symb2 = "EURJPY";
extern int corner2 = 0;
extern int size2 = 13;
extern int X_distance2 = 26;
extern int Y_distance2 = 60;
extern color color2 = Orange;

extern string pus22 = "";
extern bool use_symb3 = true;
extern string symb3 = "GBPUSD";
extern int corner3 = 0;
extern int size3 = 13;
extern int X_distance3 = 20;
extern int Y_distance3 = 80;
extern color color3 = DodgerBlue;

extern string pus23 = "";
extern bool use_symb4 = true;
extern string symb4 = "GBPJPY";
extern int corner4 = 0;
extern int size4 = 13;
extern int X_distance4 = 26;
extern int Y_distance4 = 100;
extern color color4 = Plum;

extern string pus24 = "";
extern bool use_symb5 = true;
extern string symb5 = "USDCHF";
extern int corner5 = 0;
extern int size5 = 13;
extern int X_distance5 = 20;
extern int Y_distance5 = 120;
extern color color5 = LawnGreen;

extern string pus25 = "";
extern bool use_symb6 = true;
extern string symb6 = "USDJPY";
extern int corner6 = 0;
extern int size6 = 13;
extern int X_distance6 = 26;
extern int Y_distance6 = 140;
extern color color6 = Orange;

extern string pus26 = "";
extern bool use_symb7 = true;
extern string symb7 = "AUDUSD";
extern int corner7 = 0;
extern int size7 = 13;
extern int X_distance7 = 20;
extern int Y_distance7 = 160;
extern color color7 = DodgerBlue;

extern string pus27 = "";
extern bool use_symb8 = true;
extern string symb8 = "AUDJPY";
extern int corner8 = 0;
extern int size8 = 13;
extern int X_distance8 = 26;
extern int Y_distance8 = 180;
extern color color8 = Plum;

extern string pus28 = "";
extern bool use_symb9 = true;
extern string symb9 = "AUDNZD";
extern int corner9 = 0;
extern int size9 = 13;
extern int X_distance9 = 20;
extern int Y_distance9 = 200;
extern color color9 = LawnGreen;

extern string pus29 = "";
extern bool use_symb10 = true;
extern string symb10 = "NZDUSD";
extern int corner10 = 0;
extern int size10 = 13;
extern int X_distance10 = 20;
extern int Y_distance10 = 220;
extern color color10 = Orange;

extern string pus201 = "";
extern bool use_symb11 = true;
extern string symb11 = "NZDJPY";
extern int corner11 = 0;
extern int size11 = 13;
extern int X_distance11 = 26;
extern int Y_distance11 = 240;
extern color color11 = DodgerBlue;
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
extern string pus30 = "";
extern string sym12 = "SYMBOLS";
//extern string distance_between = "  ";
extern bool use_symb12 = true;
extern string symb12 = "USDCAD";
extern int corner12 = 0;
extern int size12 = 13;
extern int X_distance12 = 20;
extern int Y_distance12 = 260;
extern color color12 = LawnGreen;

extern string pus31 = "";
extern bool use_symb13 = true;
extern string symb13 = "EURGBP";
extern int corner13 = 0;
extern int size13 = 13;
extern int X_distance13 = 26;
extern int Y_distance13 = 280;
extern color color13 = Orange;

extern string pus32 = "";
extern bool use_symb14 = true;
extern string symb14 = "EURCHF";
extern int corner14 = 0;
extern int size14 = 13;
extern int X_distance14 = 20;
extern int Y_distance14 = 300;
extern color color14 = DodgerBlue;

extern string pus33 = "";
extern bool use_symb15 = true;
extern string symb15 = "GBPCHF";
extern int corner15 = 0;
extern int size15 = 13;
extern int X_distance15 = 26;
extern int Y_distance15 = 320;
extern color color15 = Plum;

extern string pus34 = "";
extern bool use_symb16 = true;
extern string symb16 = "AUDCAD";
extern int corner16 = 0;
extern int size16 = 13;
extern int X_distance16 = 20;
extern int Y_distance16 = 340;
extern color color16 = LawnGreen;

extern string pus35 = "";
extern bool use_symb17 = true;
extern string symb17 = "AUDCHF";
extern int corner17 = 0;
extern int size17 = 13;
extern int X_distance17 = 26;
extern int Y_distance17 = 360;
extern color color17 = Orange;

extern string pus36 = "";
extern bool use_symb18 = true;
extern string symb18 = "CHFJPY";
extern int corner18 = 0;
extern int size18 = 13;
extern int X_distance18 = 20;
extern int Y_distance18 = 380;
extern color color18 = DodgerBlue;

extern string pus37 = "";
extern bool use_symb19 = true;
extern string symb19 = "EURNZD";
extern int corner19 = 0;
extern int size19 = 13;
extern int X_distance19 = 26;
extern int Y_distance19 = 400;
extern color color19 = Plum;

extern string pus38 = "";
extern bool use_symb20 = true;
extern string symb20 = "EURCAD";
extern int corner20 = 0;
extern int size20 = 13;
extern int X_distance20 = 20;
extern int Y_distance20 = 420;
extern color color20 = LawnGreen;

extern string pus39 = "";
extern bool use_symb21 = true;
extern string symb21 = "GBPCAD";
extern int corner21 = 0;
extern int size21 = 13;
extern int X_distance21 = 20;
extern int Y_distance21 = 440;
extern color color21 = Orange;












int deinit()
  {
if(use_symb1)ObjectDelete(symb1);
if(use_symb2)ObjectDelete(symb2);
if(use_symb3)ObjectDelete(symb3);
if(use_symb4)ObjectDelete(symb4);
if(use_symb5)ObjectDelete(symb5);
if(use_symb6)ObjectDelete(symb6);
if(use_symb7)ObjectDelete(symb7);
if(use_symb8)ObjectDelete(symb8);
if(use_symb9)ObjectDelete(symb9);
if(use_symb10)ObjectDelete(symb10);
if(use_symb11)ObjectDelete(symb11);
if(use_symb12)ObjectDelete(symb1);
if(use_symb13)ObjectDelete(symb2);
if(use_symb14)ObjectDelete(symb3);
if(use_symb15)ObjectDelete(symb4);
if(use_symb16)ObjectDelete(symb5);
if(use_symb17)ObjectDelete(symb6);
if(use_symb18)ObjectDelete(symb7);
if(use_symb19)ObjectDelete(symb8);
if(use_symb20)ObjectDelete(symb9);
if(use_symb21)ObjectDelete(symb10);


ObjectDelete("Data0");


   return(0);
  }





int start()
  {
  create_Data0();
  
  if(use_symb1) create_Data (symb1,X_distance1,Y_distance1,corner1,size1,color10);
  if(use_symb2) create_Data (symb2,X_distance1,Y_distance2,corner2,size2,color10);
  if(use_symb3) create_Data (symb3,X_distance1,Y_distance3,corner3,size3,color10);
  if(use_symb4) create_Data (symb4,X_distance1,Y_distance4,corner4,size4,color10);
  if(use_symb5) create_Data (symb5,X_distance1,Y_distance5,corner5,size5,color10);
  if(use_symb6) create_Data (symb6,X_distance1,Y_distance6,corner6,size6,color10);
  if(use_symb7) create_Data (symb7,X_distance1,Y_distance7,corner7,size7,color10);
  if(use_symb8) create_Data (symb8,X_distance1,Y_distance8,corner8,size8,color10);
  if(use_symb9) create_Data (symb9,X_distance1,Y_distance9,corner9,size9,color10);
  if(use_symb10) create_Data (symb10,X_distance1,Y_distance10,corner10,size10,color10);
  if(use_symb11) create_Data (symb11,X_distance1,Y_distance11,corner11,size11,color10);
  if(use_symb12) create_Data (symb12,X_distance1,Y_distance12,corner12,size12,color10);
  if(use_symb13) create_Data (symb13,X_distance1,Y_distance13,corner13,size13,color10);
  if(use_symb14) create_Data (symb14,X_distance1,Y_distance14,corner14,size14,color10);
  if(use_symb15) create_Data (symb15,X_distance1,Y_distance15,corner15,size15,color10);
  if(use_symb16) create_Data (symb16,X_distance1,Y_distance16,corner16,size16,color10);
  if(use_symb17) create_Data (symb17,X_distance1,Y_distance17,corner17,size17,color10);
  if(use_symb18) create_Data (symb18,X_distance1,Y_distance18,corner18,size18,color10);
  if(use_symb19) create_Data (symb19,X_distance1,Y_distance19,corner19,size19,color10);
  if(use_symb20) create_Data (symb20,X_distance1,Y_distance20,corner20,size20,color10);
  if(use_symb21) create_Data (symb21,X_distance1,Y_distance21,corner21,size21,color10);



   return(0);
  }




//////////////////////////////////////////////////////////////////////////////////////////////////////////
void create_Data0 ()
{
ObjectCreate("Data0",OBJ_LABEL,0,0,0);
ObjectSet("Data0",OBJPROP_CORNER,corner0);
ObjectSet("Data0", OBJPROP_XDISTANCE,X_distance0);
ObjectSet("Data0", OBJPROP_YDISTANCE, Y_distance0);
ObjectSetText("Data0","M1"+distance_between0+"M5"+distance_between0+"M15"+distance_between0+"M30"+distance_between0+"H1  "+distance_between0+"H4   "+distance_between0+"D1   "+distance_between0+"W1 ",size0,"TimesNewRoman",color0);

}

/////////////////////////////////////////////////////////////////////////////////////////////////////////
void create_Data (string symb,int X_distance,int Y_distance,int cotner, int Size_Data,color Color)
{
int range_m1 = (iClose(symb,1,bar_count)-iOpen(symb,1,bar_count))/MarketInfo(symb,MODE_POINT);
int range_m5 = (iClose(symb,5,bar_count)-iOpen(symb,5,bar_count))/MarketInfo(symb,MODE_POINT);
int range_m15 = (iClose(symb,15,bar_count)-iOpen(symb,15,bar_count))/MarketInfo(symb,MODE_POINT);
int range_m30 = (iClose(symb,30,bar_count)-iOpen(symb,30,bar_count))/MarketInfo(symb,MODE_POINT);
int range_h1 = (iClose(symb,60,bar_count)-iOpen(symb,60,bar_count))/MarketInfo(symb,MODE_POINT);
int range_h4 = (iClose(symb,240,bar_count)-iOpen(symb,240,bar_count))/MarketInfo(symb,MODE_POINT);
int range_d1 = (iClose(symb,1440,bar_count)-iOpen(symb,1440,bar_count))/MarketInfo(symb,MODE_POINT);
int range_w1 = (iClose(symb,7200,bar_count)-iOpen(symb,7200,bar_count))/MarketInfo(symb,MODE_POINT);

ObjectCreate(symb,OBJ_LABEL,0,0,0);
ObjectSet(symb,OBJPROP_CORNER,0);
ObjectSet(symb, OBJPROP_XDISTANCE,X_distance);
ObjectSet(symb, OBJPROP_YDISTANCE, Y_distance);
ObjectSetText(symb,symb+"   : "+range_m1+distance_between+range_m5+distance_between+range_m15+distance_between+range_m30+distance_between+range_h1+distance_between+range_h4+distance_between+range_d1+distance_between+range_w1+distance_between,Size_Data,"Arrial",Color);

}