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
so what's the hard calculus here? Nothing! I've had cases when there was"for(){for(){for(){for(){}}}" in the if triple forte and nothing, no complaints, I called it and it counted.
What about when explicitly "heavy code" is placed in the if body? If an if doesn't work, what's inside it doesn't count.
It would be more correct to consider Bars
Better than what?
From KVN:
Armenians are better than Georgians...
Better than what?
Than the Georgians...
What are you arguing with? That two ifs are twice as slow as one if? And three ifs are three times slower than 1?
This is a special case.
Checking if is so much faster than the most elementary function, which is usually in the conditions to be checked, that it's senseless to talk about its speed.
But clever branching or taking part of calculations to additional if-ars can significantly speed up the program.
We're not talking about synthetic tests "bool x = true; if ( x ) {}", right?
Right than what?
Than Time
I mean the new bar.
http://forum.mql4.com/ru/65066/page2#1015138
...
We're not talking about synthetic tests "bool x = true; if ( x ) {}", are we?
Almost about that. We could make a universal EA with lots of options, if if works instantly.
Than Time
I mean the new bar.
http://forum.mql4.com/ru/65066/page2#1015138
It's almost about that. You could make a universal EA with lots of options if it worked instantly.
I think that only you, Dima, were talking about "it" here ).
People were discussing working code where if is the fastest part.
Switch works almost instantly, you can use it for universal EA. Only I don't see the point...