Levels_Nikita_en

Levels_Nikita_en
Price Data Components
Series array that contains the highest prices of each barSeries array that contains the lowest prices of each bar
Miscellaneous
Implements a curve of type %1
0 Views
0 Downloads
0 Favorites
Levels_Nikita_en

//+---------------------------------------------------------------------+ 
 /* 
  Êðàòêàÿ èíñòðóêöèÿ. äëÿ ðàáîòû ýòîãî èíäþêà íåîáõîäèì  ÇèãÇàã  http://codebase.mql4.com/ru/5342       RPoint-m v2.mq4  
  Öèôðû  ñâåðõó, ïîêàçûâàþò Range ìåæäó òåêóùåé öåíîé è âåðõíåé òî÷êîé ïîñëåäíåé âåòêè çèã-çàãà. Öèôðû  âíèçó, ïîêàçûâàþò Range ìåæäó òåêóùåé öåíîé è íèæíåé òî÷êîé ïîñëåäíåé âåòêè çèã-çàãà. 
    Î÷åíü âàæíàÿ, ýòî, ëèíèÿ 50% öåíû, 100% âðåìåíè Îíà íå âñåãäà ïðàâèëüíî ïîêàçûâàåò âðåìÿ (îñîáåííî ïîñëå ñóááîòû, âîñêðåñåíüÿ, íî ÿ ñ ýòèì ñïðàâèòñÿ íå ñìîã), íî âñåãäà ïðàâèëüíî ïîêàçûâàåò 50% öåíû. 
    Ïðè êîððåêöèè   ïîñëåäíåé âåòêè çèã-çàãà, â áîëüøèíñòâå ñëó÷àåâ, öåíà  ñòðåìèòñÿ ïðîðâàòü ýòîò óðîâåíü, åñëè çà  100% âðåìåíè öåíà íå äîñòèãëà ýòîò óðîâåíü, î÷åíü âåëèêà âåðîÿòíîñòü ïðîäîëæåíèÿ äâèæåíèÿ.
    ( 100% âðåìåíè, ýòî âðåìÿ äâèæåíèÿ ïîñëåäíåé âåòêè  ÇÇ = ÇÈÃÇÀÃÀ), êòî õî÷åò óçíàòü ïîäðîáíåå, ÷èòàéòå "Ìîäåëü,Öåíà è Âðåìÿ" Ïðèìåíåíèå Òåîðèè Ãàííà â ñèñòåìàõ òîðãîâëè.  ÈÍÒÅÐÍÅÒÅ îíà åñòü.
    Ýòî î÷åíü èíòåðåñíàÿ ëèíèÿ, (êîãäà ïðàâèëüíî ïîêàçûâàåò âðåìÿ), ïðè äîëãîì íàáëþäåíèè , ìîæíî âûÿñíèòü íåêîòîðûå èíòåðåñíûå çàêîíîìåðíîñòè, è ïîòîì èñïîëüçîâàòü èõ â ñâîåé ðàáîòå.
   Òî æå, îòíîñèòñÿ ê  ëèíèÿì "çåðêàëüíàÿ âåòêà çèã-çàãà 100% âðåìåíè" è "çåðêàëüíàÿ âåòêà çèã-çàãà 200% âðåìåíè" Ýòî íàìíîãî êðó÷å, ÷åì ñêîðîñòíûå ëèíèè èëè Fibo Fan. 
      Cycle äîáàâèë äëÿ ëþáèòåëåé  öèêëîâ. 
     Ecëè áóäåòå äîëãî íàáëþäàòü, è âûÿñíèòå êîãäà ïîÿâëÿåòñÿ íîâàÿ ëèíèÿ çèãçàãà, è ÷òî ïîòîì ïðîèñõîäèò,Ýòî áóäåò ÓÑÏÅÕ!è âîçìîæíî â äåíüãàõ!
       Íà àâòîðñòâî, è òåì áîëåå íà êðèòèêó íå ïðåòåíäóþ. Åñëè ìîæåòå, èñïðàâëÿéòå îøèáêè, óëó÷øàéòå, è Æåëàþ çàðàáîòàòü ìèëëèîí êàæäîìó. 
    Íà ýòîì Âñå. Èùèòå çàêîíîìåðíîñòè è èñïîëüçóéòå èõ! 
    P.S. ... Êñòàòè ýòîò èíäþê õîðîøî ðàáîòàåò â òåñòåðå, íåñêîëüêî ÷àñîâ-äíåé òðåíèðîâîê è âî âñåì ðàçáåðåòåñü.
 */ 
//+---------------------------------------------------------------------+ 
 
#property indicator_chart_window 
#property indicator_color1 DarkGray   //Blue Red
extern int ReversPoint=50;
extern bool Fibo22 =true ;  // true  false
extern bool Cycle = true  ;  // true  false
extern bool chanel =true  ;  // false
extern bool triangle = false;  // true false
extern bool mirror_thread_100 =true;  //false  true
extern bool mirror_thread_200 =true;  //false  true
extern bool mirror_thread_300 =true ;  //false  true
extern color Trend =DarkGray,color_trianglea =LightGray; 
extern int font = 8; 

  double zz[]; 
int init(){

 SetIndexBuffer(0,zz); SetIndexStyle(0,DRAW_SECTION,2);} 
int start(){ 
   double d1,d2,d3,d4,d5;   datetime t1,t2,t3,t4,t5; 
   ArrayInitialize(zz,EMPTY_VALUE); 
   for(int i=1;i<=1000;i++){ 
      d1=iCustom(Symbol(),0,"RPoint-m v2",ReversPoint,0,i); //
      t1=Time[i];  if (d1>0) {zz[i]=d1;break;} 
   } 
   for(i=i+1;i<=1000;i++){ 
      d2=iCustom(Symbol(),0,"RPoint-m v2",ReversPoint,0,i);  //òàêîé èíäèêàòîð äîëæåí ëåæàòüâ ïàïêå "èíäèêàòîðû"
      t2=Time[i];   if (d2>0) {zz[i]=d2;break;} 
      } 
         for(i=i+1;i<=1000;i++){ 
      d3=iCustom(Symbol(),0,"RPoint-m v2",ReversPoint,0,i); 
      t3=Time[i];   if (d3>0) {zz[i]=d3;break;} 
      } 
               for(i=i+1;i<=1000;i++){ 
      d4=iCustom(Symbol(),0,"RPoint-m v2",ReversPoint,0,i); 
      t4=Time[i];   if (d4>0) {zz[i]=d4;break;} 
      } 
                     for(i=i+1;i<=1000;i++){ 
      d5=iCustom(Symbol(),0,"RPoint-m v2",ReversPoint,0,i); 
      t5=Time[i];   if (d5>0) {zz[i]=d5;break;} 
      } 
   /*   
  //+--- 
     if (ObjectFind("Ëèíèÿ 30-min ïåðèîäà")==-1){ 
  ObjectCreate("Ëèíèÿ 30-min ïåðèîäà",OBJ_TREND,0,0,0,0); 
  ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_RAY,false); 
  ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_STYLE,2); //0 1 2 3 4 
  ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_COLOR,Red); 
  ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 ); // | OBJ_PERIOD_M15 
 }   ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_TIME1,iTime(NULL,PERIOD_M30,2)-60);  
  ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_PRICE1,    iHigh(NULL,PERIOD_M30,3));   
  ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_TIME2,iTime(NULL,PERIOD_M30,2)-60);  
  ObjectSet("Ëèíèÿ 30-min ïåðèîäà",OBJPROP_PRICE2,  iLow(NULL,PERIOD_M30,3));  
  */
 //+--- 
     if (ObjectFind("Range Last 1 Hour")==-1){ 
  ObjectCreate("Range Last 1 Hour",OBJ_TREND,0,0,0,0); 
  ObjectSet("Range Last 1 Hour",OBJPROP_RAY,false); 
  ObjectSet("Range Last 1 Hour",OBJPROP_STYLE,2); //0 1 2 3 4 
  ObjectSet("Range Last 1 Hour",OBJPROP_COLOR,Blue); 
  ObjectSet("Range Last 1 Hour",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5| OBJ_PERIOD_M15  ); // 
 }   ObjectSet("Range Last 1 Hour",OBJPROP_TIME1,iTime(NULL,PERIOD_H1,0)-60);  
  ObjectSet("Range Last 1 Hour",OBJPROP_PRICE1,    iHigh(NULL,PERIOD_H1,1));   
  ObjectSet("Range Last 1 Hour",OBJPROP_TIME2,iTime(NULL,PERIOD_H1,0)-60);  
  ObjectSet("Range Last 1 Hour",OBJPROP_PRICE2,  iLow(NULL,PERIOD_H1,1));  
 //+-- 
     if (ObjectFind("Range Last 2 Hours")==-1){ 
  ObjectCreate("Range Last 2 Hours",OBJ_TREND,0,0,0,0); 
  ObjectSet("Range Last 2 Hours",OBJPROP_COLOR,Blue); 
  ObjectSet("Range Last 2 Hours",OBJPROP_STYLE,2); //0 1 2 3 4 
  ObjectSet("Range Last 2 Hours",OBJPROP_RAY,false); 
  ObjectSet("Range Last 2 Hours",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15 ); //        
 }   ObjectSet("Range Last 2 Hours",OBJPROP_TIME1,iTime(NULL,PERIOD_H1,1)-60);  
  ObjectSet("Range Last 2 Hours",OBJPROP_PRICE1,    iHigh(NULL,PERIOD_H1,2));   
  ObjectSet("Range Last 2 Hours",OBJPROP_TIME2,iTime(NULL,PERIOD_H1,1)-60);  
  ObjectSet("Range Last 2 Hours",OBJPROP_PRICE2,  iLow(NULL,PERIOD_H1,2));  
  //+--  
      if (ObjectFind("Range Last 3 Hours")==-1){ 
  ObjectCreate("Range Last 3 Hours",OBJ_TREND,0,0,0,0); 
  ObjectSet("Range Last 3 Hours",OBJPROP_COLOR,Blue); 
  ObjectSet("Range Last 3 Hours",OBJPROP_STYLE,2); //0 1 2 3 4 
  ObjectSet("Range Last 3 Hours",OBJPROP_RAY,false); 
  ObjectSet("Range Last 3 Hours",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15 ); //        
 }   ObjectSet("Range Last 3 Hours",OBJPROP_TIME1,iTime(NULL,PERIOD_H1,2)-60);  
  ObjectSet("Range Last 3 Hours",OBJPROP_PRICE1,    iHigh(NULL,PERIOD_H1,3));   
  ObjectSet("Range Last 3 Hours",OBJPROP_TIME2,iTime(NULL,PERIOD_H1,2)-60);  
  ObjectSet("Range Last 3 Hours",OBJPROP_PRICE2,  iLow(NULL,PERIOD_H1,3)); 
 //+--   
         if (ObjectFind("Range Last 4 Hours")==-1){ 
  ObjectCreate("Range Last 4 Hours",OBJ_TREND,0,0,0,0); 
  ObjectSet("Range Last 4 Hours",OBJPROP_COLOR,Blue); 
  ObjectSet("Range Last 4 Hours",OBJPROP_STYLE,2); //0 1 2 3 4 
  ObjectSet("Range Last 4 Hours",OBJPROP_RAY,false); 
  ObjectSet("Range Last 4 Hours",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15 ); //        
 }   ObjectSet("Range Last 4 Hours",OBJPROP_TIME1,iTime(NULL,PERIOD_H1,3)-60);  
  ObjectSet("Range Last 4 Hours",OBJPROP_PRICE1,    iHigh(NULL,PERIOD_H1,4));   
  ObjectSet("Range Last 4 Hours",OBJPROP_TIME2,iTime(NULL,PERIOD_H1,3)-60);  
  ObjectSet("Range Last 4 Hours",OBJPROP_PRICE2,  iLow(NULL,PERIOD_H1,4));        
 //+------------------------------------------------------------------+ 
     if (ObjectFind("Next H1 VLine")==-1){ 
     ObjectCreate("Next H1 VLine",OBJ_VLINE,0,0,0);  
     ObjectSet("Next H1 VLine",OBJPROP_COLOR,DarkGray); 
     ObjectSet("Next H1 VLine",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15  ); // 
     ObjectSet("Next H1 VLine",OBJPROP_STYLE,2); //0 1 2 3 4 
     ObjectSet("Next H1 VLine",OBJPROP_BACK,true);// true  false         
   } ObjectSet("Next H1 VLine",OBJPROP_TIME1,iTime(NULL,PERIOD_H1,0)+3600); 
     ObjectSet("Next H1 VLine",OBJPROP_PRICE1, 0);            
 //+------------------------------------------------------------------+ 
  if (chanel)   if (ObjectFind("Chanel Line")==-1){ 
   ObjectCreate("Chanel Line",OBJ_CHANNEL,0,0,0,0,0); 
      ObjectSet("Chanel Line",OBJPROP_RAY,false); 
      ObjectSet("Chanel Line",OBJPROP_STYLE,2); //0,1,2,3 OBJPROP_STYLE WIDTH
      ObjectSet("Chanel Line",OBJPROP_COLOR,Trend); 
    } ObjectSet("Chanel Line",OBJPROP_PRICE1, d3); 
      ObjectSet("Chanel Line",OBJPROP_TIME1,t3);  
      ObjectSet("Chanel Line",OBJPROP_PRICE2,d1);
      ObjectSet("Chanel Line",OBJPROP_TIME2,t1);
      ObjectSet("Chanel Line",OBJPROP_PRICE3,d2);
      ObjectSet("Chanel Line",OBJPROP_TIME3,t2);
 //+-- 
     if (ObjectFind("Chanel Line 1")==-1){ 
   ObjectCreate("Chanel Line 1",OBJ_CHANNEL,0,0,0,0,0); 
      ObjectSet("Chanel Line 1",OBJPROP_RAY,false); 
      ObjectSet("Chanel Line 1",OBJPROP_STYLE,2); //0,1,2,3 OBJPROP_STYLE WIDTH
      ObjectSet("Chanel Line 1",OBJPROP_COLOR,Trend); 
    } ObjectSet("Chanel Line 1",OBJPROP_PRICE1, d3); 
      ObjectSet("Chanel Line 1",OBJPROP_TIME1,t3);  
      ObjectSet("Chanel Line 1",OBJPROP_PRICE2,d2);
      ObjectSet("Chanel Line 1",OBJPROP_TIME2,t2);
      ObjectSet("Chanel Line 1",OBJPROP_PRICE3,d1);
      ObjectSet("Chanel Line 1",OBJPROP_TIME3,t1);// 
 //+-- 
         if (ObjectFind("Chanel Line 11")==-1){ 
   ObjectCreate("Chanel Line 11",OBJ_CHANNEL,0,0,0,0,0); 
      ObjectSet("Chanel Line 11",OBJPROP_RAY,false); 
      ObjectSet("Chanel Line 11",OBJPROP_STYLE,2); //0,1,2,3 OBJPROP_STYLE WIDTH
      ObjectSet("Chanel Line 11",OBJPROP_COLOR,Trend); 
    } ObjectSet("Chanel Line 11",OBJPROP_PRICE1, d4); 
      ObjectSet("Chanel Line 11",OBJPROP_TIME1,t4);  
      ObjectSet("Chanel Line 11",OBJPROP_PRICE2,d3);
      ObjectSet("Chanel Line 11",OBJPROP_TIME2,t3);
      ObjectSet("Chanel Line 11",OBJPROP_PRICE3,d2);
      ObjectSet("Chanel Line 11",OBJPROP_TIME3,t2);//
  //+---    
           if (ObjectFind("Chanel Line 111")==-1){ 
   ObjectCreate("Chanel Line 111",OBJ_CHANNEL,0,0,0,0,0); 
      ObjectSet("Chanel Line 111",OBJPROP_RAY,false); 
      ObjectSet("Chanel Line 111",OBJPROP_STYLE,2); //0,1,2,3 OBJPROP_STYLE WIDTH
      ObjectSet("Chanel Line 111",OBJPROP_COLOR,Trend); 
    } ObjectSet("Chanel Line 111",OBJPROP_PRICE1, d5); 
      ObjectSet("Chanel Line 111",OBJPROP_TIME1,t5);  
      ObjectSet("Chanel Line 111",OBJPROP_PRICE2,d4);
      ObjectSet("Chanel Line 111",OBJPROP_TIME2,t4);
      ObjectSet("Chanel Line 111",OBJPROP_PRICE3,d3);
      ObjectSet("Chanel Line 111",OBJPROP_TIME3,t3);//
 //+-- 
                 if (ObjectFind("Chanel Line 3")==-1){ 
   ObjectCreate("Chanel Line 3",OBJ_CHANNEL,0,0,0,0,0); 
      ObjectSet("Chanel Line 3",OBJPROP_RAY,false); 
      ObjectSet("Chanel Line 3",OBJPROP_STYLE,2); //0,1,2,3 OBJPROP_STYLE WIDTH
      ObjectSet("Chanel Line 3",OBJPROP_COLOR,Trend); 
    } ObjectSet("Chanel Line 3",OBJPROP_PRICE1, d4); 
      ObjectSet("Chanel Line 3",OBJPROP_TIME1,t4);  
      ObjectSet("Chanel Line 3",OBJPROP_PRICE2,d2);
      ObjectSet("Chanel Line 3",OBJPROP_TIME2,t2);
      ObjectSet("Chanel Line 3",OBJPROP_PRICE3,d2);
      ObjectSet("Chanel Line 3",OBJPROP_TIME3,t2);//
 //+-- 
                      if (ObjectFind("Chanel Line 33")==-1){ 
   ObjectCreate("Chanel Line 33",OBJ_CHANNEL,0,0,0,0,0); 
      ObjectSet("Chanel Line 33",OBJPROP_RAY,false); 
      ObjectSet("Chanel Line 33",OBJPROP_STYLE,2); //0,1,2,3 OBJPROP_STYLE WIDTH
      ObjectSet("Chanel Line 33",OBJPROP_COLOR,Trend); 
    } ObjectSet("Chanel Line 33",OBJPROP_PRICE1, d3); 
      ObjectSet("Chanel Line 33",OBJPROP_TIME1,t3);  
      ObjectSet("Chanel Line 33",OBJPROP_PRICE2,d1);
      ObjectSet("Chanel Line 33",OBJPROP_TIME2,t1);
      ObjectSet("Chanel Line 33",OBJPROP_PRICE3,d1);
      ObjectSet("Chanel Line 33",OBJPROP_TIME3,t1);// 
 //+-- 
  //+-- 
   if (ObjectFind("Almost Endrus Pitchfork")==-1){ 
   ObjectCreate("Almost Endrus Pitchfork",OBJ_CHANNEL, 0, 0,0, 0, 0);  
   ObjectSet("Almost Endrus Pitchfork",OBJPROP_RAY,false); 
      ObjectSet("Almost Endrus Pitchfork",OBJPROP_STYLE,2); //0 1 2 3 4 
      ObjectSet("Almost Endrus Pitchfork",OBJPROP_COLOR,Blue); 
   }  ObjectSet("Almost Endrus Pitchfork",OBJPROP_PRICE1, d3);  
      ObjectSet("Almost Endrus Pitchfork",OBJPROP_TIME1,t3);
      ObjectSet("Almost Endrus Pitchfork",OBJPROP_PRICE2,d1+(d2-d1)/2); 
      ObjectSet("Almost Endrus Pitchfork",OBJPROP_TIME2,t1-(t1-t2)/2 ); 
   ObjectSet("Almost Endrus Pitchfork",OBJPROP_PRICE3, d1+(d2-d1)/2); 
      ObjectSet("Almost Endrus Pitchfork",OBJPROP_TIME3,t1-(t1-t2)/2 );  
  //+--      
          if (ObjectFind("ZZ Last Branch")==-1){ 
  ObjectCreate("ZZ Last Branch",OBJ_TREND,0,0,0,0); 
  ObjectSet("ZZ Last Branch",OBJPROP_RAY,false); 
  ObjectSet("ZZ Last Branch",OBJPROP_STYLE,2); //0 1 2 3 4 
  ObjectSet("ZZ Last Branch",OBJPROP_COLOR,Red); 
 }ObjectSet("ZZ Last Branch",OBJPROP_PRICE1, d1);  
  ObjectSet("ZZ Last Branch",OBJPROP_TIME1,t1);
  ObjectSet("ZZ Last Branch",OBJPROP_PRICE2,d2);  
  ObjectSet("ZZ Last Branch",OBJPROP_TIME2,t2); 
   //+-- 
    if (mirror_thread_100)  if (ObjectFind("ZZ Last Branch Mirror")==-1){ 
      ObjectCreate("ZZ Last Branch Mirror",OBJ_TREND,0,0,0); 
      ObjectSet("ZZ Last Branch Mirror",OBJPROP_RAY,0);  // 0 false, 1 true; 
      ObjectSet("ZZ Last Branch Mirror",OBJPROP_STYLE,2); 
      ObjectSet("ZZ Last Branch Mirror",OBJPROP_COLOR,Red); 
  }   ObjectSet("ZZ Last Branch Mirror",OBJPROP_PRICE1,d1); 
      ObjectSet("ZZ Last Branch Mirror",OBJPROP_TIME1,t1); 
      ObjectSet("ZZ Last Branch Mirror",OBJPROP_PRICE2,d2); 
      ObjectSet("ZZ Last Branch Mirror",OBJPROP_TIME2,t1+t1-t2); 
   //+---     
   //+-- 
 if (mirror_thread_200) if (ObjectFind("ZZ Mirror Branch Shifted in Time 200%")==-1){ 
      ObjectCreate("ZZ Mirror Branch Shifted in Time 200%",OBJ_TREND,0,0,0,0,0); 
      ObjectSet("ZZ Mirror Branch Shifted in Time 200%",OBJPROP_RAY,0); 
      ObjectSet("ZZ Mirror Branch Shifted in Time 200%",OBJPROP_STYLE,2);
       ObjectSet("ZZ Mirror Branch Shifted in Time 200%",OBJPROP_COLOR,Trend);       
  } ObjectSet("ZZ Mirror Branch Shifted in Time 200%",OBJPROP_PRICE1,d1); 
   ObjectSet("ZZ Mirror Branch Shifted in Time 200%",OBJPROP_TIME1,t1); 
   ObjectSet("ZZ Mirror Branch Shifted in Time 200%",OBJPROP_PRICE2,d2); 
   ObjectSet("ZZ Mirror Branch Shifted in Time 200%",OBJPROP_TIME2, t1+(t1-t2)*2); 
    //+---  
  if (mirror_thread_300)  if (ObjectFind("ZZ Mirror Branch Shifted in Time 300%")==-1){ 
      ObjectCreate("ZZ Mirror Branch Shifted in Time 300%",OBJ_TREND,0,0,0,0,0); 
      ObjectSet("ZZ Mirror Branch Shifted in Time 300%",OBJPROP_RAY,0); 
      ObjectSet("ZZ Mirror Branch Shifted in Time 300%",OBJPROP_STYLE,2); 
       ObjectSet("ZZ Mirror Branch Shifted in Time 300%",OBJPROP_COLOR,Trend);      
 }   ObjectSet("ZZ Mirror Branch Shifted in Time 300%",OBJPROP_PRICE1,d1); 
   ObjectSet("ZZ Mirror Branch Shifted in Time 300%",OBJPROP_TIME1,t1); 
   ObjectSet("ZZ Mirror Branch Shifted in Time 300%",OBJPROP_PRICE2,d2); 
   ObjectSet("ZZ Mirror Branch Shifted in Time 300%",OBJPROP_TIME2,t1+(t1-t2)*3); 
    //+---     
   if (Fibo22 )    if(ObjectFind("Fibo22")<0) 
    ObjectCreate("Fibo22",OBJ_FIBO,0,Time[0],Low[0],Time[0],High[0]);
    ObjectSet("Fibo22",OBJPROP_PRICE1,d1); 
    ObjectSet("Fibo22",OBJPROP_TIME1,t1); 
    ObjectSet("Fibo22",OBJPROP_PRICE2,d2);
    ObjectSet("Fibo22",OBJPROP_TIME2,t1);  
    ObjectSet("Fibo22", OBJPROP_COLOR,Gainsboro);   // DarkGray  ÃÐÀÔÈÊ ÑÂÅÐÕÓ
    ObjectSet("Fibo22",OBJPROP_RAY,0); 
    ObjectSet("Fibo22",OBJPROP_STYLE,2);  
                  ObjectSet("Fibo22", OBJPROP_FIBOLEVELS, 32);//FIRSTLEVEL ìîæíî äîáàâëÿòü äî 32 øòóê ïî îáðàçöó 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+0, 0); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+1, 0.875);
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+2, 0.75);
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+3, 0.62);  
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+4, 0.5);
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+5, 0.38);   
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+6, 0.25); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+7, 0.125); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+8, 1.0); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+9, 1.12);  
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+10, -0.12); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+11, 1.25); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+12, -0.25); 
                   ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+13, 1.38);  
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+14, -0.38); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+15, 1.62); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+16, -0.62); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+17, 1.5); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+18, -0.5); 
                                    ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+19, 2); 
                  ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+20, -1); 
                    ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+21, 2.6); 
                      ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+22, -1.6); 
               ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+23, 1.75); 
                      ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+24, -0.75); 
              ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+25, 1.875); 
                      ObjectSet("Fibo22", OBJPROP_FIRSTLEVEL+26, -0.875);     
                   //+---        
                   ObjectSetFiboDescription("Fibo22",0,"     "); //%$
                  ObjectSetFiboDescription("Fibo22",1,""); //0.125
                  ObjectSetFiboDescription("Fibo22",2,""); //0.25
                  ObjectSetFiboDescription("Fibo22",3,""); //0.38   
                  ObjectSetFiboDescription("Fibo22",4,"");//0.38
                  ObjectSetFiboDescription("Fibo22",5," "); // 0.62 
                  ObjectSetFiboDescription("Fibo22",6,""); //0.75
                  ObjectSetFiboDescription("Fibo22",7,""); //0.125
                  ObjectSetFiboDescription("Fibo22",8,""); //%$
                  ObjectSetFiboDescription("Fibo22",9,""); //1.12
                  ObjectSetFiboDescription("Fibo22",10,""); //1.12
                  ObjectSetFiboDescription("Fibo22",11,""); //1.25
                  ObjectSetFiboDescription("Fibo22",12,""); //1.25
                 ObjectSetFiboDescription("Fibo22",13,""); //1.38
                  ObjectSetFiboDescription("Fibo22",14,""); //1.38
                  ObjectSetFiboDescription("Fibo22",15,""); //1.62
                  ObjectSetFiboDescription("Fibo22",16,""); //1.62
                   ObjectSetFiboDescription("Fibo22",17,"1.5"); 
                  ObjectSetFiboDescription("Fibo22",18,"1.5"); 
                  ObjectSetFiboDescription("Fibo22",19,"2.0"); 
                  ObjectSetFiboDescription("Fibo22",20,"2.0"); 
                   ObjectSetFiboDescription("Fibo22",21,"2.62"); 
                  ObjectSetFiboDescription("Fibo22",22,"2.62"); 
                  ObjectSet("Fibo22",OBJPROP_LEVELCOLOR,DarkGray); //DarkGray
                  ObjectSet("Fibo22",OBJPROP_LEVELSTYLE,2); 
   //+---  
   if (Cycle)       if (ObjectFind("Cycle 1")==-1){ 
   ObjectCreate("Cycle 1",OBJ_ARROW, 0,0,0); 
     ObjectSet("Cycle 1",OBJPROP_ARROWCODE,115); //false true
      ObjectSet("Cycle 1",OBJPROP_COLOR, Gray); 
      ObjectSet("Cycle 1",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15 | OBJ_PERIOD_M30  ); // 
  }   ObjectSet("Cycle 1",OBJPROP_TIME1,t1+t1-t2); 
      ObjectSet("Cycle 1",OBJPROP_PRICE1,Open[0]);  
 //+---
  //+---  
   if (Cycle)       if (ObjectFind("Cycle 2")==-1){ 
   ObjectCreate("Cycle 2",OBJ_ARROW, 0,0,0); 
     ObjectSet("Cycle 2",OBJPROP_ARROWCODE,115); //false true
      ObjectSet("Cycle 2",OBJPROP_COLOR, Gray); 
      ObjectSet("Cycle 2",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15 | OBJ_PERIOD_M30  ); // 
  }   ObjectSet("Cycle 2",OBJPROP_TIME1,t2+t2-t3); 
      ObjectSet("Cycle 2",OBJPROP_PRICE1,Open[0]); 
    //+---  
   if (Cycle)       if (ObjectFind("Cycle 3")==-1){ 
   ObjectCreate("Cycle 3",OBJ_ARROW, 0,0,0); 
     ObjectSet("Cycle 3",OBJPROP_ARROWCODE,115); //false true
      ObjectSet("Cycle 3",OBJPROP_COLOR, Gray); 
      ObjectSet("Cycle 3",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15 | OBJ_PERIOD_M30  ); // 
  }   ObjectSet("Cycle 3",OBJPROP_TIME1,t3+t3-t4); 
      ObjectSet("Cycle 3",OBJPROP_PRICE1,Open[0]); 
 //+---  
   if (Cycle)       if (ObjectFind("Cycle 4")==-1){ 
   ObjectCreate("Cycle 4",OBJ_ARROW, 0,0,0); 
     ObjectSet("Cycle 4",OBJPROP_ARROWCODE,115); //false true
      ObjectSet("Cycle 4",OBJPROP_COLOR, Gray); 
      ObjectSet("Cycle 4",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1 |OBJ_PERIOD_M5 | OBJ_PERIOD_M15 | OBJ_PERIOD_M30  ); // 
  }   ObjectSet("Cycle 4",OBJPROP_TIME1,t4+t4-t5); 
      ObjectSet("Cycle 4",OBJPROP_PRICE1,Open[0]); 
 //+---  
      if (triangle)       if (ObjectFind("triangle")==-1){ 
      ObjectCreate("triangle",OBJ_TRIANGLE,0,0,0,0,0); 
      ObjectSet("triangle",OBJPROP_RAY,0); 
      ObjectSet("triangle",OBJPROP_STYLE,2); 
     ObjectSet("triangle",OBJPROP_COLOR,color_trianglea); 
   }  ObjectSet("triangle",OBJPROP_PRICE1,d1); 
   ObjectSet("triangle",OBJPROP_TIME1,t1); 
   ObjectSet("triangle",OBJPROP_PRICE2,d2); 
   ObjectSet("triangle",OBJPROP_TIME2,t1+t1-t2); 
      ObjectSet("triangle",OBJPROP_PRICE3,d2); 
   ObjectSet("triangle",OBJPROP_TIME3,t1); 
//+---  
        if (t2<t1) {t3=t2;t2=t1;t1=t3;} 
//+-- 
           if (ObjectFind("Line Price 50%, Time 100%")==-1){ 
      ObjectCreate("Line Price 50%, Time 100%",OBJ_TREND,0,0,0); 
      ObjectSet("Line Price 50%, Time 100%",OBJPROP_RAY,0); 
      ObjectSet("Line Price 50%, Time 100%",OBJPROP_STYLE,2); 
      ObjectSet("Line Price 50%, Time 100%",OBJPROP_COLOR,Magenta); 
     } ObjectSet("Line Price 50%, Time 100%",OBJPROP_PRICE1,d2+(d1-d2)/2); 
       ObjectSet("Line Price 50%, Time 100%",OBJPROP_TIME1,t2-(t1-t2)*1); 
       ObjectSet("Line Price 50%, Time 100%",OBJPROP_PRICE2,d2+(d1-d2)*0.5); 
       ObjectSet("Line Price 50%, Time 100%",OBJPROP_TIME2,t2); 
 //+--- 
       if (ObjectFind("Range from curr.Price (in points)")==-1){ 
         ObjectCreate("Range from curr.Price (in points)",OBJ_TEXT, 0, 0, 0); 
     }  ObjectSetText("Range from curr.Price (in points)",DoubleToStr(d2/Point-Bid/Point,0),font,"Arial",Blue); 
            ObjectSet("Range from curr.Price (in points)",OBJPROP_PRICE1,d2); 
            ObjectSet("Range from curr.Price (in points)",OBJPROP_TIME1,t2);  
//+---           
              if (ObjectFind("Range to curr.Price (in points)")==-1){ 
         ObjectCreate("Range to curr.Price (in points)",OBJ_TEXT, 0, 0, 0); 
     }  ObjectSetText("Range to curr.Price (in points)",DoubleToStr(d1/Point-Bid/Point,0),font,"Arial",Blue); 
            ObjectSet("Range to curr.Price (in points)",OBJPROP_PRICE1,d1); 
            ObjectSet("Range to curr.Price (in points)",OBJPROP_TIME1,t2); 
//+---
   } 
  int deinit(){ 
             ObjectsDeleteAll();    Comment("");
    }
//+------------------------------------------------------------------+

Comments