Navigation:Home > Content >

09_wave_charter_Cycle__i___v1.4.mq4

Time: 2016-05-16 | Download file:09_wave_charter_Cycle__i___v1.4.mq4

//+------------------------------------------------------------------+
//|                                                 wave_charter.mq4 |
//|                                                           Kirill |
//|                                                          07.2008 |
//+------------------------------------------------------------------+
#property copyright "Kirill"
#property link      "[email protected]"
#property show_inputs

//this is a SCRIPT(!) intended to easen the life of wave analitics

//Subminuette 
//Сверхмаленький уровень i ii iii iv v a b c d e w x y xx z
 

extern string IMPORTANT = "This is the Subminuette ()";

extern bool i = true;
extern bool ii = true;   
extern bool iii = true;
extern bool iv = true;
extern bool v = true;

extern bool a = true;
extern bool b = true;   
extern bool c = true;
extern bool d = true;
extern bool e = true;

extern bool w = true;   
extern bool x = true;
extern bool y = true;
extern bool xx = true;
extern bool z = true;

extern int size = 14;
extern color colour = Maroon;




datetime X_TopRight(int fidge)  //хотим узнать нажата ли кнопка отступить поле справа
   {
      //int margin = WindowBarsPerChart() - WindowFirstVisibleBar(); //с отступом всё намного сложнее (муторно), т.к. справа нет суббот и воскресений, и баров тоже нет.
      return (Time[0+fidge +10]);   //+10 - для красоты - чтобы первый элемент вправо не выезжал
   }

double Y_TopRight()  //хотим узнать высоту окна
   {
      double   top=WindowPriceMax();
      double   bottom=WindowPriceMin();
      return (top - 0.025*(top-bottom));    //для красоты
   }

int start()
  {
   MathSrand(TimeLocal());
   string time = TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) + " " + DoubleToStr(MathRand(), 0);
   int fidge = 0;                   //fidge и param нужны для того, чтобы сдвигать буквы отн. друг друга.
   int param = 20;
   if(i) 
      {
         ObjectCreate("i" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("i" + time, "i", size, "Times New Roman", colour);
         fidge += param;
      }
   if(ii) 
      {
         ObjectCreate("ii" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("ii" + time, "ii", size, "Times New Roman", colour);
         fidge += param;
      }
   if(iii) 
      {
         ObjectCreate("iii" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("iii" + time, "iii", size, "Times New Roman", colour);
         fidge += param;
      }      
   if(iv) 
      {
         ObjectCreate("iv" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("iv" + time, "iv", size, "Times New Roman", colour);
         fidge += param;
      }
   if(v) 
      {
         ObjectCreate("v" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("v" + time, "v", size, "Times New Roman", colour);
         fidge += param;
      }
 
//      
      
   if(a) 
      {
         ObjectCreate("a" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("a" + time, "a", size, "Times New Roman", colour);
         fidge += param;
      }
   if(b) 
      {
         ObjectCreate("b" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("b" + time, "b", size, "Times New Roman", colour);
         fidge += param;
      }
   if(c) 
      {
         ObjectCreate("c" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("c" + time, "c", size, "Times New Roman", colour);
         fidge += param;
      }      
   if(d) 
      {
         ObjectCreate("d" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("d" + time, "d", size, "Times New Roman", colour);
         fidge += param;
      }
   if(e) 
      {
         ObjectCreate("e" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("e" + time, "e", size, "Times New Roman", colour);
         fidge += param;
      }
 
//      
      
   if(w) 
      {
         ObjectCreate("w" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("w" + time, "w", size, "Times New Roman", colour);
         fidge += param;
      }
   if(x) 
      {
         ObjectCreate("x" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("x" + time, "x", size, "Times New Roman", colour);
         fidge += param;
      }
   if(y) 
      {
         ObjectCreate("y" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("y" + time, "y", size, "Times New Roman", colour);
         fidge += param;
      }
       if(xx) 
      {
         ObjectCreate("xx" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("xx" + time, "xx", size, "Times New Roman", colour);
         fidge += param;
      }      
   if(z) 
      {
         ObjectCreate("z" + time, OBJ_TEXT, 0, X_TopRight(fidge), Y_TopRight());
         ObjectSetText("z" + time, "z", size, "Times New Roman", colour);
         fidge += param;
      }

   return(0);
  }
//+------------------------------------------------------------------+

Recommend