Daily Range Indicator For MT5

Daily Range Indicator For MT5

Table Of Contents:

  1. Daily Range Indicator For MT5
  2. 安装Daily Range Indicator For MT5
  3. Daily Range Indicator For MT5参数
  4. Daily Range Indicator For MT5缓冲区
  5. 守则主要部分

Daily Range Indicator For MT5Daily Range Indicator For MT5

FREE Daily Range Indicator

Download the FREE Daily Range Indicator for MT5.

To receive my email 100% sure: 
Put my email on your whitelist!

 

Partially Automated Trading Besides Your Day Job

Alerts In Real-Time When Divergences Occur

 

安装Daily Range Indicator For MT5

通过上面的表格下载指标后,您需要解压缩zip文件。然后,您需要将文件dailyrange.mq5复制到MT5安装的文件夹MQL5Indicators中。之后,请重启MT5,然后您将能够在指标列表中看到该指标。

Daily Range Indicator For MT5参数

Daily Range Indicator For MT5具有要配置的0 参数。

Daily Range Indicator For MT5缓冲区

Daily Range Indicator For MT5提供2 缓冲区。

SetIndexBuffer(0,up,INDICATOR_DATA); SetIndexBuffer(1,dn,INDICATOR_DATA); 

守则主要部分

int OnCalculate(const int rates_total,                 const int prev_calculated,                 const datetime &time[],                 const double &open[],                 const double &high[],                 const double &low[],                 const double &close[],                 const long &tick_volume[],                 const long &volume[],                 const int &spread[])   {    //-- house keeping     int limit,copied;    datetime start=D 2010.1.1 ;    if(prev_calculated==0)       limit=0;    else limit=prev_calculated-1;        //--copy data    datetime dayTime[];    double dayHigh[],dayLow[];    copied=CopyTime(_Symbol,PERIOD_D1,start,time[rates_total-1],dayTime);    if(copied lt =0) return -1;    copied=CopyHigh(_Symbol,PERIOD_D1,start,time[rates_total-1],dayHigh);    if(copied lt =0) return -1;    copied=CopyLow(_Symbol,PERIOD_D1,start,time[rates_total-1],dayLow);    if(copied lt =0) return -1;     //-- calculate indicators    MqlDateTime mdtDay,mdt;    for(int i=limit; i lt rates_total; i++)      {       TimeToStruct(time[i],mdt);       for(int j=0; j lt copied; j++)         {          TimeToStruct(dayTime[j],mdtDay);          if(mdtDay.day==mdt.day)            {             up[i] = dayHigh[j];             dn[i] = dayLow[j];            }         }      }    return(rates_total);   } //+------------------------------------------------------------------+ 

 

About Me

I'm Mike Semlitsch the owner of PerfectTrendSystem.com. My trading career started in 2007. Since 2013 I have helped thousands of traders to take their trading to the next level. Many of them are now constantly profitable traders. 

The following performance was achieved by me while trading live in front of hundreds of my clients:

Connect With Me:  

Results From 5 Months!
This service starts soon! Be the first who get's notified when it begins!

This FREE Indicator Can Transform
Your Trading!

FREE Indicator + Telegram Group


Request the Ultimate Double Top/Bottom Indicator which is used by 10,000+ traders.