if statement | Optimum Performance - page 2

 
Anil Varma #: Ohh, ok Is there any guideline which I can refer to find correct forum for my post? thanks

It was already explained to you in one of your other threads ...

Forum on trading, automated trading systems and testing trading strategies

Currency Conversion for Non-Forex Pairs e.g. CFD or Stock etc

Alain Verleyen, 2023.05.15 18:42

Please stop posting in this section.

This section is about trading system, not about coding unless it's directly related to a trading strategy.

I will move this topic.

 
Fernando Carreiro #:
This section is about trading system, not about coding unless it's directly related to a trading strategy.

Thanks @Fernando Carreiro for a reminder. I will try to take care in future.

 
Anil Varma:

Hi Friends

I have a confusion which One of the following "if statements set" is better in terms of CPU performance?   

If statement set [A]

If statement set [B]

In my opinion set [B] should be better, please advise.


If statement set [A] is the faster one. 
The method is similar to what I used to use.

 
Nino Guevara Ruwano #:


If statement set [A] is the faster one. 
The method is similar to what I used to use.

Thanks @Nino Guevara Ruwano for confirmation :)

" The method is similar to what I used to use." ... So do you use different method?

Reason: