MT4平台下的指标——基于MACD和威廉指标的综合考虑

本文探讨了如何在MT4交易平台中结合MACD与威廉指标进行欧元美元的M1和M5周期交易分析。通过深度解析这两个技术指标的协同应用,为交易者提供了一种综合判断市场趋势的策略。
摘要由CSDN通过智能技术生成
//+------------------------------------------------------------------+
//|                                             southgis.com_MACD.mq4 |
//|                                 Copyright ?2014, www.southgis.com |
//|                                           http://www.southgis.com |
//+------------------------------------------------------------------+
#property copyright "www.southgis.com"
#property link      "http://www.southgis.com"

#property indicator_separate_window
#property indicator_buffers 4
#property indicator_color1 White
#property indicator_color2 Yellow
#property indicator_color3 Red
#property indicator_color4 Lime
//---- input parameters
extern int       FastEMA=12;
extern int       SlowEMA=26;
extern int       SignalSMA=9;
extern int       ExtWPRPeriod=14;  
extern double    WRMin=-65;
extern double    WRMax=-35;
extern double    MACDMax=0.00007;
extern double    MACDMin=-0.00007;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
int    index=0;

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(2,DRAW_HISTOGRAM);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetInd
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值