Navigation:Home > Content >

HYDRUS_1_0.mq4

Time: 2018-09-09 | Download file:HYDRUS_1_0.mq4

//+------------------------------------------------------------------+
//|                                                       HYDRUS.mq4 |
//|                                        Copyright © 2013, FOREXAC |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2013, FOREXAC"
#property link      "http://support.forexac.com/"
//-------------------------------------------------------------------
extern int period  = 156;
extern int channel = 17;
//-------------------------------------------------------------------
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Orange
#property indicator_width1 2
#property indicator_color2 Gold
#property indicator_style2 2
#property indicator_color3 Gold
#property indicator_style3 2
//---- buffers
double BUFFER[];
double BUFFER_UP[];
double BUFFER_DN[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicator lines
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0, BUFFER);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1, BUFFER_UP);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2, BUFFER_DN);
//---- name for DataWindow and indicator subwindow label
   SetIndexLabel(0, "EMA average");
   SetIndexLabel(1, "EMA UP");
   SetIndexLabel(2, "EMA DOWN");
   return(0);
  }
//+------------------------------------------------------------------+
//| Stochastic oscillator                                            |
//+------------------------------------------------------------------+
int start()
{
   int per=Period();
   int    counted_bars=IndicatorCounted();
   if(counted_bars>0) counted_bars--;
   int limit=Bars-counted_bars;
   for(int i=0; i        

Recommend