else if styler in new update

 

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

 

Yeah that's a "feature".

You can try an other style, nothing else.

 
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?

 
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.

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

 
Alain Verleyen #:

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.

Hi Alain, do you recommend any other style that you prefer using besides the default MetaQuotes style? 

I am trying the different stylers testing the various options. Thank you. 

 
Dustin Vlok #:

Hi Alain, do you recommend any other style that you prefer using besides the default MetaQuotes style? 

I am trying the different stylers testing the various options. Thank you. 

I don't really have something to recommand, it's personal coder's choice.

If the code is to be shared then it's better to use some of the standard styles provided. You can do it just before publishing and still continue to use your own privately.

 
Alain Verleyen #:

I don't really have something to recommand, it's personal coder's choice.

If the code is to be shared then it's better to use some of the standard styles provided. You can do it just before publishing and still continue to use your own privately.

Thanks for your reply Alain, I'll keep checking until I find one better than the default style.  

Reason: