Download MetaTrader 5

problem with MathMod in 655 built

To add comments, please log in or register
eric_mql5
106
eric_mql5  
Hi guys I get this
Print("MathMax(13,3)=",MathMax(13,3),"   MathMod(13,3)=",MathMod(13,3));
	MathMax(13,3)=13.0   MathMod(13,3)=-1.#IND
????
onewithzachy
2269
onewithzachy  
eric_mql5:
Hi guys I get this
????

:(

Strange, I'm not.

MT5 655 Vista HB installed in Program Files but I change the security. 

 

eric_mql5
106
eric_mql5  


that is weird, I do... 

onewithzachy
2269
onewithzachy  
eric_mql5:

that is weird, I do... 

Strange and weird comes together :)

I'm totally lost here >_<,

Pardon me asking lots of Qs.

1. What's your OS anyway, and where did you install the MT ?.  

2. How about running System File Checker (SFC), perhaps you might have some corrupted system files. Here's information regarding SFC for Vista and 7 (click here), and here's for XP (click here), please read that carefully before you proceed.

Also please read this carefully, don't run any programs when running SFC and always restart the PC after SFC finish, so the SFC will update the PC. To run SFC : Open command prompt as Administrator (even if we are in Admin account) type sfc /scannow and press enter.

Use the System File Checker tool to repair missing or corrupted system files
  • support.microsoft.com
System File Checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files. This article describes how to to scan your system files and to repair missing or corrupted system files in Windows 8.1, Windows 8, Windows 7 or Windows Vista. If a Windows Resource Protection (WRP) file is...
eric_mql5
106
eric_mql5  
onewithzachy:

Strange and weird comes together :)

I'm totally lost here >_<,

Pardon me asking lots of Qs.

1. What's your OS anyway, and where did you install the MT ?.  

2. How about running System File Checker (SFC), perhaps you might have some corrupted system files. Here's information regarding SFC for Vista and 7 (click here), and here's for XP (click here), please read that carefully before you proceed.

Also please read this carefully, don't run any programs when running SFC and always restart the PC after SFC finish, so the SFC will update the PC. To run SFC : Open command prompt as Administrator (even if we are in Admin account) type sfc /scannow and press enter.

 

 

thank you very much for your interest in helping me. I have windows 7, and mt5 is installed in a separated hard drive from where the operating system is installed. I run the application from the dos  command promp: terminal64.exe /portable

 

onewithzachy
2269
onewithzachy  
eric_mql5:

thank you very much for your interest in helping me. I have windows 7, and mt5 is installed in a separated hard drive from where the operating system is installed. I run the application from the dos  command promp: terminal64.exe /portable

Ah good no system corruption. That's a good relieve. :D.

If you still have that error, maybe re-installing MT5 solve the problem. If after re-installing you still have that error, then I have no more ideas :(

Do you have MT4 installed ?, Is it making the same error ? 

:D 

eric_mql5
106
eric_mql5  
onewithzachy:

Ah good no system corruption. That's a good relieve. :D.

If you still have that error, maybe re-installing MT5 solve the problem. If after re-installing you still have that error, then I have no more ideas :(

Do you have MT4 installed ?, Is it making the same error ? 

:D 

it is fine in mt4. thanks a lot!
onewithzachy
2269
onewithzachy  
eric_mql5:
it is fine in mt4. thanks a lot!

Bummer :(

I launch from Run with /portable command, and nope - I have no err. If you could, change the title to "Error with MathMod built 655 in Win 7 64", hope other forumers helps you.

:( 

Mehrdad Shiri
4723
Mehrdad Shiri  
onewithzachy:

Bummer :(

I launch from Run with /portable command, and nope - I have no err. If you could, change the title to "Error with MathMod built 655 in Win 7 64", hope other forumers helps you.

:( 

hi

also , this was a problem for me in :

" mt5  build 642 & vista "

and then it solved , but i do not any thing ,

the error was same as " -1.#IND "


eric_mql5
106
eric_mql5  

thanks guys for your support. I use the function mod a lot, I just had coded using floor, and it is working.

double mod(double a,double b){ return(a-b*MathFloor(a/b));}

 https://en.wikipedia.org/wiki/Modulo_operation

Modulo operation - Wikipedia, the free encyclopedia
  • en.wikipedia.org
Given two positive numbers, (the dividend) and (the divisor), a modulo n (abbreviated as a mod n) is the remainder of the Euclidean division of a by n. For instance, the expression "5 mod 2" would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a remainder of 1, while "9 mod 3" would evaluate to 0 because the division of 9 by 3...
Alexey Da
Moderator
6678
Alexey Da  

Which OS is installed on your PC?

Could you provide ex5 file which reproduces your problem? 

We've tried to reproduce, but we couldn't. 

12
To add comments, please log in or register