macd爱好者求解答
下面是个macd就显示快线的指标,我想让这条线变色,具体说就是现在的快线数值大于前一个那么变红色,如果现在的数值小于前一个数字变绿色。烦请懂的朋友帮我一下。百拜!#property indicator_separate_window
#property indicator_color1White
#property indicator_level10
extern int FMA=12;
extern int SMA=26;
double buf[];
int init()
{
SetIndexBuffer(0,buf);
SetIndexStyle(0,DRAW_LINE);
return(0);
}
int start()
{
int limit=Bars-IndicatorCounted();
for(int i=0; i<limit; i++)
{
buf=
iMA(NULL,0,FMA,0,1,0,i)
-iMA(NULL,0,SMA,0,1,0,i);
}
return(0);
}
现成的mq4 好像大把可以找到............ 这么牛啊。。。。 好东东必须大家一起分享 vvvvv dddddddddddddd 多大的多多多多多多
多大的多多多多多多 多大的多多多多多多 斤斤计;了;;
页:
[1]