Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1359

 
Fast235 #:

Just don't write anything after ';'

That was the question, the comment is there, but the variable name needs to be output in the parameters,

maybe there's a trick to it....

I don't get it.

 
Vitaly Muzichenko #:

I don't get it

The output of this code is not commented text (which is needed...) but the name of input variable, namely MagicNumber (i.e. this is service information)

apparently this is not possible...

 
Fast235 #:

so that this code would not output commented text (which is needed...) but the name of input variable, namely MagicNumber (i.e. this is service information)

Apparently it's not possible...

Here we go.


Вопросы от начинающих MQL5 MT5 MetaTrader 5
Вопросы от начинающих MQL5 MT5 MetaTrader 5
  • 2021.10.13
  • www.mql5.com
Подскажите пожалуйста, такой показатель тестера в жизни реален? И хороший это или плохой результат за год с депо 3000...
 
Vitaly Muzichenko #:

Well, here it is.


Why do I need a group?! It's only in the editor!

 
Fast235 #:

Why do I need a group? It's only in the editor!

group has nothing to do with it.

Watch the next line.

Don't write "//comment" and you'll be happy )))

 
Сергей Таболин #:

The group has nothing to do with it at all.

Watch the next line.

Don't write "//commentary" and you'll be happy ))))

But what if you need it as a description? but only in the editor

maybe i don't understand something? )

Don't take me for a nerd) I have 10 thousand lines 7 include

 
Fast235 #:

what if it's needed as a description? but only in the editor

maybe i don't understand something on a level playing field? )

Don't take me for a nerd) I have 10 thousand lines 7 include

You want the comment to be there too, but it's not it, but a variable name that will be printed?

The nub part has passed my ears. Didn't count and won't...
 
Сергей Таболин #:

Do you want to have a comment, but display the variable name instead of it?

I missed the nubby part. Didn't count and won't...

Exactly so, the comment is a service comment for the editor, with a lot of description, I don't want to output it in the header for each input variable, it gets ugly

I thought maybe there was a feature for that, but there isn't, since it was so hard to understand me

 
Fast235 #:

Exactly so, the comment is a service comment for the editor, with a lot of description, I don't want to put it in the header for each input variable, it gets ugly

thought maybe there's a trick to it, seems not, since it was so hard to understand me

Here you go

input int        Length      = 10;;      // Volty Length
 
Vitaly Muzichenko #:

Here you go

Oh, it's working, is it okay?)

won't it break later? I looked it up in the help, there doesn't seem to be anything.