Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1395

 

Is there an option to disable the tooltip for the bar graph?

 
Sergey #:

By additional code:

After iteration (0111111111) comes iteration (10000000) right?

(10000000)=-127 or +128?

10000000 = -128

+1

10000001 = -127

...

11111111 = -1

+ 1

(1)00000000 = 0

Thus, signed numbers can be handled just like unsigned numbers without any extra complication.

And how not to recall the old FIDO:

"0 programmers were scolded by an angry boss,

Then he fired one, and they became FF."

h ttps://zxpress.ru/article.php?id=16607

And yes, it's not "reverse" but "forward" that should be read there, I've forgotten it myself.
Стихи - #0A Программистов. Анекдоты.
Стихи - #0A Программистов. Анекдоты.
  • zxpress.ru
Стихи - #0A Программистов. Анекдоты.
 

Good afternoon.

Is it possible to find out the dimensionality of a globally declared Enum?

For example

enum ENTERmode {System1, System2 , System3 , System4 , System5 , System6 , System7}

How can I find out the number of enums from the middle of a program?

 

Good afternoon, everyone.

Help me figure this out.

I have three classes, each have these defines

#define  INDENT_LEFT     (10)
#define  INDENT_TOP      (20)
#define  INDENT_RIGHT    (10)
#define  INDENT_BOTTOM   (15)
#define  CONTROLS_GAP_X  (50)
#define  CONTROLS_GAP_Y  (20)
#define  BUTTON_WIDTH    (150)
#define  BUTTON_HEIGHT   (20)
#define  EDIT_HIGTHT     (20)
#define  GROUP_WIDTH     (150)
#define  LABEL_WIDTH     (70)

I get the following error message when building them in the Expert Advisor

macro redefinition

How can i correct this error?



 
Sergey Li #:

Good afternoon, everyone.

Help me figure this out.

I have three classes, each have these defines


I get the following error message when building them in the Expert Advisor

macro redefinition

How to correct this error?



#ifndef  X
  #define  X
#endif

For example, like this.

Macros are global.

 

Hello, can you tell me if I get a 4014 error sometimes when calling SocketCreate()...

I call it in service. It's not clear how it's described in the doc:

Функцию можно вызывать только из экспертов и скриптов, так как они работают в собственном потоке выполнения. При вызове из индикатора GetLastError()  вернет ошибку 4014 – "System function is not allowed to be called".


What about when calling from services?
 
leonerd #:

Hello, can you tell me if I get a 4014 error sometimes when calling SocketCreate()...

I call it in the service. It's not clearly described in the doc:

How about when calling from services?

Maybe this should be written in "Errors, bugs, questions"? The service and the script are not much different. Although it is possible that for some reason prohibited to use in services...

 
Alexey Viktorov #:

Maybe this should be written about in "Bugs, bugs, questions"? The service and the script are not much different. Although it's possible that for some reason they banned use in services as well...

That's the thing, it generally works. But sometimes 4014 crashes. What's the pattern, I don't know yet.

 
leonerd #:

That's the thing, it generally works. But sometimes a 4014 flies out. I don't know what the pattern is yet.

So it's not forbidden?

Well, maybe we should put it into a while loop and delay it for a few milliseconds in case of an error? Exactly this kind of loop, so that the loop must be executed once.

 
Alexey Viktorov #:

So it's not forbidden?

How about putting it into a do while loop and delaying it by a few milliseconds in case of an error? Exactly in such a loop, so that the loop must be executed once.

Hmm...

ERR_FUNCTION_NOT_ALLOWED      4014      Системная функция не разрешена для вызова

At some point in time the function call is blocked by the subsystem. Maybe you should not wait, but just quit before the next run?

Reason: