
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am searching for speeding up my functions, so I wondered how long it takes to access global variables and local variables is the same, so I made a script:
my log is like this:
2012.03.23 13:26:49 test EURUSD,H1: global array: 1343 milliseconds.
2012.03.23 13:26:49 test EURUSD,H1: local array: 2703 milliseconds.
why is there such a difference? maybe i'm misjudging the variable access time?
Can anyone enlighten a dumbass why an order does not open ???
TESTER SAYS "LOG SAYS TRADE FLOW IS BUSY" ?
ORDERS OPEN BY HAND.
I am searching for speeding up my functions, so I wondered how long it takes to access global variables and local variables is the same, so I made a script:
my log is like this:
2012.03.23 13:26:49 test EURUSD,H1: global array: 1343 milliseconds.
2012.03.23 13:26:49 test EURUSD,H1: local array: 2703 milliseconds.
why is there such a difference? maybe i estimated the access time to the variables wrong?
Yeah, I've been sitting here for half an hour trying to figure out what I'm doing wrong, if I was in the habit of rubbing the back of my head with my hand, I'd have a bald head! )))))
But seriously, why does the script show such a big difference? If I had a Borland compiler, it would probably be the opposite, far calls may be explained, but MT4 works like the Java principle - everything in one pile?
Although it's not important, the principal thing is to find out if I estimate access time correctly, and if it is correct, then I will move half-code to global variables
Restarting the terminal should help. This is not a code problem.
Try it like this :)
aaaaaaaaaaahhhh, shit! I was afraid it would take a long time to output via Print()
You can do it this way: