MTF_ang_AZad[Osc]





//+------------------------------------------------------------------+
//|                 MTF_ang_AZad(C)[sw]          ang_Zad(C).mq4  ik  |
//|                           Copyright © 2006, ANG3110@latchess.com |
//+------------------------------------------------------------------+

#property  copyright "ANG3110@latchess.com"
//----
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 FireBrick
#property indicator_color2 Blue
//----
extern int TimeFrame=0;
extern int ki = 2;
//extern int Shift=0;

double ExtMapBuffer1[];
double ExtMapBuffer2[];


int init()
  {
   SetIndexBuffer(0, ExtMapBuffer1);
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(1, ExtMapBuffer2);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexLabel(0,"MTF_angAZadOsc"+ki+"TF"+TimeFrame+"");
   SetIndexLabel(1,"MTF_angAZad(C)"+ki+"TF"+TimeFrame+"");

   if(TimeFrame==0) TimeFrame = Period();
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator start function                                  |
//+------------------------------------------------------------------+
int start() 

  {
   datetime TimeArray[];
   int    i,shift,limit,y=0,counted_bars=IndicatorCounted();
     
   ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame); 
   
   limit=Bars-counted_bars+TimeFrame/Period();
   for(i=0,y=0;i<limit;i++) {
     if (Time[i]<TimeArray[y]) {y++;}   
     ExtMapBuffer1[i]=iCustom(NULL,TimeFrame,"ang_AZad[Osc]",ki,0,y); 
     ExtMapBuffer2[i]=iCustom(NULL,TimeFrame,"ang_AZad[Osc]",ki,1,y);
   }
   return(0);
  }




//+------------------------------------------------------------------+





Sample





Analysis



Market Information Used:

Series array that contains open time of each bar


Indicator Curves created:


Implements a curve of type DRAW_LINE

Indicators Used:




Custom Indicators Used:
ang_AZad[Osc]

Order Management characteristics:

Other Features: