顺水外汇EA交易网MT4

标题: 求高手把这个指标改成MT4 [打印本页]

作者: LZF211    时间: 2018-1-11 16:41
标题: 求高手把这个指标改成MT4
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*50;
VAR3:=EMA(IF(CLOSE*1.3,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,30);
VAR5:=HHV(VAR3,30);
VAR6:=IF(MA(CLOSE,58),1,0);
VAR7:=EMA(IF(LOW100,100,VAR7),COLOR0000FF,LINETHICK2;
{STICKLINE(A>-150,0,A,8,4),COLOR0000FF;}
在上个主图显示的,求改
A:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
B:=IF(MA(CLOSE,17)纯文本查看 复制代码//+------------------------------------------------------------------+
//|                                                          AAA.mq4 |
//|                                                               DF |
//|                                              http://www.mql5.com |
//+------------------------------------------------------------------+
#property strict
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_plots   2
#property indicator_label1  "Label1"
#property indicator_type1   DRAW_LINE
#property indicator_color1  clrBlack
#property indicator_style1  STYLE_SOLID
#property indicator_width1  1
#property indicator_label2  "Label2"
#property indicator_type2   DRAW_LINE
#property indicator_color2  clrSpringGreen
#property indicator_style2  STYLE_SOLID
#property indicator_width2  1
double         Label1Buffer[];
double         Label2Buffer[];
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int OnInit()
  {
   SetIndexBuffer(0,Label1Buffer);
   SetIndexBuffer(1,Label2Buffer);
   SetIndexStyle(0,DRAW_LINE);
   SetIndexStyle(1,DRAW_LINE);
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
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[])
  {
   int i,limit;
   limit=rates_total-prev_calculated;
   if(prev_calculated>0)
      limit++;
   double B[];
   for(i=0; i
作者: lr926    时间: 2018-1-11 17:49

谢谢老师,就是这个效果
[attach]22479[/attach]

作者: 金色十月    时间: 2018-1-11 18:49
研究研究!
作者: 蛐蛐    时间: 2018-1-11 19:02
是这样的图吗?
[attach]22480[/attach]

作者: yangsluo    时间: 2018-1-11 20:03
在主图显示:
[attach]22481[/attach]

作者: 麒麟竭    时间: 2018-1-11 20:32
有点像ADX....
作者: LZF211    时间: 2018-1-11 22:06
谢谢分享!············




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