Navigation´╝ÜHome > Content >

KIJUN_SOHO_vKino.mq4

Time: 2014-09-28 | Download file:KIJUN_SOHO_vKino.mq4

//+------------------------------------------------------------------+
//|                                                          %BB.mq4 |
//|                                    Copyright ? 2008, Walter Choy |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Copyright sohocool"
#property link      "www.sohocool"

#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Yellow
#property indicator_color2 Aqua
#property indicator_color3 Blue
#property indicator_color4 Violet


extern int    KIJUN_period = 26;
extern int    tframe1 =1;
extern int    tframe2 =5;
extern int    tframe3 =15;
extern int    tframe4 =60;


//---- buffers
double KIJUN1[];
double KIJUN2[];
double KIJUN3[];
double KIJUN4[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0, DRAW_LINE);
   SetIndexBuffer(0, KIJUN1);
   SetIndexLabel(0, "KIJUN1");
   SetIndexDrawBegin(0, KIJUN_period);
   
   SetIndexStyle(1, DRAW_LINE);
   SetIndexBuffer(1, KIJUN2);
   SetIndexLabel(1, "KIJUN2");
   SetIndexDrawBegin(1, KIJUN_period);
   
   SetIndexStyle(2, DRAW_LINE);
   SetIndexBuffer(2, KIJUN3);
   SetIndexLabel(2, "KIJUN3");
   SetIndexDrawBegin(2, KIJUN_period);
   
   SetIndexStyle(3, DRAW_LINE);
   SetIndexBuffer(3, KIJUN4);
   SetIndexLabel(3, "KIJUN4");
   SetIndexDrawBegin(3, KIJUN_period);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----
   
   int limit;
   
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars-1;
      
   for(int i=0; i        

Recommend