MQL4 - automated forex trading   /  

Forum

Beta Testing of MetaTrader 5 Has Started!

Back to topics list  | << < 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 > >> To post a new topic, please log in or register

avatar
62
tsaktuo 2009.10.29 17:17 

MetaEditor has nice feature "Styler" (Tools->Styler) but when I run it then code turns in to unreadable mess!

Before:

int test()
{
   int i=0;
   while(i++<10)
   {
      if(i==5)
      {
         Print("Hello world!");
      }
      else
         Print("else");
   }
   return(0);
}

After:

int test()
  {
   int i=0;
   while(i++<10)
     {
      if(i==5)
        {
         Print("Hello world!");
        }
      else
         Print("else");
     }
   return(0);
  }

What kind of programming style is this? I hated it in mql4 and I hate it now.


avatar
55
alexey_petrov 2009.10.29 19:01 
Temp1234 wrote >>

can not adjust width of the column

Size of columns is chosen automatically. But you can reduce the size ot the font. Context menu -> Properties -> Use Custom Size, then select the necessary font size.


avatar
308
TheEconomist 2009.10.29 20:07 
tsaktuo wrote >>

MetaEditor has nice feature "Styler" (Tools->Styler) but when I run it then code turns in to unreadable mess!

Before:

After:

What kind of programming style is this? I hated it in mql4 and I hate it now.


  I find it similar to the way I write :))) what I find unreadable is how you write it: no space between while an and the condition, or if and the condition, no wonder you find it hard to read.

avatar
223
Jellybean 2009.10.29 21:25 
TheEconomist wrote >>


I find it similar to the way I write :))) what I find unreadable is how you write it: no space between while an and the condition, or if and the condition, no wonder you find it hard to read.

I like the idea of the styler, but I also have slightly different preferences. Like tsaktuo, I prefer one clean indent each time instead of the { } being at half the indent and like TheEconomist, I like more spaces between things.


It would be great to be able to customise the style.


Cheers

Jellybean


avatar
20
252525 2009.10.29 23:29 
dotzoo wrote >>
I dont think I can trade forex anymore even I like it, THANX TO THOSE BLIND LAW MAKERS, THEY JUST DONT UNDERSTAND. begining DEC we will no longer have 1:200 leverage instead there will be 1:2 leverage. SO IF YOU WANT TO LEARN ABOUT MT5 I SUGGEST YOU THINK TWICE.

Huh? Thats sheer madness. What about 1:100 leverage? Will that be gone too? I take it that kind of insanity is for the U.S ONLY? iF thats the case i will be getting an offshore broker.


avatar
20
252525 2009.10.29 23:41 
n8937g wrote >>

DOTZOO....The aren't "blind"....they are DEAF, DUMB and BLIND..... Thank God these idiots ARE only in the US....Leverage on the majors will be limited 1:100 ....exotics 1:25

That answers my questions.


avatar
14
dotzoo 2009.10.30 03:38 
please add MOVING AVERAGE for both indicator and ea into the programe, that way we can learn how to write them quickerly. ( I will not trade for forex NO MONEY but I still want to learn mt5 so I can write for others ..... MAKE MONEY)

avatar
63
phampton 2009.10.30 05:40 
Jellybean wrote >>

I like the idea of the styler, but I also have slightly different preferences. Like tsaktuo, I prefer one clean indent each time instead of the { } being at half the indent and like TheEconomist, I like more spaces between things.


It would be great to be able to customise the style.


Cheers

Jellybean

Yes - I'd like a customised style or a change to clean indenting too. Most C++ programmers are used to the clean indent style that automatically occurs in the Microsoft Visual C++ editor and comes out of its code formatter. This is no accident, because the leading coding standard for C++ (Stroustrup) also uses this style throughout in its examples.


avatar
315
t4fast 2009.10.30 18:55 



I feel the chart has lost some flexibility on Scale modification,

I cannot any more with "one click" on the y-axis; change the vertical scale.





avatar
8
maximillion 2009.10.30 19:53 
MT5 beta: Lock toolbars checkbox has disappeared. It's useful as a space saver (gets rid of the handle) as well a accidental movement preventer. The toolbar resizing was also nice to tuck away some of the less used tools (but still keep them a click away if needed).
Back to topics list   | << < 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 > >>  

To add comments, please log in or register