Experts: AutoMagiCal

 

AutoMagiCal:

Auto Magic Nr. Calc The Magic Nr. per ASC II Code from Symbols

Author: Thomas

 
it just create a Magic Number, but hey! I can do that: 1234. here we are.
 

I think this is for when you have the same EA running on multiple charts (maybe even the same symbol) and you don't want them interfering with each other. My suggestions for the hash: look up Java's string hash function. It has a very low collision rate, from what I hear (it's what I use in my own app. programming anyways). Also, try to include the timeframe in the hash function as well. Your resolution of a hash(EA) > 999,999,999 is also very dangerous. The idea of a hash is that you reduce the probability of any one hash being used twice. 999,999,999 has a much higher probability of being used than any other hash. The easiest way is to just do a hash%x where x is your largest int.

Hope that helps.

Reason: