Errors, bugs, questions - page 784

 
 
WWer:
How to call this function? If the name is the same as the built-in name.

the third way is to describe this function as

#import "kernel32.dll"
   DWORD WINAPI GetLastError(int );
#import

fourth option

describe it as normal, but then redefine the call

#define _GetLastError    kernel32::GetLastError


to get rid of the kernel: pull:

 
thank you all
 
WWer:
How do I call this function? If the name is the same as the built-in name.
See example for context resolution operation ::.
 

Can you tell me why the tester always returns 0?

void OnTick(){
               MqlDateTime time; TimeCurrent(time); 
               Print("time.min:",time.min);
            }
 

The data window on the EURRUR tab of any timeframe is being redrawn, while other currency tabs are fine.

After closing and reopening the terminal, the re-drawing has disappeared.

Files:
Error.JPG  281 kb
 
void InitModels()
  {
   int rezult;
   cmodel_ZZ            *m_ZZ;
   list_models=new CList();
   for(int i=0;i<=1;i++)
     {
      m_ZZ=new cmodel_ZZ();
      if(CheckPointer(m_ZZ)==POINTER_DYNAMIC)
        {
         rezult=list_models.Add(m_ZZ);
         Print(m_ZZ.InitIndicators(SymbolName(i,true))," ",SymbolName(i,true),"  ",i);
        }
     }
  }



why doesn't the second pound symbol print in visualisation mode? does it print in the demo?
 
dentraf:
Why doesn't the second pound symbol print in visualisation mode? Does it print everything in the demo?

When testing in Market Watch, only one symbol is selected - the one being tested.

Select the required symbols with SymbolSelect and go to work

Документация по MQL5: Получение рыночной информации / SymbolSelect
Документация по MQL5: Получение рыночной информации / SymbolSelect
  • www.mql5.com
Получение рыночной информации / SymbolSelect - Документация по MQL5
 
stringo:

When testing in Market Watch, only one symbol is selected - the one being tested.

Select the required symbols with SymbolSelect and work

So the tester does not need to include each symbol individually?
 
dentraf:
So, for the tester, you do not need to enable each symbol separately?

Yes.

And what will you do "on the demo" if the desired symbol is not included in the market overview? Include it too.

That is, you check each required symbol for its presence in the Market Watch and, if necessary, enable it.

Reason: