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.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
AutoMagiCal:
Author: Thomas