Errors, bugs, questions - page 1839

 

Hello. I can't figure out what the problem is. The robot opens deals in MT4 terminal and works as it should, but in the tester it doesn't want to.

Here is the code section responsible for opening a deal:

   ArraySetAsSeries(MaxBuffer,true);
   ArraySetAsSeries(MinBuffer,true);
   ArraySetAsSeries(BufferExUp,true);
   ArraySetAsSeries(BufferExDown,true);
   ArraySetAsSeries(TimeBuffer,true);
   xMax=CopyHigh(_Symbol,_Period,1,NumBars+NBars+1,MaxBuffer);
   xMin=CopyLow(_Symbol,_Period,1,NumBars+NBars+1,MinBuffer);

   for(int i=NBars;i<=NumBars;i++)
     {
      xMaxH=ArrayMaximum(MaxBuffer,i,0);
      xMaxHD=ArrayMaximum(MaxBuffer,i+NBars,0);
      if((MaxBuffer[xMaxH]>=MaxBuffer[xMaxHD])&&(xMaxH>=NBars))
        {
         Maximum=MaxBuffer[xMaxH];
         for (int x=0; x<=OrdersTotal();x++)
          {if (OrderSelect(x,SELECT_BY_POS))
            {if (StringToDouble(OrderComment())==Maximum)
              {y=1;
               break;}
             else y=0;}}
       
         if (y==0)
           {int send1=OrderSend(Symbol(),OP_BUYSTOP,Volume1,Maximum,0,0,0,DoubleToString(Maximum,_Digits),0,0,Red);}}}

The similar code works in MT5 in real and in the tester without problems and repeats it exactly (except for OrderSend of course and ArrayMaximum). I have problems when I transfer it to MT4, but again, I cannot understand how it is possible because in the terminal everything is OK on the chart.

 
And the magazine is silent, just going through a blank test.
 
Once upon a time, the operator [] was added to string type
string Str = "AB C";
Print(CharToString(Str[1])); // B


Is it possible for developers to add an = operator for arrays?

int a[], b[];
a = b; // ArrayCopy(a, b);


Since there are no pointers, such an operator would make the language more flexible - there are situations where it would be VERY convenient.

 
Installation of neither MT4 nor MT5 on Windows 10 x64 Corporate does not start.

Unlocked in file properties, changed compatibility, run as administrator, nothing helps.

In task manager just keep the installation process not using any memory or CPU.

What to do, who had a problem?
 
BalckNooky:
Installation of neither MT4 nor MT5 on Windows 10 x64 Corporate does not start.

Unlocked in file properties, changed compatibility, run as administrator, nothing helps.

In task manager just keep the installation process not using any memory or CPU.

What to do, who faced?

Try to completely uninstall firewall, antivirus - as installer pulls all its files from internet.
 
Vladimir Karputov:

Try to completely uninstall the firewall, antivirus - as the installer pulls all its files from the internet.

The firewall has been disabled since the installation. Antivirus disabled completely - didn't help.
 
BalckNooky:

The firewall has been disabled since the installation. Antivirus disabled completely - didn't help.

Proxy?
 
Vladimir Karputov:

Proxy?

Explain, I don't understand.
 
BalckNooky:

Explain, I don't understand.

Is a proxy server being used (look in Internet Explorer -> "Browser properties" -> "Connections")?
 
Vladimir Karputov:

Is a proxy server in use (look in Internet Explorer -> "Browser properties" -> "Connections")?

No, a proxy is not used.
Reason: