http://photo18.hexun.com/p/2009/1106/366879/b_74EDD09CFFF61EA0866B247826054399.jpg
MT5
已经试用一段时间了,其指标在编程方面有很多改变,这里是源于网络的一个能用于MT5的MACD指标。
//+------------------------------------------------------------------+
//|
MACD_DL.mq5 |
//|
Copyright 2009, Mr.Zhjp |
//|
mail://mrzhjp@163.com |
//+------------------------------------------------------------------+
#property copyright "2009,
Mr.Zhjp"
#property
link
"mrzhjp@163.com"
#property description "Moving Average
Convergence/Divergence"
#include
//--- indicator settings
#property indicator_separate_window
#property indicator_buffers 6
#property indicator_plots
4
// New
#property indicator_type1
DRAW_LINE
#property indicator_type2
DRAW_LINE
#property indicator_type3
DRAW_HISTOGRAM
#property indicator_type4
DRAW_HISTOGRAM
#property indicator_color1 Red
#property indicator_color2 Green
#property indicator_color3 Red
#property indicator_color4 Green
#property indicator_width1 1
#property indicator_width2 1
#property indicator_width3 1
#property indicator_width4 1
#property indicator_label1 "DIFF"
#property indicator_label2 "DEA"
#property indicator_label3 "MACD"
#property indicator_label4 "MACD"
//--- input parameters
input
int
InpFastEMA=12;
// Fast EMA period // New
input
int
InpSlowEMA=26;