(呼唤牛版)小弟快哭了,一个指标编了俩星期还没编好
2011-11-19 18:23 上传
jingybMACD.mq4 (3.03 KB, 下载次数: 27) 2009-5-24 11:13 上传
点击文件名下载附件
下载积分: 金币 -2
jMACD82113.mq4 (3.02 KB, 下载次数: 26) 2009-5-24 11:13 上传
点击文件名下载附件
下载积分: 金币 -2
wideMACD.mq4 (3.02 KB, 下载次数: 26) 2009-5-24 11:13 上传
点击文件名下载附件
下载积分: 金币 -2
div > //| 三窗MACD_alert.mq4 |
//| Copyright ?2009, metaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright Copyright ?2009, metaQuotes Software Corp.
#property link http://www.metaquotes.net
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Lime
#property indicator_width1 2
#property indicator_width2 2
extern bool alert=true;
double UpArrow[];
double DownArrow[];
double Up[];
double Down[];
double jingybMACD[];
double jMACD[];
double wideMACD[];
double sound;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,233);
SetIndexBuffer(0,UpArrow);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,234);
SetIndexBuffer(1,DownArrow);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars0) counted_bars--;
limit=Bars-counted_bars;
//----
for(int i=0; ijingybMACD[t+2] ((jingybMACD[t+2] 0 jingybMACD[t+3]0 jingybMACD[t+2]0 jingybMACD[t+1]jMACD[t+1] jMACD[t+1] jMACD[t+2]) (wideMACD[t] wideMACD[t+1] wideMACD[t+1] wideMACD[t+2]))
Up[t]=Low[t]-Point*3;
}
if(jingybMACD[t]
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!