Questions from Beginners MQL5 MT5 MetaTrader 5 - page 537

 
Good day to all.

Please advise how to deal with the fact that the EA is not put on the chart. It is placed and self-deleted with the error uninit reson 8.The same version of the build and the same broker.
 
Elena Volodina:
Good day to all.

Please advise how to deal with the fact that the EA is not put on the chart. It is placed and self-deleted with uninit reson 8 error .On VPS everything works, same build version, same broker.
Hello. During initialization, the OnInit() function returns a non-zero value. It should return zero during normal initialization. Uninit reson 8 is REASON_INITFAILED sign of unsuccessful initialization.
 
Thank you, Vitaly.
The EA is standing compiled. There is no way to get into the code and fix anything. How can a layman fix it? I am running Windows 10. My computer died about 2 weeks ago and after reinstalling it cannot be restarted ((
 
Elena Volodina:
Thank you, Vitaly
The Expert Advisor is compiled. There is no way to get into the code and fix anything. How can a layman fix it? I have Windows 10. My computer died about 2 weeks ago and after reinstalling it cannot be restarted ((
Try changing the parameters in the EA settings - it may well be that the author made a return from initialisation with a non-zero value in case any of the parameters you entered is incorrect.
 
Elena Volodina:
Thank you, Vitaly.
My Expert Advisor is compiled. It is impossible to get into the code and fix something. How can a layman fix it? I have Windows 10. My computer died about 2 weeks ago and after reinstalling it cannot be restarted ((

If your EA works fine on VPS, but it does not work on another computer, then you can assume that during initialization this EA calls some external indicator, which you do not have on your computer or it is located somewhere in another folder. Take a closer look at what the EA writes in the "Journal" tab, where all errors are logged and in the "Experts" tab. Perhaps you will see a message there that will help you understand the reason for the error.

 
Why is there no Manual confirmation in the Advisors now? Don't use them?
 
ndkmak:
Why is there no Manual confirmation in the Advisors now? Don't use them?
You have not been interested in progress for several years. There is no such function now.
 

Good afternoon everyone!

Guys, if anyone has encountered this, please help... There is a code, here it is:

if(TP_1>0)
 {
  er1=OrderSend(Symbol(),OP_SELL,Lots,Bid,slipage,Bid+SL*MP,Bid-TP_1*MP,NULL,MN,0);
  Print("TP_1 - ",er1);
  //Sleep(10000);
 }
if(TP_2>0)
 {
  er2=OrderSend(Symbol(),OP_SELL,Lots,Bid,slipage,Bid+SL*MP,Bid-TP_2*MP,NULL,MN,0);
  Print("TP_2 - ",er2);
  //Sleep(10000);
 }
if(TP_3>0)
 { 
  er3=OrderSend(Symbol(),OP_SELL,Lots,Bid,slipage,Bid+SL*MP,Bid-TP_3*MP,NULL,MN,0);
  Print("TP_3 - ",er3);
  //Sleep(10000);
 }
if(TP_4>0)
 {
  er4=OrderSend(Symbol(),OP_SELL,Lots,Bid,slipage,Bid+SL*MP,Bid-TP_4*MP,NULL,MN,0);
  Print("TP_4 - ",er4);
  //Sleep(10000);
 }
So, for some reason, not always and not all orders are opened. There are no errors. The orders may open one or two or all of them but they don't always do it.
TP_1, TP_2, TP_3, TP_4 are always greater than zero. There are also no errors in the log. Why may this be and how to deal with it?
 
Valerius:

Good afternoon everyone!

Guys, if anyone has encountered this, please help... there's a code, here it is:

So, for some reason, not always and not all orders are opened. There are no errors. The orders may open one or two or all of them, but it doesn't always happen.
TP_1, TP_2, TP_3, TP_4 are always greater than zero. There are also no errors in the log. Why can this be and how can it be dealt with?
I have a counter question - how do you manage to insert code??? Look, I inserted code correctly - operators are highlighted. And what about you? There are unnecessary lines, operators are not highlighted. I'm curious, what do you do with the code, before pasting?
 
I just put in the text and the code, and the code is listed as code. I don't know how the rest of the code works. If it should be highlighted, it's not up to me, it's up to the website developers.
Reason: