MQL4 - automated forex trading   /  

Forum

Magic Number: minimum and maximum

Back to topics list To post a new topic, please log in or register

avatar
145
jcadong5 2010.11.18 12:02 

Hi,


Anyone got the link or know where is the 'official' definition of the minimum and maximum values for the magic number?


I am looking for the 'official' definition.

Sending Trade Signal Via RSS Feed

Sending Trade Signal Via RSS Feed

This is my idea how to send your trade signal as RSS FEEDS , a famous way to communicate with your community's members right now.


avatar
Moderator
2030
gordon 2010.11.18 12:05 
It's an integer.

avatar
Moderator
1935
BarrowBoy 2010.11.18 14:10 

Keep it to 9 digits or less to avoid problems

-BB-


avatar
716
1005phillip 2010.11.18 15:40 
gordon:
It's an integer.

this...so the same value range that applies to any other integer. -2147483647 to 2147483647

(2^32)

avatar
Moderator
2030
gordon 2010.11.18 15:53 
1005phillip:

this...so the same value range that applies to any other integer. -2147483647 to 2147483647

(2^32)

More accurately: -2,147,483,648 to 2,147,483,647

(or generally: -2N−1 to +2N−1-1, in our case N=32).


avatar
876
7bit 2010.11.18 17:46 

between 0x00000000 and 0xFFFFFFFF

(while all numbers with the highest bit set to 1 (all those ranging from 0x80000000 to 0xFFFFFFFF) will be interpreted as negative numbers: 0xFFFFFFFF is -1, 0xFFFFFFFE is -2 and so on.)

in other words: you can use anything that fits into a 32 bit signed integer.

Back to topics list  

To add comments, please log in or register