Questions from a "dummy" - page 99

 
mql5:
If 1.016134511377497e-297 is written as a fraction, it looks like this
1.01613~
________
    297
  10

If the accuracy in _Digits (e.g. 5 digits) is zero

Sorry to be intrusive, but how can this problem be solved?

 
Alfff:

Sorry to be intrusive, but how can this problem be solved?

You have latest_price.ask not initialised or not calculated correctly.
Without the source code it is impossible to determine.
 
mql5:
Your latest_price.ask is not initialized or not calculated correctly.
Without the source code it is impossible to determine.
MqlTick latest_price; // To be used for current quotes
MqlTradeRequest mrequest; // To be used for sending trade requests
MqlTradeResult mresult; // To be used for obtaining results of trade requests execution
MqlRates mrate[]; // Will contain prices, volumes and spreads for each bar

The matter is that I use the code from a sample file and change only deal conditions and indicators used. It worked fine before.

Sample program:https://www.mql5.com/ru/articles/100

Пошаговое руководство по написанию MQL5-советников для начинающих
Пошаговое руководство по написанию MQL5-советников для начинающих
  • 2010.06.09
  • Samuel
  • www.mql5.com
Написание советников на MQL5 проще чем кажется, вы легко можете этому научиться. В этом руководстве вы познакомитесь с основными моментами, необходимыми для написания простого советника на основе конкретной торговой стратегии. Рассмотрена структура советника, использование встроенных технических индикаторов и торговых функций, вопросы отладки и тестирования советника на исторических данных.
 
You'd better contact the desk service(link), with the source code attached, and we'll check it out.
 
Alfff:
MqlTick latest_price; // To be used for current quotes
MqlTradeRequest mrequest; // To be used for sending trade requests
MqlTradeResult mresult; // To be used for obtaining results of trade requests execution
MqlRates mrate[]; // Will contain prices, volumes and spreads for each bar

The matter is that I use the code from a sample file and change only deal conditions and indicators used. It worked fine before.

Sample program:https://www.mql5.com/ru/articles/100

And try to initialise all variables of structure type. For example, using ZeroMemory() function. And since some time it turned out that reference materials suffer from such a defect as absence of lines with initialization of variables of structure type.
 
antt:
Ratio of points (on price scale) to bars (on time scale).
Figured it out, thanks.
 
Alfff:
MqlTick latest_price; // To be used for current quotes
MqlTradeRequest mrequest; // To be used for sending trade requests
MqlTradeResult mresult; // To be used for obtaining results of trade requests execution
MqlRates mrate[]; // Will contain prices, volumes and spreads for each bar

The matter is that I use the code from a sample file and change only deal conditions and indicators used. It worked fine before.

Sample program:https://www.mql5.com/ru/articles/100

How about this?

Example:

void OnTick()
  {
   MqlTick last_tick;
//---
   if(SymbolInfoTick(Symbol(),last_tick))
     {
      Print(last_tick.time,": Bid = ",last_tick.bid,
            " Ask = ",last_tick.ask,"  Volume = ",last_tick.volume);
     }
   else Print("SymbolInfoTick() failed, error = ",GetLastError());
//---
  }
 
Hello, I forgot the name of my MT5 MQL cloud account. Does it coincide with my login? If not, where can I find it out?
 
coinminer:
Does it match my username? If not, where can I find it out?
Yes, it does.
 

Good afternoon. There is such a phenomenon as a distortion of the last bits in double, please advise what conditions need to be created for such a distortion to occur? Is distortion possible in operations = ? Is distortion possible when storing integers in double? While performing operations?

Reason: