(呼唤牛版)小弟快哭了,一个指标编了俩星期还没编好
何止一句在乎
|
6470 人阅读
|
20 人评论
|
2011-11-19
泪奔啊,编了俩星期还是没箭头
哪位高手帮帮小弟
指标
(呼唤牛版)小弟快哭了,一个指标编了俩星期还没编好
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 class="quote"><blockquote>//+------------------------------------------------------------------+
//| 三窗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] |
|
|
|
|
你好 , 写过很多ea了, 请看我用户名, 加后可提供博客看看我的ea介绍 |
|
|
|
|