else if styler in new update

To add comments, please log in or register
parham.trader
669
parham.trader  

Hi friends, 

Today I was going to update my code and when I used the styler feature in MQL4, I suddenly understood that with the new update, using the styler feature causes some undesirable changes with the ELSE IF structure.

I want to have the previous structure of the ELSE IF not the new one.
I also attached the screen shot of my problem and appreciate any help.

Thanking in advance


Old structure:

Old structure

New structure:

New Structure

Alain Verleyen
38646
Alain Verleyen  

Yeah that's a "feature".

You can try an other style, nothing else.

parham.trader
669
parham.trader  
Alain Verleyen:

Yeah that's a "feature".

You can try an other style, nothing else.

How can I do so?

How can I change this new "feature" to the previous style?

Keith Watford
Moderator
20312
Keith Watford  
parham.trader:

How can I do so?

How can I change this new "feature" to the previous style?

Tools/Options/Styler and click to open the drop down list in "Style"

Not sure which one (if any) is the same as the original.

parham.trader
669
parham.trader  
Keith Watford:

Tools/Options/Styler and click to open the drop down list in "Style"

Not sure which one (if any) is the same as the original.

Thank you very much for your kind guidance,

You did it great;

I found the three following style as the best so that they won't make any mess the "ELSE IF" statement:

  • Allman
  • Whitesmith
  • VTK
And finally I've chosen the VTK style as it seems prettier than the others.
Alain Verleyen
38646
Alain Verleyen  
Keith Watford:

Tools/Options/Styler and click to open the drop down list in "Style"

Not sure which one (if any) is the same as the original.

No one is the same as the original. Some are close, but as usual Metaquotes forced us to change our pratice without any valid reason.

The "Metaquotes" style is now just ridiculous.

To add comments, please log in or register