请问这个简单的公式为什么在MT4上显示不了
#property copyright "ABC"#property link ""
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 White
double jlone[];
double jltwo[];
double jloverall[];
extern int one=5;
extern int two=10;
int i=1;
int init()
{
SetIndexBuffer(0,jloverall);
SetIndexStyle(0,DRAW_LINE);
SetIndexDrawBegin(0,1);
return(0);
}
int start()
{
int limit=Bars-IndicatorCounted();
while(i<limit)
{
jlone=iMA(NULL,0,one,0,MODE_SMA,PRICE_CLOSE,i) ;
jltwo=iMA(NULL,0,two,0,MODE_SMA,PRICE_CLOSE,i) ;
if(jlone-jltwo>0.0000)
{jloverall=0.0005;}
else{jloverall=-0.0005;}
i++;
}
return(0);
}
这个只是希望5日均线大于10日均线时显示1,小于时显示0,但编译后在MT4上什么线都画不出来,请高手帮忙看看哪里需要修改,多谢!!! 支持一下!!呵呵,不错 谢谢......终于顶进了!!! :cool: {:1_97:}
页:
[1]