Help! - page 5

 
Alexey Busygin:
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.
Well, this is just an example. Actually there are much more strings inside the operator.
 
forexman77:
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.
I don't know, ask your mum, but the conversation here was about another case.
 
The correct way to think of it is as Bars
 
Vasyl Nosal:
It would be more correct to consider Bars
Correcter than what?
 
Dmitry Fedoseev:
Better than what?

From KVN:

Armenians are better than Georgians...

Better than what?

Than the Georgians...

 
Dmitry Fedoseev:
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?

 
Dmitry Fedoseev:
Right than what?

Than Time

I mean the new bar.

http://forum.mql4.com/ru/65066/page2#1015138

OnDeinit в индикаторах - MQL4 форум
  • www.mql5.com
OnDeinit в индикаторах - MQL4 форум
 
Andrey Khatimlianskii:

...

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.

 
Vasyl Nosal:

Than Time

I mean the new bar.

http://forum.mql4.com/ru/65066/page2#1015138

Generally yes, but it's unlikely that anyone will be faced with a case where there's no other option but bars.
 
Dmitry Fedoseev:

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...