顺水外汇EA交易网MT4

标题: 请求高手帮助修改RSI [打印本页]

作者: albbzx    时间: 2018-1-11 18:10
标题: 请求高手帮助修改RSI
请求高手帮助修改一个多周期RSI显示.mq4,删除其他时间周期图把H1或M15修改合成一图,在本货币对的任何周期中都能显示。谢谢啦!我会赠送金币感谢!
//+------------------------------------------------------------------+
//|                                                      All RSI.mq4 |
//|                                                           mladen |
//+------------------------------------------------------------------+
#property copyright   "mladen"
#property link        ""
#define indicatorName "All RSI"
//----
#property indicator_separate_window
#property indicator_minimum 0
#property indicator_maximum 100
#property indicator_buffers 1
#property indicator_color1 Gold
#property indicator_level1 30
#property indicator_level2 70
#property indicator_level3 50
#property indicator_levelcolor DimGray
//---- input parameters
extern int    RSIperiod            =14;
extern int    AppliedPrice        =0;
extern bool   showHigherTimeframes=true;
extern int    barsPerTimeFrame    =35;
extern bool   shiftRight          =False;
extern color  txtColor            =Silver;
extern color  separatorColor      =DimGray;
//---- buffers
double ExtMapBuffer1[];
//----
string shortName;
string labelsShort[] ={"M1","M5","M15","M30","H1","H4","D1"};
string labelsLong[]  ={"M1","M5","M15","M30","H1","H4","D1"};
string labels[];
int    periodsShort[]={PERIOD_M1,PERIOD_M5,PERIOD_M15,PERIOD_M30,PERIOD_H1,PERIOD_H4,PERIOD_D1};
int    periodsLong[] ={PERIOD_M1,PERIOD_M5,PERIOD_M15,PERIOD_M30,PERIOD_H1,PERIOD_H4,PERIOD_D1};
int    periods[];
int    Shift;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   if (shiftRight) Shift=1;
   else            Shift=0;
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexShift(0,Shift*(barsPerTimeFrame+1));
   SetIndexLabel(0,"RSI");
   //----
   barsPerTimeFrame   =MathMax(barsPerTimeFrame,30);
   shortName=indicatorName+" ("+RSIperiod+")";
   IndicatorShortName(shortName);
     if (showHigherTimeframes)
     {
      ArrayCopy(labels,labelsLong);
      ArrayCopy(periods,periodsLong);
     }
     else  
     {
      ArrayCopy(labels,labelsShort);
      ArrayCopy(periods,periodsShort);
     }
   //----
   for(int i=1;i0; k--)
           {
            labels[k] =labels[k-1];
            periods[k]=periods[k-1];
           }
         labels[0] =tmpLbl;
         periods[0]=tmpPer;
        }
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
   for(int l=0;l<7;l++)
     {
      ObjectDelete(indicatorName+l);
      ObjectDelete(indicatorName+l+1);
     }
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   string on;
   int    wn=WindowFind(shortName);
   int    k=0;
   //----
   for(int p=0; p<7;p++)
     {
      for(int i=0; i

作者: 流星划过夜空    时间: 2018-1-11 19:48
多周期RSI显示.mq4
作者: xuxu678cn    时间: 2018-1-11 20:37
同求一个高手 修改个指标 添加报警功能



作者: 一湾秋水    时间: 2018-1-11 22:13
先鼓掌  后欣赏
作者: highgdm    时间: 2018-1-11 23:48
学习学习


作者: 金色十月    时间: 2018-1-11 23:59
支持一下!
作者: 鑫生水起钱线淘    时间: 2018-1-12 00:23

支持一下!
作者: biying    时间: 2018-1-12 01:25
求高手的多,高手少啊。。。


作者: jiuhongzhi    时间: 2018-1-12 02:29
先鼓掌  后欣赏
作者: dai0001    时间: 2018-1-12 03:15
回复赚钱
作者: mqlbcg    时间: 2018-1-12 04:28
路过赚金币
作者: ssmm110125    时间: 2018-1-12 04:42
W再找再找找
作者: ggg750075    时间: 2018-1-12 05:32
很期待很期待很期待
作者: 349309448    时间: 2018-1-12 07:07
520fx有你更精彩!
作者: 349309448    时间: 2018-1-12 08:16
520fx有你更精彩!




欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/) Powered by Discuz! X3.2