[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 129

 
Sergey_Rogozin:

The spread cannot be set directly.

Here you can find a little tool that can "fix" the spread when the computer is disconnected from the internet.

The name of the tool is MySpread, I think.

You can find it here https://www.mql5.com/ru/forum/119830.

TakeMySpread

 

artmedia70, thanks for the tip!

Could someone please tell me if it is possible to randomly generate colours?

Or Int colour constants? or only from the name to set?

Thanks

 

who knows how to find the sum of the last 15 elements of an array?

sum=iMAOnArray(MASSIVE,15,15,0,MODE_SMA,0)*15

is this correct?

 
eddy:

who knows how to find the sum of the last 15 elements of an array?

is this correct?

 double Sum(double arr[]){       
   int size=ArraySize(arr);
   double Sum=0.0;
   for(int i=0; i<size; i++)
       Sum+=arr[i];
 return(Sum);}
 

I can do the cycle myself :)

I am interested in the iMA option)

 
Sergey_Rogozin:

Here it is https://www.mql5.com/ru/forum/119830

TakeMySpread


Thank you very much, it's working. It turned out to be about the spread.
 
eddy:

I can do the cycle myself :)

I am interested in the iMA option)

What's the difference?
 
in size. wonder if it's the right option)
 
eddy:
about the size. wonder if the option is correct)

Yes, size does matter.)))

I don't comment on the correctness of your option. I don't know.

 
Please write an advisor with a good idea. Who doesn't mind. Where can I send a well-written description? My email is nikolaynv@hotmail.com