Errors, bugs, questions - page 1244

 

I have a silly question: What does the "Auto-trade" button enable/disable

made a simple code:

void OnTick()
  {
//---
    Comment(TimeCurrent());
   
  }
//+------------------------------------------------------------------+

pressed the button, time is ticking.

Did I miss something?

Now this button does not disable the EA?

 
sanyooooook:

I have a silly question: What does the "Auto-trade" button enable/disable

made a simple code:

pressed the button, time is ticking.

Did I miss something?

Now this button does not disable the EA?

The answer is in the name of the button :)
 
sanyooooook:

I have a silly question: What does the "Auto-trade" button enable/disable

made a simple code:

pressed the button, time is ticking.

Did I miss something?

Now this button does not disable the EA?

It disables EAs sending trade requests to the server.
Документация по MQL5: Торговые функции / OrderSend
Документация по MQL5: Торговые функции / OrderSend
  • www.mql5.com
Торговые функции / OrderSend - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Wahoo:
The answer is in the name of the button :)

i.e. it only disables sending an order?

ZS: I must have missed it )

 
sanyooooook:
i.e. only disables order sending?
Yes, it prohibits any trade orders to EAs.
 
You can't overload a type conversion statement in MQL, can you? But it is very necessary. Do you need to write it in MQL?
 
marketeer:
You can't overload a type conversion statement in MQL, can you? But it is very necessary. Do you need to write it in MQL?
Can you give an example of this situation
 
marketeer:
You can't overload a type conversion statement in MQL, can you? But it is very necessary. Shall I write it in CD?
I don't think so, but I support it just in case.
 

GVladimir:

CObject *ob;
datetime t;
typename(ob); // CObject 

typename(t);  // datetime


Nah, that thing doesn't work for getting an inheritor type from a pointer to a base class. Example:

  Value *x; // базовый класс
  x = new Double(1.0); // производный от Value
  Print("typename=" + typename(x)); // выводит "Value", а требуется "Double"
 
try adding a virtual method that returns typename from this.
Reason: