Anyone know which one is more effective way to run the condition? 3 ways
-
https://fxdreema.com/shared/YgmeRZNbc
i now still dont know which method is more effective to run the condition, the link shown is 12 line of conditions, what if i run it more than 100 line then which method is much suitable and effective?
First method is directly link
Method 2:
got connection of using if else

Method 3:
is using 1 set of general condition(1 line), then using "Run Block" reuse it

i need to know which one more effective and less CPU usage, because when it comes to thousand line instead of 12, then it may cause problem.
or may be using MQL code, but i am not programmer
-
The second is clearly more efficient than the first one just because not all options are checked as soon as the right one is identified. However, I have no idea how that can be compared to the third one. I'm not a programmer either.
-
@l-andorrà how about this one, dont know whether this better than the second that u said is more efficient than first

this 1 block can replace 12 conditions blocks -
I would say as l'andorrà has said the second is more effective, and I would say it is more effective than the 3rd, this is because it works on a if true do this, if not do, this, if not do this, until it is true. Turning blocks off can be very efficient if all blocks (or a tree) are switched off before they are used. As a general rule, set your EA up to activate as few blocks as possible for every tick.
-
thank you all guys answer