why did metatrader delete my orders

Vladimir Karputov  
Darian Fernández :
metatrader after a few hours deletes my pending orders , why it happens, how to fix it

Check the code of your advisor - perhaps your advisor sets the life time of a pending order.

Darian Fernández  
Hello thanks for the answer, but who is my advisor? and how to look at the code I did not understand
Vladimir Karputov  
Darian Fernández # :
Hello thanks for the answer, but who is my advisor? and how to look at the code I did not understand

Open the MetaTrader 5 terminal. Check all your charts - find all the advisors you have installed on the charts.

Darian Fernández  

I found this, but it is difficult to understand, those are supposed to be the advisors. What would be the property to change so that my orders are not deleted after time?

Vladimir Karputov  
Darian Fernández # :

I found this, but it is difficult to understand, those are supposed to be the advisors. What would be the property to change so that my orders are not deleted after time?

You must decide which Expert Advisor will place pending orders. You must determine this yourself.

Sometimes it is useful to look in the "Trade" window in the "Magic" column:


Amir Syarifudin  
Darian Fernández:
metatrader after a few hours deletes my pending orders, why it happens, how to fix it

Price your pending order is out of slippage range

Revo Trades  
if you want help. you need to attach the code of your ea so that we can see the code to find what is causing the issue. If you are using the example eas, then there is lots of issues with all of those. Those are only examples only. They are not meant to be traded with. The reason you are not getting many responses is due to your lack of this code when you opened the thread.