比特币通信协议 - 币圈消息

比特币通信协议篇11、二、TURN简介。在典型的情况下,TURN客户端连接到内网中,并且通过一个或者多个NAT到 详细

求高手把这个指标改成MT4

  [复制链接]
256 6
LZF211 发表于 2018-1-11 16:41:59 | 只看该作者 |阅读模式 打印 上一主题 下一主题
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
收藏
收藏0
转播
转播
分享
分享
分享
淘帖0

精彩评论6

跳转到指定楼层
沙发
lr926 发表于 2018-1-11 17:49:38 | 只看该作者

谢谢老师,就是这个效果

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
板凳
金色十月 发表于 2018-1-11 18:49:17 | 只看该作者
研究研究!
地板
蛐蛐 发表于 2018-1-11 19:02:03 | 只看该作者
是这样的图吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
5#
yangsluo 发表于 2018-1-11 20:03:03 | 只看该作者
在主图显示:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
6#
麒麟竭 发表于 2018-1-11 20:32:50 | 只看该作者
有点像ADX....
7#
 楼主| LZF211 发表于 2018-1-11 22:06:38 | 只看该作者
谢谢分享!············
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

发布主题
阅读排行更多+

Powered by 顺水鱼MT4外汇EA网! X3.2© 2001-2017 顺水MT4外汇EA公司.( 陕ICP备17014341号-1