Dear Rosh,How to mate it run faster?

 

Dear Rosh,How to mate it run faster?

The following code can not run at my computer at all! It took me weeks to find how to make it run at my computer,but nothing I can do.And could you help me moditying the following code ? Please!.....

(Attachment is my code,file calling me.mq4)

Thinks a lot .

附加的文件:
me.mq4  24 kb
 

;) 计算量太大了!

先 i=20;
while(i>=0)
只计算一个 Buffer1[i]

通过了, 再一个一个增加计算 Buffer

 

Khmm.... There are many letters in your source :)

When I have a little free time I'll try to study out .

 
Rosh 写道 >>

Khmm.... There are many letters in your source :)

When I have a little free time I'll try to study out .

At the outset,Thank you for the nice help and great kindness.

And I am waitting for your good news!

 
DxdCn 写道 >>

;) 计算量太大了!

先 i=20;
while(i>=0)
只计算一个 Buffer1[i]

通过了, 再一个一个增加计算 Buffer

TO DxdCn:

首先非常感谢您的回复:),整个指标文件编译没有问题,在比较新买的计算机上也可以勉强运行,

但是在已经使用了两年的计算机上就跑不动了。因为我的编程水平非常有限(偶以前只学过C语言基础...),

所以只有向各位大师求助了。

谢谢!

祝您:万事如意!

 

是没有问题.

我改为

i=200;
while(i>=0)
.................

等一会,可以出来(注意其它货币要有数据)

再多,我也显示不好了.

只是为什么这样反复算呢?

都是类似的数据计算, 或者只算Buffer1, 然后对 Buffer1做iMAArray也可以,何必这样大计算机量的算.