//+------------------------------------------------------------------+
//|                                                Open Graphics.mq4 |
//|                      Copyright © 2006, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//|                                         Dolly (the famous sheep) |
//|               original indicator is called valasholic13 v2.5.mq4 |
//|                                                                  |
//|                  and the original author is valasholic@yahoo.com |
//|                                                                  |         
//|                        mods and stuff by Linuxser for Forex-TSD  |
//|                      (there is a lot of usefull code inside here)|
//|Credits: hulahula (traslation from original indonesian language)  |
//|ign... in collaboration with Linuxser (with mods and improvments  |
//+------------------------------------------------------------------+

/*
Thanks to the above coders for all their work on the original Indicator 
 
 Open Graphics
 - Based on the Dolly indicator but using the Daily Open as the Daily setup 
 - instead of the Daily Central Pivot.
 - Next step is to put in dynamic TP & STOP levels so they alter depending on market
 
*/
#property copyright "" 
#property link      " Open Graphics cja"
#property indicator_chart_window

#define IND_NAME "Open Graphics "

extern bool Open_GRAPHICS = true;
extern color BUY_Color_2 = C'0,0,145';
extern color BUY_Color_1 = C'0,0,90';
extern color SELL_Color_1 = C'120,0,0';
extern color SELL_Color_2 = C'170,0,0';
extern int BUY_Target_2 = 50;
extern int BUY_Target_1 =40;
extern int BUY_Area =20;
extern int SELL_Area = 20;
extern int SELL_Target_1 =40;
extern int SELL_Target_2 =50;
extern int SHIFT_OpenText = 0;
extern int SHIFT_PIVOT_Text = 10;
extern bool Show_OpenCOMMENTS = true;

extern bool Show_DailyAverageGRAPHICS = true;
extern bool Daily_AverageGRAPHICS = true;
extern color DAILY_Av_UP_Color_150 = C'0,110,255';
extern color DAILY_Av_UP_Color_125 = C'0,70,255';
extern color DAILY_Av_UP_Color_100 = C'20,20,255';
extern color DAILY_Av_UP_Color_75 = C'0,0,220';
extern color DAILY_Av_UP_Color_50 = C'0,0,180';//
extern color DAILY_Av_DN_Color_50 = C'200,0,0';//
extern color DAILY_Av_DN_Color_75 = C'220,0,0';
extern color DAILY_Av_DN_Color_100 = C'255,0,10';
extern color DAILY_Av_DN_Color_125 = C'255,70,0';
extern color DAILY_Av_DN_Color_150 = C'255,110,0';
extern int SHIFT_DailyAverageText = 28;

extern bool Show_PivotLines = false;
extern bool Show_M_PivotLines = false;
extern int SHIFT_PivotPointText = 0;
extern int PivotPoint_ExtendLINE = 0;

extern bool Show_FibLines = false;
extern bool Show_EXTRAFibLines = false;
extern int SHIFT_FibText = 65;
extern int FIB_ExtendDISPLAY = 1;
extern int FibLines_Back_DATE = 0;

extern bool Show_Daily_HI_LOW = false;
extern int SHIFT_HI_LOW_TEXT = 50;

extern bool Show_Daily_OPEN = true;
extern int SHIFT_Daily_OPEN_TEXT = 0;

extern int Back_TEST_Days = 0;

//Daily OPEN
#define DO "DO"
#define DDO "DDO"


//Daily HI/LOW
#define DHI "DHI"
#define DLO "DLO"
#define DDHI "DDHI"
#define DDLO "DDLO"

//Dolly Levels
#define OpenBUY3 "OpenBUY3"
#define OpenBUY2 "OpenBUY2"
#define OpenBUY1 "OpenBUY1"
#define OpenSELL1 "OpenSELL1"
#define OpenSELL2 "OpenSELL2"
#define OpenSELL3 "OpenSELL3"
//Daily Average Levels
#define AvBUY150 "AvBUY150"
#define AvBUY125 "AvBUY125"
#define AvBUY100 "AvBUY100"
#define AvBUY75 "AvBUY75"
#define AvBUY50 "AvBUY50"
#define AvSELL50 "AvSELL50"
#define AvSELL75 "AvSELL75"
#define AvSELL100 "AvSELL100"
#define AvSELL125 "AvSELL125"
#define AvSELL150 "AvSELL150"
//Pivot Levels
#define P1 "P1"

#define PP1 "PP1"
#define RR3 "RR3"
#define RR2 "RR2"
#define RR1 "RR1"
#define SS1 "SS1"
#define SS2 "SS2"
#define SS3 "SS3"

#define MM1 "MM1"
#define MM2 "MM2"
#define MM3 "MM3"
#define MM4 "MM4"
#define MM5 "MM5"
#define MM0 "MM0"

#define PPP1 "PPP1"
#define RRR3 "RRR3"
#define RRR2 "RRR2"
#define RRR1 "RRR1"
#define SSS1 "SSS1"
#define SSS2 "SSS2"
#define SSS3 "SSS3"

//FIB Levels
#define FibP100 "FibP100"
#define FibP618   "FibP618"
#define FibP50  "FibP50"
#define FibP382   "FibP382"
#define Fib100 "Fib100"
#define Fib764   "Fib764"
#define Fib618   "Fib618"
#define Fib50  "Fib50"
#define Fib382   "Fib382"
#define Fib236   "Fib236"
#define Fib0   "Fib0"
#define FibM100 "FibM100"
#define FibM618   "FibM618"
#define FibM50  "FibM50"
#define FibM382   "FibM382"

#define FibP236   "FibP236"
#define FibP764   "FibP764"
#define FibM236   "FibM236"
#define FibM764   "FibM764"
#define FibM150   "FibM150"
#define FibP150   "FibP150"
#define FibM200   "FibM200"
#define FibP200   "FibP200"
#define FibM250   "FibM250"
#define FibP250   "FibP250"
#define FibM300   "FibM300"
#define FibP300   "FibP300"


//---- input parameters

//---- buffers

double P, S1, B1, S2, B2, S3, B3;

//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
{
   
   ObjectsDeleteAll(0,OBJ_TEXT);
   ObjectsDeleteAll(0,OBJ_RECTANGLE);
   ObjectsDeleteAll(0,OBJ_TRENDBYANGLE);
   
   ObjectDelete(P);
   ObjectDelete(S1);
   ObjectDelete(B1);
   ObjectDelete(S2);
   ObjectDelete(B2);
   ObjectDelete(S3);
   ObjectDelete(B3);
   
   ObjectDelete(BUY_Target_2); ObjectDelete(BUY_Target_1); ObjectDelete(BUY_Area);
   ObjectDelete(SELL_Target_2); ObjectDelete(SELL_Target_1); ObjectDelete(SELL_Area);
    
   ObjectDelete(OpenBUY3);ObjectDelete(OpenBUY2);ObjectDelete(OpenBUY1);
   ObjectDelete(OpenSELL1); ObjectDelete(OpenSELL2);ObjectDelete(OpenSELL3);
   ObjectDelete(BUY_Color_1);ObjectDelete(BUY_Color_2);ObjectDelete(SELL_Color_1);ObjectDelete(SELL_Color_2);
     
   ObjectDelete (AvBUY150);  ObjectDelete (AvBUY125);ObjectDelete (AvBUY100); ObjectDelete (AvBUY75); 
   ObjectDelete (AvSELL75);ObjectDelete (AvSELL100);ObjectDelete (AvSELL125);ObjectDelete (AvSELL150);
   ObjectDelete (AvBUY50);ObjectDelete (AvSELL50); 
   ObjectDelete(DAILY_Av_UP_Color_150);ObjectDelete(DAILY_Av_UP_Color_125);ObjectDelete(DAILY_Av_UP_Color_100);
   ObjectDelete(DAILY_Av_UP_Color_75);ObjectDelete(DAILY_Av_DN_Color_150);ObjectDelete(DAILY_Av_DN_Color_125);
   ObjectDelete(DAILY_Av_DN_Color_100);ObjectDelete(DAILY_Av_DN_Color_75);ObjectDelete(DAILY_Av_UP_Color_50);
   ObjectDelete(DAILY_Av_DN_Color_50);
   
   
   ObjectDelete(P1);ObjectDelete("Pivot");
     
   ObjectDelete(PP1);ObjectDelete(RR3); ObjectDelete(RRR3);ObjectDelete(RR2); ObjectDelete(RR1);ObjectDelete(SS1);
   ObjectDelete(SS2);ObjectDelete(SS3);ObjectDelete(MM1);ObjectDelete(MM2);ObjectDelete(MM3);ObjectDelete(MM4);
   ObjectDelete(MM5); ObjectDelete(MM0);
    
   ObjectDelete (PPP1); ObjectDelete (RRR3); ObjectDelete (RRR2);ObjectDelete (RRR1); ObjectDelete (SSS1); 
   ObjectDelete (SSS2);  ObjectDelete (SSS3); 
   
   ObjectDelete (Fib100); ObjectDelete (Fib50); ObjectDelete (Fib0); ObjectDelete (Fib618); ObjectDelete (Fib382);
   ObjectDelete (FibP100); ObjectDelete (FibP50);  ObjectDelete (FibP618); ObjectDelete (FibP382);ObjectDelete (Fib236);
   ObjectDelete (FibM100); ObjectDelete (FibM50);  ObjectDelete (FibM618); ObjectDelete (FibM382);ObjectDelete (Fib764);
   ObjectDelete (FibP236);ObjectDelete (FibM236);ObjectDelete (FibP764);ObjectDelete (FibM764);
   ObjectDelete (FibP150);ObjectDelete (FibM150);ObjectDelete (FibP200);ObjectDelete (FibM200);
   ObjectDelete (FibP250);ObjectDelete (FibM250);ObjectDelete (FibP300);ObjectDelete (FibM300);
   
   ObjectDelete (DHI);ObjectDelete (DLO);ObjectDelete (DDHI);ObjectDelete (DDLO);ObjectDelete (DO);ObjectDelete (DDO);
   
   ObjectDelete("Open");
   ObjectDelete("Open1");ObjectDelete("Open2");ObjectDelete("Open3");ObjectDelete("Open4");
   ObjectDelete("Open5");ObjectDelete("Open6");ObjectDelete("Open7");ObjectDelete("Open8");
   ObjectDelete("Open9");ObjectDelete("Open10");ObjectDelete("Open11");ObjectDelete("Open12");
   ObjectDelete("Open13");ObjectDelete("Open14");ObjectDelete("Open15");ObjectDelete("Open16");
   ObjectDelete("Open17");ObjectDelete("Open18");ObjectDelete("Open19");ObjectDelete("Open20");
   ObjectDelete("Open21");ObjectDelete("Open22");ObjectDelete("Open23");ObjectDelete("Open24");
   ObjectDelete("Open25");ObjectDelete("Open26");ObjectDelete("Open27");ObjectDelete("Open28");
   ObjectDelete("Open29");ObjectDelete("Open30");ObjectDelete("Open31");ObjectDelete("Open32");
   ObjectDelete("Open33");ObjectDelete("Open34");ObjectDelete("Open35");ObjectDelete("Open36");
   ObjectDelete("Open37");ObjectDelete("Open38");ObjectDelete("Open39");ObjectDelete("Open40");
   ObjectDelete("Open41");ObjectDelete("Open42");ObjectDelete("Open43");ObjectDelete("Open44");
   ObjectDelete("Open45");ObjectDelete("Open46");ObjectDelete("Open47");ObjectDelete("Open48");
   ObjectDelete("Open49");

  	

	//----
	return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
{
  
	//---- name for DataWindow and indicator subwindow label
	IndicatorShortName(IND_NAME);
	
	//----
	return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
{ 
	int counted_bars = IndicatorCounted();
 
    CreateP();
}
void CreatePivots1(string Pivots1, double start, double end,double w, double s,color clr)
  {
   ObjectCreate(Pivots1, OBJ_TRENDBYANGLE, 0, iTime(NULL,1440,0), start, Time[0],w,s, end);
   ObjectSet(Pivots1, OBJPROP_COLOR, clr);
   ObjectSet(Pivots1,OBJPROP_RAY,false);
   ObjectSet(Pivots1,OBJPROP_WIDTH,w);
   ObjectSet(Pivots1,OBJPROP_STYLE,s);
   }
   void DeleteCreatePivots1()
   {
      ObjectDelete(P1); ObjectDelete(DHI); ObjectDelete(DLO);ObjectDelete (DO);
   }
   void CreateP()
   {
    ObjectsDeleteAll(0,OBJ_TRENDBYANGLE);
    DeleteCreatePivots1();  


   CreateDOP();
}

void CreateOpenGraphics(string Open., double start, double end, color clr)
  {
   ObjectCreate(Open., OBJ_RECTANGLE, 0, iTime(NULL,1440,Back_TEST_Days), start, Time[0], end);
   ObjectSet(Open., OBJPROP_COLOR, clr);
   ObjectSet(Open.,OBJPROP_BACK,Open_GRAPHICS);
   ObjectSet(Open.,OBJPROP_WIDTH,0);
   ObjectSet(Open.,OBJPROP_STYLE,0);
   }
   void DeleteOpenGraphics()
   {
   ObjectDelete(OpenBUY3);
   ObjectDelete(OpenBUY2);
   ObjectDelete(OpenBUY1);
   ObjectDelete(OpenSELL1);
   ObjectDelete(OpenSELL2);
   ObjectDelete(OpenSELL3);
  
   }
   void CreateDOP()
   {
   ObjectsDeleteAll(0,OBJ_RECTANGLE);
   DeleteOpenGraphics();
   
    CreateAL();
}

void CreateAvGraphics(string DailyAv, double start, double end, color clr)
  {
   ObjectCreate(DailyAv, OBJ_RECTANGLE, 0, iTime(NULL,1440,Back_TEST_Days), start, Time[0], end);
   ObjectSet(DailyAv, OBJPROP_COLOR, clr);
   ObjectSet(DailyAv,OBJPROP_BACK,Daily_AverageGRAPHICS);
   ObjectSet(DailyAv,OBJPROP_WIDTH,0);
   ObjectSet(DailyAv,OBJPROP_STYLE,0);
   }
    void DeleteAvGraphics()
   {
   ObjectDelete (AvBUY150);  ObjectDelete (AvBUY125);  ObjectDelete (AvBUY100); ObjectDelete (AvBUY75); 
   ObjectDelete (AvSELL75);  ObjectDelete (AvSELL100);  ObjectDelete (AvSELL125);  ObjectDelete (AvSELL150);
   ObjectDelete (AvBUY50);ObjectDelete (AvSELL50);  
   }
   void CreateAL()
   {
   ObjectsDeleteAll(0,OBJ_RECTANGLE);
   DeleteAvGraphics();
   
   
    CreatePP();
}
void CreatePivots(string Pivots, double start, double end,double w, double s,color clr)
  {
   ObjectCreate(Pivots, OBJ_TRENDBYANGLE, 0, iTime(NULL,1440,PivotPoint_ExtendLINE+Back_TEST_Days), start, Time[0],w,s, end);
   ObjectSet(Pivots, OBJPROP_COLOR, clr);
   ObjectSet(Pivots,OBJPROP_RAY,false);
   ObjectSet(Pivots,OBJPROP_WIDTH,w);
   ObjectSet(Pivots,OBJPROP_STYLE,s);
   }
   void DeleteCreatePivots()
   {
   ObjectDelete(PP1); ObjectDelete(RR3); ObjectDelete(RR2); ObjectDelete(RR1);
   ObjectDelete(SS1); ObjectDelete(SS2); ObjectDelete(SS3); ObjectDelete(P1);
    
   ObjectDelete(MM1); ObjectDelete(MM2); ObjectDelete(MM3);
   ObjectDelete(MM4); ObjectDelete(MM5); ObjectDelete(MM0);
   ObjectDelete(DDHI); ObjectDelete(DDLO);ObjectDelete (DDO);
   
   
   }
   void CreatePP()
   {
    ObjectsDeleteAll(0,OBJ_TRENDBYANGLE);
    DeleteCreatePivots();
      
  CreateFIB();
}
void CreateFibs(string FibLevels, double start, double end,double w, double s,color clr)
  {
   ObjectCreate(FibLevels, OBJ_TRENDBYANGLE, 0, iTime(NULL,1440,FIB_ExtendDISPLAY), start, Time[0],w,s, end);
   ObjectSet(FibLevels, OBJPROP_COLOR, clr);
   ObjectSet(FibLevels,OBJPROP_RAY,false);
   ObjectSet(FibLevels,OBJPROP_WIDTH,w);
    ObjectSet(FibLevels,OBJPROP_STYLE,s);
   }
   void DeleteCreateFibs()
   {
    
    ObjectDelete (Fib100); ObjectDelete (Fib764);  ObjectDelete (Fib618); ObjectDelete (Fib50); ObjectDelete (Fib236); 
    ObjectDelete (Fib0); ObjectDelete (Fib382);
    ObjectDelete (FibP100); ObjectDelete (FibP618); ObjectDelete (FibP50); ObjectDelete (FibP382); 
    ObjectDelete (FibM100); ObjectDelete (FibM618); ObjectDelete (FibM50); ObjectDelete (FibM382);
    ObjectDelete (FibP236);ObjectDelete (FibM236);ObjectDelete (FibP764);ObjectDelete (FibM764); 
    ObjectDelete (FibP150);ObjectDelete (FibM150);ObjectDelete (FibP200);ObjectDelete (FibM200);
    ObjectDelete (FibP250);ObjectDelete (FibM250);ObjectDelete (FibP300);ObjectDelete (FibM300);
   } 
   void CreateFIB()
   {
    ObjectsDeleteAll(0,OBJ_TRENDBYANGLE);
    DeleteCreateFibs(); 
    
       


    //Pivots & M Pivots
    double P = (iHigh(NULL,1440,Back_TEST_Days+1) + iLow(NULL,1440,Back_TEST_Days+1) + iClose(NULL,1440,Back_TEST_Days+1)) / 3;
         double r3 = ( 2 * P ) + ( iHigh(NULL,1440,Back_TEST_Days+1) - ( 2 * iLow(NULL,1440,Back_TEST_Days+1) ));
         double r2 = P + ( iHigh(NULL,1440,Back_TEST_Days+1) - iLow(NULL,1440,Back_TEST_Days+1) );
         double r1 = ( 2 * P ) - iLow(NULL,1440,Back_TEST_Days+1);
         double s1 = ( 2 * P ) - iHigh(NULL,1440,Back_TEST_Days+1);
         double s2 = P - ( iHigh(NULL,1440,Back_TEST_Days+1)- iLow(NULL,1440,Back_TEST_Days+1));
         double s3 = ( 2 * P ) - ( ( 2 * iHigh(NULL,1440,Back_TEST_Days+1) ) - iLow(NULL,1440,Back_TEST_Days+1) );
         
         double m0 = (s2 + s3)/2;
         double m1 = (s1 + s2)/2;
         double m2 = (P + s1)/2;
         double m3 = (P + r1)/2; 
         double m4 = (r1 + r2)/2;
         double m5 = (r2 + r3)/2; 
          
  double OPEN = iOpen(NULL,1440,Back_TEST_Days); 
  double HI2 = iHigh(NULL,1440,0);
  double LOW2 = iLow(NULL,1440,0); 
  double HI3 = iHigh(NULL,1440,Back_TEST_Days+1);
  double LOW3 = iLow(NULL,1440,Back_TEST_Days+1);
  double HI4 = iHigh(NULL,1440,0);
  double LOW4 = iLow(NULL,1440,0);
  double HI5 = iHigh(NULL,1440,2);
  double LOW5 = iLow(NULL,1440,2);
  double HI6 = iHigh(NULL,1440,3);
  double LOW6 = iLow(NULL,1440,3);
  double HI7 = iHigh(NULL,1440,4);
  double LOW7 = iLow(NULL,1440,4);
  double HI8 = iHigh(NULL,1440,5);
  double LOW8 = iLow(NULL,1440,5);
  double HI9 = iHigh(NULL,1440,6);
  double LOW9 = iLow(NULL,1440,6);
  double HI10 = iHigh(NULL,1440,7);
  double LOW10 = iLow(NULL,1440,7);
  double HI11 = iHigh(NULL,1440,8);
  double LOW11 = iLow(NULL,1440,8);
  double HI12 = iHigh(NULL,1440,9);
  double LOW12 = iLow(NULL,1440,9);
  double HI13 = iHigh(NULL,1440,10);
  double LOW13 = iLow(NULL,1440,10);
  double HI14 = iHigh(NULL,1440,11);
  double LOW14 = iLow(NULL,1440,11);
  double HI15 = iHigh(NULL,1440,12);
  double LOW15 = iLow(NULL,1440,12);
  double HI16 = iHigh(NULL,1440,13);
  double LOW16 = iLow(NULL,1440,13);
  double HI17 = iHigh(NULL,1440,14);
  double LOW17 = iLow(NULL,1440,14);
  double HI18 = iHigh(NULL,1440,15);
  double LOW18 = iLow(NULL,1440,15);
  double HI19 = iHigh(NULL,1440,16);
  double LOW19 = iLow(NULL,1440,16);
  double HI20 = iHigh(NULL,1440,17);
  double LOW20 = iLow(NULL,1440,17);
  double HI21 = iHigh(NULL,1440,18);
  double LOW21 = iLow(NULL,1440,18);
  double HI22 = iHigh(NULL,1440,19);
  double LOW22 = iLow(NULL,1440,19);
  double HI23 = iHigh(NULL,1440,20);
  double LOW23 = iLow(NULL,1440,20);
    
  double ONE = (HI3-LOW3);
  
  double FIVE = ((HI3-LOW3)+(HI5-LOW5)+(HI6-LOW6)+(HI7-LOW7)+(HI8-LOW8))/5;
           
  double TEN = ((HI3-LOW3)+(HI5-LOW5)+(HI6-LOW6)+(HI7-LOW7)+(HI8-LOW8)+
                  (HI9-LOW9)+(HI10-LOW10)+(HI11-LOW11)+(HI12-LOW12)+(HI13-LOW13))/10;
                    
  double TWENTY = ((HI3-LOW3)+(HI5-LOW5)+(HI6-LOW6)+(HI7-LOW7)+(HI8-LOW8)+
               (HI9-LOW9)+(HI10-LOW10)+(HI11-LOW11)+(HI12-LOW12)+(HI13-LOW13)+
               (HI14-LOW14)+(HI15-LOW15)+(HI16-LOW16)+(HI17-LOW17)+(HI18-LOW18)+
               (HI19-LOW19)+(HI20-LOW20)+(HI21-LOW21)+(HI22-LOW22)+(HI23-LOW23))/20; 
                                              
  double AV = (ONE+FIVE+TEN+TWENTY)/4;// New Setting AV = (FIVE+TEN+TWENTY)/3;
   
  double AvDN150 = OPEN-AV/2*3;
  double AvUP150 = OPEN+AV/2*3;
  double AvDN125 = OPEN-AV/4*5;
  double AvUP125 = OPEN+AV/4*5;
  double AvDN100 =OPEN-AV; 
  double AvUP100 = OPEN+AV;
  double AvDN75 =OPEN-AV/4*3; 
  double AvUP75 = OPEN+AV/4*3;  
  double AvDN50 = OPEN-AV/2;
  double AvUP50 = OPEN+AV/2;
  double AvDN25 =OPEN-AV/4; 
  double AvUP25 = OPEN+AV/4; 
  
  double CLOSE = iClose(NULL,1440,0); 
   
         
  double F;      
  F = (iHigh(NULL,1440,FibLines_Back_DATE+1)- iLow(NULL,1440,FibLines_Back_DATE+1));
   
  double FIBP300 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*4.00;
  double FIBP250 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*3.5;
  double FIBP200 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*3.00;
  double FIBP150 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*2.5;
  double FIBP100 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*2.00;
  double FIBP764 = iLow(NULL,1440,FibLines_Back_DATE+1) + F*1.764;
  double FIBP618 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*1.618;
  double FIBP50 = iLow(NULL,1440,FibLines_Back_DATE+1) + F*1.5;
  double FIBP382 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*1.382;
  double FIBP236 = iLow(NULL,1440,FibLines_Back_DATE+1) + F*1.236;
  double FIB100 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*1.00;
  double FIB764 = iLow(NULL,1440,FibLines_Back_DATE+1) + F*0.764;
  double FIB618 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*0.618;
  double FIB50 = iLow(NULL,1440,FibLines_Back_DATE+1) + F*0.5;
  double FIB382 =  iLow(NULL,1440,FibLines_Back_DATE+1)+ F*0.382;
  double FIB236 = iLow(NULL,1440,FibLines_Back_DATE+1) + F*0.236;
  double FIB0 = iLow(NULL,1440,FibLines_Back_DATE+1) + F*0.0;
  double FIBM236 = iLow(NULL,1440,FibLines_Back_DATE+1) - F*0.236;
  double FIBM382 =  iLow(NULL,1440,FibLines_Back_DATE+1)- F*0.382;
  double FIBM50 = iLow(NULL,1440,FibLines_Back_DATE+1) - F*0.5;
  double FIBM618 =  iLow(NULL,1440,FibLines_Back_DATE+1)- F*0.618;
  double FIBM764 = iLow(NULL,1440,FibLines_Back_DATE+1) - F*0.764;
  double FIBM100 =  iLow(NULL,1440,FibLines_Back_DATE+1)- F*1.00; 
  double FIBM150 =  iLow(NULL,1440,FibLines_Back_DATE+1)- F*1.5; 
  double FIBM200 =  iLow(NULL,1440,FibLines_Back_DATE+1)- F*2.00; 
  double FIBM250 =  iLow(NULL,1440,FibLines_Back_DATE+1)- F*2.5; 
  double FIBM300 =  iLow(NULL,1440,FibLines_Back_DATE+1)- F*3.00; 
  
  double  B1 = OPEN + BUY_Area* Point; // Logic to determine Buy Area 
  double	 S1 = OPEN - SELL_Area * Point; // Logic to determine Sell Area 
  double	 B2 = OPEN + BUY_Target_1 * Point; // Logic to determine High Break Area 
  double	 S2 = OPEN - SELL_Target_1 * Point; // Logic to determine Low Break Area )
  double	 B3 = OPEN + BUY_Target_2 * Point; // Logic to determine High Target Area 
  double	 S3 = OPEN - SELL_Target_2 * Point; // Logic to determine Low Target Area 
    
 ObjectsRedraw();
 
   // BUY/SELL Colored Levels
   CreateOpenGraphics(OpenBUY3, B3, B3, 0 );
   CreateOpenGraphics(OpenBUY2, B2, B3,BUY_Color_2);//C'0,0,150'
   CreateOpenGraphics(OpenBUY1, B1, B2,BUY_Color_1 );//C'0,0,100'
   CreateOpenGraphics(OpenSELL1, S1, S2,SELL_Color_1 );//C'120,0,0'
   CreateOpenGraphics(OpenSELL2, S2, S3,SELL_Color_2 );//C'180,0,0'
   CreateOpenGraphics(OpenSELL3, S3, S3, 0);
 
   
    if (Show_DailyAverageGRAPHICS==true)
    {
   //Daily Average Colored Levels
   CreateAvGraphics(AvBUY150 ,AvUP150,AvUP125, DAILY_Av_UP_Color_150 );// C'0,110,255'
   CreateAvGraphics(AvBUY125 ,AvUP125,AvUP100, DAILY_Av_UP_Color_125);//C'0,70,255'
   CreateAvGraphics(AvBUY100 ,AvUP100,AvUP75,DAILY_Av_UP_Color_100);//C'20,20,255'
   CreateAvGraphics(AvBUY75,AvUP75,AvUP50,DAILY_Av_UP_Color_75 );//C'0,0,210'
   CreateAvGraphics(AvBUY50,AvUP50,B3,DAILY_Av_UP_Color_50 );
   CreateAvGraphics(AvSELL50,AvDN50,S3,DAILY_Av_DN_Color_50 );
   CreateAvGraphics(AvSELL75,AvDN75,AvDN50,DAILY_Av_DN_Color_75 );//C'220,0,0'
   CreateAvGraphics(AvSELL100,AvDN100,AvDN75,DAILY_Av_DN_Color_100);// C'255,0,0'
   CreateAvGraphics(AvSELL125,AvDN100,AvDN125,DAILY_Av_DN_Color_125);//C'255,70,0'
   CreateAvGraphics(AvSELL150,AvDN125,AvDN150,DAILY_Av_DN_Color_150);// C'255,110,0'
  }
   
   CreatePivots1(P1,P,P,2,0, DimGray);
   
  
     
        
    if (Show_PivotLines==true)
    {      
         CreatePivots(PP1,P,P,2,0, Gray);
         CreatePivots(RR3,r3,r3,1,0, Gray);
         CreatePivots(RR2,r2,r2,1,0, Gray);
         CreatePivots(RR1,r1,r1,1,0, Gray);
         CreatePivots(SS1,s1,s1,1,0, Gray);
         CreatePivots(SS2,s2,s2,1,0, Gray);
         CreatePivots(SS3,s3,s3,1,0, Gray); 
         CreatePivots(DDO,OPEN,OPEN,2,0,YellowGreen);
        }
     if (Show_M_PivotLines==true)
    {     
         CreatePivots(MM5,m5,m5,1,2, Gray);
         CreatePivots(MM4,m4,m4,1,2, Gray);
         CreatePivots(MM3,m3,m3,1,2, Gray);
         CreatePivots(MM2,m2,m2,1,2, Gray);
         CreatePivots(MM1,m1,m1,1,2, Gray);
         CreatePivots(MM0,m0,m0,1,2, Gray);
         }
         
                
   if (Show_FibLines==true)
   { 
  CreateFibs(FibP100, FIBP100, FIBP100,1,0,Green );
  CreateFibs(FibP764, FIBP764, FIBP764,1,0, C'0,53,0' );
  CreateFibs(FibP618, FIBP618, FIBP618,1,0, Green);
  CreateFibs(FibP50, FIBP50, FIBP50,1,0, C'0,53,0' );
  CreateFibs(FibP382, FIBP382, FIBP382,1,0, Green );
  CreateFibs(FibP236, FIBP236, FIBP236,1,0, C'0,53,0' );      
  CreateFibs(Fib100, FIB100, FIB100,1,0,  C'0,200,0');
  CreateFibs(Fib764, FIB764, FIB764,1,0, C'0,53,0' );
  CreateFibs(Fib618, FIB618, FIB618,1,0, Green );
  CreateFibs(Fib50, FIB50, FIB50,1,0, C'0,53,0' );
  CreateFibs(Fib382, FIB382, FIB382,1,0, Green );
  CreateFibs(Fib236, FIB236, FIB236,1,0, C'0,53,0' );
  CreateFibs(Fib0, FIB0, FIB0,1,0,  C'0,200,0' );
  CreateFibs(FibM236, FIBM236, FIBM236,1,0, C'0,53,0' );
  CreateFibs(FibM382, FIBM382, FIBM382,1,0, Green );
  CreateFibs(FibM50, FIBM50, FIBM50,1,0, C'0,53,0' );
  CreateFibs(FibM618, FIBM618, FIBM618,1,0, Green );
  CreateFibs(FibM764, FIBM764, FIBM764,1,0,C'0,53,0');
  CreateFibs(FibM100, FIBM100, FIBM100,1,0, Green );
  }
  if (Show_EXTRAFibLines==true)
  {
  CreateFibs(FibP300, FIBP300, FIBP300,1,0, Green );
  CreateFibs(FibP250, FIBP250, FIBP250,1,0, Green );   
  CreateFibs(FibP200, FIBP200, FIBP200,1,0, Green );
  CreateFibs(FibP150, FIBP150, FIBP150,1,0, Green );      
  
  
  CreateFibs(FibM150, FIBM150, FIBM150,1,0, Green );
  CreateFibs(FibM200, FIBM200, FIBM200,1,0, Green );
  CreateFibs(FibM250, FIBM250, FIBM250,1,0, Green );
  CreateFibs(FibM300, FIBM300, FIBM300,1,0, Green );
 }
 
 if (Show_Daily_HI_LOW==true)
  {
  CreatePivots1(DHI,HI3,HI3,2,0, Turquoise);
  CreatePivots1(DLO,LOW3,LOW3,2,0, Turquoise);
  CreatePivots(DDHI,HI3,HI3,2,0, Turquoise);
  CreatePivots(DDLO,LOW3,LOW3,2,0, Turquoise);
}
if (Show_Daily_OPEN==true)
  {
CreatePivots1(DO,OPEN,OPEN,2,0,YellowGreen);
}
//Buy	  
     if(ObjectFind("B1") != 0){
ObjectCreate("B1", OBJ_TEXT, 0, Time[SHIFT_OpenText], B1);
ObjectSetText("B1", "                        BUY AREA", 8, "Arial",DodgerBlue);
}else{ObjectMove("B1", 0, Time[SHIFT_OpenText], B1);
}
 if(ObjectFind("B2") != 0){
ObjectCreate("B2", OBJ_TEXT, 0, Time[SHIFT_OpenText], B2);
ObjectSetText("B2", "                                   1st BUY TARGET ", 8, "Arial",DodgerBlue);
}else{ObjectMove("B2", 0, Time[SHIFT_OpenText],B2);
}   if(ObjectFind("B3") != 0){

ObjectCreate("B3", OBJ_TEXT, 0, Time[SHIFT_OpenText], B3);
ObjectSetText("B3", "                             2nd TARGET ", 8, "Arial",DodgerBlue);    
}else{ObjectMove("B3", 0, Time[SHIFT_OpenText], B3);   
}
//Sell
    if(ObjectFind("S1") != 0){
ObjectCreate("S1", OBJ_TEXT, 0, Time[SHIFT_OpenText],S1);
ObjectSetText("S1", "                         SELL AREA", 8, "Arial", Orange);
}else{ObjectMove("S1", 0, Time[SHIFT_OpenText], S1);
}     
    if(ObjectFind("S2") != 0){    
ObjectCreate("S2", OBJ_TEXT, 0, Time[SHIFT_OpenText], S2);
ObjectSetText("S2", "                                   1st SELL TARGET ", 8, "Arial",Orange);
}else{ObjectMove("S2", 0, Time[SHIFT_OpenText], S2);
}
    if(ObjectFind("S3") != 0){
ObjectCreate("S3", OBJ_TEXT, 0, Time[SHIFT_OpenText], S3);
ObjectSetText("S3", "                             2nd TARGET ", 8, "Arial",Orange);
}else{
ObjectMove("S3", 0, Time[SHIFT_OpenText], S3);
}
	
//Pivot
     if(ObjectFind("Pivot") != 0){
ObjectCreate("Pivot", OBJ_TEXT, 0, Time[ SHIFT_PIVOT_Text ], P);
ObjectSetText("Pivot", "                             PIVOT "+ DoubleToStr(P,Digits)+"", 8, "Arial",Silver);
}else{ObjectMove("Pivot", 0, Time[ SHIFT_PIVOT_Text ], P);
}
//Average Levels
if (Show_DailyAverageGRAPHICS==true)
{
     if(ObjectFind("TOP/AV150") != 0){
ObjectCreate("TOP/AV150", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvUP150);
ObjectSetText("TOP/AV150", "                                    150% ", 8, "Arial", DeepSkyBlue);
}else{ObjectMove("TOP/AV150", 0, Time[SHIFT_DailyAverageText], AvUP150);
}
     if(ObjectFind("LOW/AV150") != 0){
ObjectCreate("LOW/AV150", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvDN150);
ObjectSetText("LOW/AV150", "                                    150% ", 8, "Arial", Yellow);
}else{ObjectMove("LOW/AV150", 0, Time[SHIFT_DailyAverageText], AvDN150);
} 
     if(ObjectFind("TOP/AV125") != 0){
ObjectCreate("TOP/AV125", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvUP125);
ObjectSetText("TOP/AV125", "                                    125% ", 8, "Arial", DeepSkyBlue);
}else{ObjectMove("TOP/AV125", 0, Time[SHIFT_DailyAverageText], AvUP125);
}
     if(ObjectFind("LOW/AV125") != 0){
ObjectCreate("LOW/AV125", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvDN125);
ObjectSetText("LOW/AV125", "                                    125% ", 8, "Arial", Yellow);
}else{ObjectMove("LOW/AV125", 0, Time[SHIFT_DailyAverageText], AvDN125);
} 
     if(ObjectFind("TOP/AV100") != 0){
ObjectCreate("TOP/AV100", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvUP100);
ObjectSetText("TOP/AV100", "                                   100%", 8, "Arial", DeepSkyBlue);
}else{
ObjectMove("TOP/AV100", 0, Time[SHIFT_DailyAverageText], AvUP100);
}
     if(ObjectFind("LOW/AV100") != 0){
ObjectCreate("LOW/AV100", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvDN100);
ObjectSetText("LOW/AV100", "                                    100% ", 8, "Arial", Yellow);
}else{ObjectMove("LOW/AV100", 0, Time[SHIFT_DailyAverageText], AvDN100);
}
     if(ObjectFind("TOP/AV75") != 0){
ObjectCreate("TOP/AV75", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvUP75);
ObjectSetText("TOP/AV75", "                                      75% ", 8, "Arial", DeepSkyBlue);
}else{ObjectMove("TOP/AV75", 0, Time[SHIFT_DailyAverageText], AvUP75);
}
     if(ObjectFind("LOW/AV75") != 0){
ObjectCreate("LOW/AV75", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvDN75);
ObjectSetText("LOW/AV75", "                                     75%", 8, "Arial", Yellow);
}else{ObjectMove("LOW/AV75", 0, Time[SHIFT_DailyAverageText], AvDN75);
} 	
   if(ObjectFind("LOW/AV50") != 0){
ObjectCreate("LOW/AV50", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvUP50);
ObjectSetText("LOW/AV50", "                                       50% ", 8, "Arial",DeepSkyBlue );
}else{ObjectMove("LOW/AV50", 0, Time[SHIFT_DailyAverageText], AvUP50);
} 
     if(ObjectFind("TOP/AV50") != 0){
ObjectCreate("TOP/AV50", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvDN50);
ObjectSetText("TOP/AV50", "                                      50% ", 8, "Arial",Yellow );
}else{ObjectMove("TOP/AV50", 0, Time[SHIFT_DailyAverageText], AvDN50);
} 
     if(ObjectFind("TOP/AV25") != 0){
ObjectCreate("TOP/AV25", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvUP25);
ObjectSetText("TOP/AV25", "                                      25% ", 8, "Arial", DeepSkyBlue);
}else{ObjectMove("TOP/AV25", 0, Time[SHIFT_DailyAverageText], AvUP25);
}
    if(ObjectFind("LOW/AV25") != 0){
ObjectCreate("LOW/AV25", OBJ_TEXT, 0, Time[SHIFT_DailyAverageText], AvDN25);
ObjectSetText("LOW/AV25", "                                      25% ", 8, "Arial", Yellow);
}else{ObjectMove("LOW/AV25", 0, Time[SHIFT_DailyAverageText], AvDN25);
}
}

//Pivots
if (Show_PivotLines==true)
{
     if(ObjectFind("C/PIVOT") != 0){
ObjectCreate("C/PIVOT", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], P);
ObjectSetText("C/PIVOT", "P", 8, "Arial", Silver);
}else{ObjectMove("C/PIVOT", 0, Time[SHIFT_PivotPointText], P);}
     if(ObjectFind("R3") != 0){
ObjectCreate("R3", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], r3);
ObjectSetText("R3", "R3", 8, "Arial", Silver);
}else{ObjectMove("R3", 0, Time[SHIFT_PivotPointText], r3);}
     if(ObjectFind("R2") != 0){
ObjectCreate("R2", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], r2);
ObjectSetText("R2", "R2", 8, "Arial", Silver);
}else{ObjectMove("R2", 0, Time[SHIFT_PivotPointText], r2);}
     if(ObjectFind("R1") != 0){
ObjectCreate("R1", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], r1);
ObjectSetText("R1", "R1", 8, "Arial", Silver);
}else{ObjectMove("R1", 0, Time[SHIFT_PivotPointText], r1);}
     if(ObjectFind("PS1") != 0){
ObjectCreate("PS1", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], s1);
ObjectSetText("PS1", "S1", 8, "Arial", Silver);
}else{ObjectMove("PS1", 0, Time[SHIFT_PivotPointText], s1);}
     if(ObjectFind("PS2") != 0){
ObjectCreate("PS2", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], s2);
ObjectSetText("PS2", "S2", 8, "Arial", Silver);
}else{ObjectMove("PS2", 0, Time[SHIFT_PivotPointText], s2);}
     if(ObjectFind("PS3") != 0){
ObjectCreate("PS3", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], s3);
ObjectSetText("PS3", "S3", 8, "Arial", Silver);
}else{ObjectMove("PS3", 0, Time[SHIFT_PivotPointText], s3);}
//M Pivots
if (Show_M_PivotLines==true)
{
     if(ObjectFind("M5") != 0){
ObjectCreate("M5", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], m5);
ObjectSetText("M5", "M5", 8, "Arial", Silver);
}else{ObjectMove("M5", 0, Time[SHIFT_PivotPointText], m5);}
     if(ObjectFind("M4") != 0){
ObjectCreate("M4", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], m4);
ObjectSetText("M4", "M4", 8, "Arial", Silver);
}else{ObjectMove("M4", 0, Time[SHIFT_PivotPointText], m4);}
     if(ObjectFind("M3") != 0){
ObjectCreate("M3", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], m3);
ObjectSetText("M3", "M3", 8, "Arial", Silver);
}else{ObjectMove("M3", 0, Time[SHIFT_PivotPointText], m3);}
     if(ObjectFind("M2") != 0){
ObjectCreate("M2", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], m2);
ObjectSetText("M2", "M2", 8, "Arial", Silver);
}else{ObjectMove("M2", 0, Time[SHIFT_PivotPointText], m2);}
     if(ObjectFind("M1") != 0){
ObjectCreate("M1", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], m1);
ObjectSetText("M1", "M1", 8, "Arial", Silver);
}else{ObjectMove("M1", 0, Time[SHIFT_PivotPointText], m1);}
     if(ObjectFind("M0") != 0){
ObjectCreate("M0", OBJ_TEXT, 0, Time[SHIFT_PivotPointText], m0);
ObjectSetText("M0", "M0", 8, "Arial", Silver);
}else{ObjectMove("M0", 0, Time[SHIFT_PivotPointText], m0);}
}
}
//FIBS
if (Show_FibLines==true)
{
     if(ObjectFind("FIB") != 0){
ObjectCreate("FIB", OBJ_TEXT, 0, Time[SHIFT_FibText], FIB100);
ObjectSetText("FIB", "FIB 100% ", 8, "Arial", Green);
}else{ObjectMove("FIB", 0, Time[SHIFT_FibText], FIB100);}
     if(ObjectFind("FIB2") != 0){
ObjectCreate("FIB2", OBJ_TEXT, 0, Time[SHIFT_FibText], FIB50);
ObjectSetText("FIB2", "FIB 50% ", 8, "Arial", Green);
}else{ObjectMove("FIB2", 0, Time[SHIFT_FibText], FIB50);}
     if(ObjectFind("FIB3") != 0){
ObjectCreate("FIB3", OBJ_TEXT, 0, Time[SHIFT_FibText], FIB0);
ObjectSetText("FIB3", "FIB 0.00% ", 8, "Arial", Green);
}else{ObjectMove("FIB3", 0, Time[SHIFT_FibText], FIB0);}
     if(ObjectFind("FIB4") != 0){
ObjectCreate("FIB4", OBJ_TEXT, 0, Time[SHIFT_FibText], FIB382);
ObjectSetText("FIB4", "FIB 0.382% ", 8, "Arial", Green);
}else{ObjectMove("FIB4", 0, Time[SHIFT_FibText], FIB382);}
     if(ObjectFind("FIB5") != 0){
ObjectCreate("FIB5", OBJ_TEXT, 0, Time[SHIFT_FibText], FIB618);
ObjectSetText("FIB5", "FIB 0.618% ", 8, "Arial", Green);
}else{ObjectMove("FIB5", 0, Time[SHIFT_FibText], FIB618);}
     if(ObjectFind("FIB6") != 0){
ObjectCreate("FIB6", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP50);
ObjectSetText("FIB6", "FIB +1.50% ", 8, "Arial",  C'0,93,0');
}else{ObjectMove("FIB6", 0, Time[SHIFT_FibText], FIBP50);}
     if(ObjectFind("FIB7") != 0){
ObjectCreate("FIB7", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP100);
ObjectSetText("FIB7", "FIB +200% ", 8, "Arial", Green);
}else{ObjectMove("FIB7", 0, Time[SHIFT_FibText], FIBP100);}
     if(ObjectFind("FIB8") != 0){
ObjectCreate("FIB8", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM50);
ObjectSetText("FIB8", "FIB -1.50% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB8", 0, Time[SHIFT_FibText], FIBM50);}
     if(ObjectFind("FIB9") != 0){
ObjectCreate("FIB9", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM100);
ObjectSetText("FIB9", "FIB -200% ", 8, "Arial", Green);
}else{ObjectMove("FIB9", 0, Time[SHIFT_FibText], FIBM100);}
     if(ObjectFind("FIB10") != 0){
ObjectCreate("FIB10", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP382);
ObjectSetText("FIB10", "FIB +1.382% ", 8, "Arial", Green);
}else{ObjectMove("FIB10", 0, Time[SHIFT_FibText], FIBP382);}
     if(ObjectFind("FIB11") != 0){
ObjectCreate("FIB11", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM382);
ObjectSetText("FIB11", "FIB -1.382% ", 8, "Arial", Green);
}else{ObjectMove("FIB11", 0, Time[SHIFT_FibText], FIBM382);}
     if(ObjectFind("FIB12") != 0){
ObjectCreate("FIB12", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP618);
ObjectSetText("FIB12", "FIB +1.618% ", 8, "Arial", Green);
}else{ObjectMove("FIB12", 0, Time[SHIFT_FibText], FIBP618);}
     if(ObjectFind("FIB13") != 0){
ObjectCreate("FIB13", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM618);
ObjectSetText("FIB13", "FIB -1.618% ", 8, "Arial", Green);
}else{ObjectMove("FIB13", 0, Time[SHIFT_FibText], FIBM618);}
     if(ObjectFind("FIB14") != 0){
ObjectCreate("FIB14", OBJ_TEXT, 0, Time[SHIFT_FibText], FIB764);
ObjectSetText("FIB14", "FIB 0.764% ", 8, "Arial", Green);
}else{ObjectMove("FIB14", 0, Time[SHIFT_FibText], FIB764);}
     if(ObjectFind("FIB15") != 0){
ObjectCreate("FIB15", OBJ_TEXT, 0, Time[SHIFT_FibText], FIB236);
ObjectSetText("FIB15", "FIB 0.236% ", 8, "Arial", Green);
}else{ObjectMove("FIB15", 0, Time[SHIFT_FibText], FIB236);}
     if(ObjectFind("FIB16") != 0){
ObjectCreate("FIB16", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM236);
ObjectSetText("FIB16", "FIB -1.236% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB16", 0, Time[SHIFT_FibText], FIBM236);}
     if(ObjectFind("FIB17") != 0){
ObjectCreate("FIB17", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP236);
ObjectSetText("FIB17", "FIB +1.236% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB17", 0, Time[SHIFT_FibText], FIBP236);}
     if(ObjectFind("FIB18") != 0){
ObjectCreate("FIB18", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM764);
ObjectSetText("FIB18", "FIB -1.764% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB18", 0, Time[SHIFT_FibText], FIBM764);}
     if(ObjectFind("FIB19") != 0){
ObjectCreate("FIB19", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP764);
ObjectSetText("FIB19", "FIB +1.764% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB19", 0, Time[SHIFT_FibText], FIBP764);}
}

if (Show_EXTRAFibLines==true)
{
     if(ObjectFind("FIB120") != 0){
ObjectCreate("FIB20", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP150);
ObjectSetText("FIB20", "FIB +250% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB20", 0, Time[SHIFT_FibText], FIBP150);}
     if(ObjectFind("FIB21") != 0){
ObjectCreate("FIB21", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM150);
ObjectSetText("FIB21", "FIB -250% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB21", 0, Time[SHIFT_FibText], FIBM150);}
     if(ObjectFind("FIB122") != 0){
ObjectCreate("FIB22", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP200);
ObjectSetText("FIB22", "FIB +300% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB22", 0, Time[SHIFT_FibText], FIBP200);}
     if(ObjectFind("FIB23") != 0){
ObjectCreate("FIB23", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM200);
ObjectSetText("FIB23", "FIB -300% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB23", 0, Time[SHIFT_FibText], FIBM200);}
     if(ObjectFind("FIB124") != 0){
ObjectCreate("FIB24", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP250);
ObjectSetText("FIB24", "FIB +350% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB24", 0, Time[SHIFT_FibText], FIBP250);}
     if(ObjectFind("FIB25") != 0){
ObjectCreate("FIB25", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM250);
ObjectSetText("FIB25", "FIB -350% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB25", 0, Time[SHIFT_FibText], FIBM250);}
     if(ObjectFind("FIB126") != 0){
ObjectCreate("FIB26", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBP300);
ObjectSetText("FIB26", "FIB +400% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB26", 0, Time[SHIFT_FibText], FIBP300);}
     if(ObjectFind("FIB27") != 0){
ObjectCreate("FIB27", OBJ_TEXT, 0, Time[SHIFT_FibText], FIBM300);
ObjectSetText("FIB27", "FIB -400% ", 8, "Arial", C'0,93,0');
}else{ObjectMove("FIB27", 0, Time[SHIFT_FibText], FIBM300);}
}
if (Show_Daily_HI_LOW==true)
    {      
     if(ObjectFind("DHIGH") != 0){
ObjectCreate("DHIGH", OBJ_TEXT, 0, Time[SHIFT_HI_LOW_TEXT], HI3);
ObjectSetText("DHIGH", "Daily High ", 8, "Arial", Turquoise);
}else{ObjectMove("DHIGH", 0, Time[SHIFT_HI_LOW_TEXT], HI3);}
     if(ObjectFind("DLOW") != 0){
ObjectCreate("DLOW", OBJ_TEXT, 0, Time[SHIFT_HI_LOW_TEXT], LOW3);
ObjectSetText("DLOW", "Daily Low ", 8, "Arial", Turquoise);
}else{ObjectMove("DLOW", 0, Time[SHIFT_HI_LOW_TEXT], LOW3);}
}
if (Show_Daily_OPEN==true)
{
     if(ObjectFind("DailyOpen") != 0){
ObjectCreate("DailyOpen", OBJ_TEXT, 0, Time[SHIFT_Daily_OPEN_TEXT], OPEN);
ObjectSetText("DailyOpen", "                            OPEN "+ DoubleToStr(OPEN,Digits)+"", 8, "Arial Bold",YellowGreen);
}else{ObjectMove("DailyOpen", 0, Time[SHIFT_Daily_OPEN_TEXT], OPEN);}
}

	 string  NAME,BUYSTOP,BUYSTOP1,STOP,STOP1,PROFIT,PROFIT1,SELL,SELL1,STOP2,STOP3,PROFIT2,
	         PROFIT3,BUYTARGT,PROFIT4,SELLTARGT,PROFIT5,OPEN1,DAR,TOTAL,TDR,LDR,TIME, 
	         TIME2,PRICE,TDR1,LDR1,STOP4,STOP5 ; 
	
	 if (Show_OpenCOMMENTS==true)
	 {        
	NAME = IND_NAME;			
	BUYSTOP = (DoubleToStr (B1,Digits));
	BUYSTOP1 = (DoubleToStr(B2,Digits));
	STOP = (DoubleToStr (S1,Digits));
	STOP1 = (DoubleToStr(B1,Digits));
	PROFIT = (DoubleToStr ((B2),Digits));
	PROFIT1 = (DoubleToStr (B3,Digits));//((B2+(10*Point)),Digits)); 
	SELL = (DoubleToStr (S1,Digits));
	SELL1 = (DoubleToStr (S2,Digits)); 
	STOP2 = (DoubleToStr (B1,Digits));
	STOP3 = (DoubleToStr(S1,Digits));
	PROFIT2 = (DoubleToStr ((S2),Digits));
	PROFIT3 = (DoubleToStr (S3,Digits));//((S2-(10*Point)),Digits));
	BUYTARGT = (DoubleToStr(S2,Digits));
	PROFIT4 = (DoubleToStr(B1,Digits));
	STOP4 = (DoubleToStr(S3,Digits));
	SELLTARGT = (DoubleToStr(B2,Digits));
	PROFIT5 = (DoubleToStr(S1,Digits));
	STOP5 = (DoubleToStr(B3,Digits));
	OPEN1 = (DoubleToStr(OPEN,Digits));
	DAR = (DoubleToStr(AV/Point,0));
	TOTAL = (DoubleToStr(HI2-LOW2,Digits));
	TDR = (DoubleToStr(P+AV,Digits));
	LDR = (DoubleToStr(P-AV,Digits));
	TDR1 = (DoubleToStr(P+AV/2,Digits));
	LDR1 = (DoubleToStr(P-AV/2,Digits));
	TIME = (TimeToStr(LocalTime(),Digits-6));
	TIME2 = (TimeToStr(CurTime(),Digits-6));
	PRICE = (DoubleToStr(iMA(Symbol(),0,1,0,MODE_EMA,PRICE_CLOSE,0),Digits));//iMA(Symbol(),0,1,0,MODE_EMA,PRICE_CLOSE,0);        
   

   ObjectDelete("Open");
   Open.( "Open", 22, 12,4);
   ObjectSetText( "Open"," "+ NAME +"", 11, "Arial", Yellow );
   
   ObjectDelete("Open1");
   Open1( "Open1", 35, 12,4);
   ObjectSetText( "Open1", ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"  , 8, "Arial", White );
   
   				
	ObjectDelete("Open2");
   Open2( "Open2", 50, 12,4);
   ObjectSetText( "Open2", "BUY ZONE", 9, "Arial", DeepSkyBlue );
   ObjectDelete("Open3");
   Open3( "Open3", 60, 12,4);
   ObjectSetText( "Open3",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,", 8, "Arial", White );
   
   ObjectDelete("Open4");
   Open4( "Open4", 75, 12,4);
   ObjectSetText( "Open4", "BUY STOP-1  "+Symbol()+ "  @ ", 9, "Arial", DodgerBlue );
   ObjectDelete("Open5");
   Open5( "Open5", 75, 12,4);
   ObjectSetText( "Open5"," "+ BUYSTOP +"", 9, "Arial", DarkOrange );
   
    ObjectDelete("Open6");
   Open6( "Open6", 90, 12,4);
   ObjectSetText( "Open6", "TP               and SL @    ", 9, "Arial", DodgerBlue);
   ObjectDelete("Open7");
   Open7( "Open7", 90, 12,4);
   ObjectSetText( "Open7"," "+ BUYSTOP1 +"", 9, "Arial", YellowGreen);
   ObjectDelete("Open8");
   Open8( "Open8", 90, 12,4);
   ObjectSetText( "Open8"," "+ STOP +"", 9, "Arial", Yellow );
   
       ObjectDelete("Open9");
   Open9( "Open9", 110, 12,4);
   ObjectSetText( "Open9", "BUY STOP-2  "+Symbol()+ "  @ ",9, "Arial", LightBlue );
   ObjectDelete("Open10");
   Open10( "Open10", 110, 12,4);
   ObjectSetText( "Open10"," "+ BUYSTOP1 +"", 9, "Arial", DarkOrange );
   
         ObjectDelete("Open11");
   Open11( "Open11", 125, 12,4);
   ObjectSetText( "Open11",  "TP               and SL @    ", 9, "Arial", LightBlue);
   ObjectDelete("Open12");
   Open12( "Open12", 125, 12,4);
   ObjectSetText( "Open12"," "+ PROFIT1 +"", 9, "Arial", YellowGreen );
   
        ObjectDelete("Open13");
   Open13( "Open13", 125, 12,4);
   ObjectSetText( "Open13", ""+ STOP1 +""  , 9, "Arial", Yellow );
  
   
    ObjectDelete("Open14");
   Open14( "Open14", 140, 12,4);
   ObjectSetText( "Open14", ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"  , 8, "Arial", White );
   
         ObjectDelete("Open15");
   Open15( "Open15", 155, 12,4);
   ObjectSetText( "Open15", "SELL ZONE"  , 9, "Arial", Orange );
   
   ObjectDelete("Open16");
   Open16( "Open16", 165, 12,4);
   ObjectSetText( "Open16", ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"  , 8, "Arial", White );
   
    
       ObjectDelete("Open17");
   Open17( "Open17", 180, 12,4);
   ObjectSetText( "Open17", "SELL STOP-1  "+Symbol()+ "  to ", 9, "Arial", OrangeRed );
   ObjectDelete("Open18");
   Open18( "Open18", 180, 12,4);
   ObjectSetText( "Open18"," "+ SELL +"", 9, "Arial",DarkOrange);
   
     
          ObjectDelete("Open19");
   Open19( "Open19", 195, 12,4);
   ObjectSetText( "Open19",  "TP               and SL @    ", 9, "Arial", OrangeRed );
   ObjectDelete("Open20");
   Open20( "Open20", 195, 12,4);
   ObjectSetText( "Open20"," "+ PROFIT2  +"", 9, "Arial", YellowGreen );
        ObjectDelete("Open21");
   Open21( "Open21", 195, 12,4);
   ObjectSetText( "Open21"," "+STOP1+ " " , 9, "Arial", Yellow );
   
     
       ObjectDelete("Open22");
   Open22( "Open22", 215, 12,4);
   ObjectSetText( "Open22", "SELL STOP-2  "+Symbol()+ "  to ", 9, "Arial", OrangeRed );
   ObjectDelete("Open23");
   Open23( "Open23", 215, 12,4);
   ObjectSetText( "Open23"," "+ SELL1 +"", 9, "Arial",DarkOrange);
   
   
      
          ObjectDelete("Open24");
   Open24( "Open24", 230, 12,4);
   ObjectSetText( "Open24",  "TP               and SL @    ", 9, "Arial", OrangeRed );
   ObjectDelete("Open25");
   Open25( "Open25", 230, 12,4);
   ObjectSetText( "Open25"," "+ PROFIT3 +"", 9, "Arial", YellowGreen );
        ObjectDelete("Open26");
   Open26( "Open26", 230, 12,4);
   ObjectSetText( "Open26"," "+STOP3+ " " , 9, "Arial", Yellow );
  
    ObjectDelete("Open27");
   Open27( "Open27", 245, 12,4);
   ObjectSetText( "Open27", ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"  , 8, "Arial", White );
   
        ObjectDelete("Open28");
   Open28( "Open28", 260, 12,4);
   ObjectSetText( "Open28", "POTENTIAL REVERSAL LEVELS"  , 9, "Arial",DarkSeaGreen);
 
 
    ObjectDelete("Open29");
   Open29( "Open29", 270, 12,4);
   ObjectSetText( "Open29", ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"  , 8, "Arial", White );
   
           ObjectDelete("Open30");
   Open30( "Open30", 285, 12,4);
   ObjectSetText( "Open30", "BEARISH CORRECTION : "  , 9, "Arial",DeepSkyBlue);
   
         ObjectDelete("Open31");
   Open31( "Open31", 300, 12,4);
   ObjectSetText( "Open31", "BUY STOP "+Symbol()+ "  @ ", 9, "Arial", DodgerBlue );
   ObjectDelete("Open32");
   Open32( "Open32", 300, 12,4);
   ObjectSetText( "Open32"," "+ BUYTARGT +"", 9, "Arial", DarkOrange );
   
       
          ObjectDelete("Open33");
   Open33( "Open33", 315, 12,4);
   ObjectSetText( "Open33",  "TP               and SL @    ", 9, "Arial", DodgerBlue );
   ObjectDelete("Open34");
   Open34( "Open34", 315, 12,4);
   ObjectSetText( "Open34"," "+ PROFIT4  +"", 9, "Arial", YellowGreen );
        ObjectDelete("Open35");
   Open35( "Open35", 315, 12,4);
   ObjectSetText( "Open35"," "+STOP4+ " " , 9, "Arial", Yellow );
   
   
    
           ObjectDelete("Open36");
   Open36( "Open36", 335, 12,4);
   ObjectSetText( "Open36", "BULLISH CORRECTION : "  , 9, "Arial",Orange);
   
         ObjectDelete("Open37");
   Open37( "Open37", 350, 12,4);
   ObjectSetText( "Open37", "SELL STOP "+Symbol()+ "  @ ", 9, "Arial",  OrangeRed );
   ObjectDelete("Open38");
   Open38( "Open38", 350, 12,4);
   ObjectSetText( "Open38"," "+ SELLTARGT +"", 9, "Arial", DarkOrange );
   
       
          ObjectDelete("Open39");
   Open39( "Open39", 365, 12,4);
   ObjectSetText( "Open39",  "TP               and SL @    ", 9, "Arial",  OrangeRed );
   ObjectDelete("Open40");
   Open40( "Open40", 365, 12,4);
   ObjectSetText( "Open40"," "+ PROFIT5  +"", 9, "Arial", YellowGreen );
        ObjectDelete("Open41");
   Open41( "Open41", 365, 12,4);
   ObjectSetText( "Open41"," "+STOP5+ " " , 9, "Arial", Yellow );
   
   
    ObjectDelete("Open42");
   Open42( "Open42", 380, 12,4);
   ObjectSetText( "Open42", ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"  , 8, "Arial", White );
   
        
          ObjectDelete("Open43");
   Open43( "Open43", 395, 12,4);
   ObjectSetText( "Open43",  "DAILY OPEN", 9, "Arial",  Orange );
   ObjectDelete("Open44");
   Open44( "Open44", 395, 12,4);
   ObjectSetText( "Open44"," "+ OPEN1 +"", 9, "Arial", YellowGreen );
        ObjectDelete("Open45");
   Open45( "Open45", 410, 12,4);
   ObjectSetText( "Open45","DAILY AVERAGE RANGE " , 9, "Arial",DarkSeaGreen);
          ObjectDelete("Open46");
   Open46( "Open46", 410, 12,4);
   ObjectSetText( "Open46"," "+DAR+ " " , 9, "Arial", DarkOrange );
   
   
    ObjectDelete("Open47");
   Open47( "Open47", 420, 12,4);
   ObjectSetText( "Open47", ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"  , 8, "Arial", White );
   
          ObjectDelete("Open48");
   Open48( "Open48", 435, 12,4);
   ObjectSetText( "Open48","Price" , 10, "Arial", Silver);
          ObjectDelete("Open49");
   Open49( "Open49", 435, 12,4);
   ObjectSetText( "Open49"," "+PRICE+ " " , 15, "Arial", Silver);
   
	}
	}

	//----
	return(0);




//+------------------------------------------------------------------+
int Open.( string Text, int xOffset, int yOffset,int iCorner) //TITLE
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20);
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open1( string Text, int xOffset, int yOffset,int iCorner) //TITLE
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open2( string Text, int xOffset, int yOffset,int iCorner)//Buy Zone
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open3( string Text, int xOffset, int yOffset,int iCorner) //Line
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open4( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open5( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 170 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open6( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open7( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 35 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open8( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 140 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open9( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open10( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 170 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open11( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open12( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 35 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open13( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 140 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open14( string Text, int xOffset, int yOffset,int iCorner) //Line
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20);
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open15( string Text, int xOffset, int yOffset,int iCorner) //SELL ZONE
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open16( string Text, int xOffset, int yOffset,int iCorner) //LINE
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open17( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open18( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 170 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open19( string Text, int xOffset, int yOffset,int iCorner) // Line
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open20( string Text, int xOffset, int yOffset,int iCorner) // 1st SELL 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 35 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open21( string Text, int xOffset, int yOffset,int iCorner) // 1st SELL SL
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 140 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}  
int Open22( string Text, int xOffset, int yOffset,int iCorner) // 2nd SELL
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open23( string Text, int xOffset, int yOffset,int iCorner) // 2nd SELL
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 170 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open24( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open25( string Text, int xOffset, int yOffset,int iCorner)
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 35);
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open26( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 140 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open27( string Text, int xOffset, int yOffset,int iCorner)//LINE 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open28( string Text, int xOffset, int yOffset,int iCorner) // POTENTIAL 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open29( string Text, int xOffset, int yOffset,int iCorner) // LINE
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open30( string Text, int xOffset, int yOffset,int iCorner) //BEARISH CORR
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}   
int Open31( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open32( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 170 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open33( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open34( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 35 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open35( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 140 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open36( string Text, int xOffset, int yOffset,int iCorner) //BULLISH CORR
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open37( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open38( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 170 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open39( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open40( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 35 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open41( string Text, int xOffset, int yOffset,int iCorner)  
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 140 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open42( string Text, int xOffset, int yOffset,int iCorner)  
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open43( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open44( string Text, int xOffset, int yOffset,int iCorner) 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 100 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open45( string Text, int xOffset, int yOffset,int iCorner)  
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
} 
int Open46( string Text, int xOffset, int yOffset,int iCorner)  
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 160 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open47( string Text, int xOffset, int yOffset,int iCorner) //Line 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open48( string Text, int xOffset, int yOffset,int iCorner) //Line 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 20 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}
int Open49( string Text, int xOffset, int yOffset,int iCorner) //Line 
{  ObjectCreate(Text,OBJ_LABEL         , 0, 0, 0 );
   ObjectSet   (Text,OBJPROP_CORNER    , iCorner);
   ObjectSet   (Text,OBJPROP_XDISTANCE , 50 );
   ObjectSet   (Text,OBJPROP_YDISTANCE , xOffset );
   ObjectSet   (Text,OBJPROP_BACK      , True );
}

