Simple EA Optimization: Declaring 2 times the main culprit about these EA's speed? - page 2

 
nadiawicket:

Really appreciate you running those tests and taking the time to read these posts. Real cash on the line so can't really have too much info at this moment.

Any insight into what such conflicts can be avoided, or any more insight into why the discrepancy, PC load, whatever, especially from someone with experience on Live is extremely valuable and more than welcome.

I would've never suspected *meaningless random clock jitter* to be the cause of this discrepancy

To avoid conflicts, simply declare variables within the smallest use scope possible - start from within braces, within function, within class, within namespace, etc.

As for the time discrepancies, if they're huge, it'll be easy to guess, but for small differences, it's likely due to pc load - background windows processes, networking, etc. And it'll be much more efficient and effective if you just go for faster hardware...

 
Seng Joo Thio:

To avoid conflicts, simply declare variables within the smallest use scope possible - start from within braces, within function, within class, within namespace, etc.

As for the time discrepancies, if they're huge, it'll be easy to guess, but for small differences, it's likely due to pc load - background windows processes, networking, etc. And it'll be much more efficient and effective if you just go for faster hardware...

Great to know
Reason: