What is the "Modify" line showing in the MT5 Journal?

 

Hi,

I have an EA running on MT5 and I was looking at the journal and dont know what the line that says modify is from. Is this my EA doing this or is it something from MT5 or the broker?

This is what it looks like when a trade is put on:

RH 0 06:57:02.435 Trades '1496304': accepted exchange buy 1 ENQZ24 at market sl: 21936.25 tp: 22020.25
JG 0 06:57:02.435 Trades '1496304': deal #247838169 buy 1 ENQZ24 at 21966.50 done (based on order #268632533)
RL 0 06:57:02.435 Trades '1496304': order #268632533 buy 1 / 1 ENQZ24 at 21966.50 done in 120633.523 ms
LR 0 06:57:02.435 Trades '1496304': modify #268632533 buy 1 ENQZ24 sl: 21936.25, tp: 22020.25 -> sl: 21952.50, tp: 22036.50

I am not manually doing anything during the trades it is all the EA.

Thanks in advance!

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 

Supra2jz: I have an EA running on MT5 and I was looking at the journal and dont know what the line that says modify is from. Is this my EA doing this or is it something from MT5 or the broker?

This is what it looks like when a trade is put on:

RH 0 06:57:02.435 Trades '1496304': accepted exchange buy 1 ENQZ24 at market sl: 21936.25 tp: 22020.25
JG 0 06:57:02.435 Trades '1496304': deal #247838169 buy 1 ENQZ24 at 21966.50 done (based on order #268632533)
RL 0 06:57:02.435 Trades '1496304': order #268632533 buy 1 / 1 ENQZ24 at 21966.50 done in 120633.523 ms
LR 0 06:57:02.435 Trades '1496304': modify #268632533 buy 1 ENQZ24 sl: 21936.25, tp: 22020.25 -> sl: 21952.50, tp: 22036.50

I am not manually doing anything during the trades it is all the EA.

It seems like something that an EA is doing. Look at the Experts log. There may be some extra information there about it.

Discuss the issue with the EA's author. Discussions about Market or 3rd party products are not allowed on the forum.

 
Fernando Carreiro #:

It seems like something that an EA is doing. Look at the Experts log. There may be some extra information there about it.

Discuss the issue with the EA's author. Discussions about Market or 3rd party products are not allowed on the forum.

Thanks for the suggestion. I created it myself I am just not a programmer and am not familiar with what MT5 does in terms of putting on the trade or modifying the orders.


The Experts log says "Correcting stops because of slippage". 

The order that I am placing is put on with a market order not a limit. So i dont know what is going on.

 
Supra2jz #:

Thanks for the suggestion. I created it myself I am just not a programmer and am not familiar with what MT5 does in terms of putting on the trade or modifying the orders.


The Experts log says "Correcting stops because of slippage". 

The order that I am placing is put on with a market order not a limit. So i dont know what is going on.

did you create that error msg in the code? because it is an unfamiliar msg for me.

Either way. You need to provide your code if you want more help. Until you do -- the only responses you get now will be like "we can not see your screen", "we can not read your mind", or my favourite "our crystal balls are broken/cracked".
 
Supra2jz #:

Thanks for the suggestion. I created it myself I am just not a programmer and am not familiar with what MT5 does in terms of putting on the trade or modifying the orders.

The Experts log says "Correcting stops because of slippage". 

The order that I am placing is put on with a market order not a limit. So i dont know what is going on.

How can you be the author of the code and not even understand what it does, nor even know what messages it writes to the log?

Did you use ChatGPT or something? Stop using it! It writes horrible code and we will not help you with it. If you need help with your code, you will need to program it yourself and not via ChatGPT.

As for the message, "Correcting stops because of slippage", that is obviously the EA modifying the stops, and it has nothing to do with pending orders. Stops can be modified on market orders too.

 
Fernando Carreiro #:

How can you be the author of the code and not even understand what it does, nor even know what messages it writes to the log?

Did you use ChatGPT or something? Stop using it! It writes horrible code and we will not help you with it. If you need help with your code, you will need to program it yourself and not via ChatGPT.

As for the message, "Correcting stops because of slippage", that is obviously the EA modifying the stops, and it has nothing to do with pending orders. Stops can be modified on market orders too.

I do understand what it does mostly. I did not use ChatGPT. I used a website which allows you to program without code. What I do not understand is all of what MT5 is doing/logging, during normal (manual) trade execution vs what the EA might be doing. 

The EA is very profitable and it is doing exactly what I was doing manually. The only thing that I am unsure of, hence me asking the questions, is what that one line is and if it is the EA or something that MT5 or the broker might have been doing. For the most part it is not causing a problem, it is just not something I need/want it to do.

 
Supra2jz #:

I do understand what it does mostly. I did not use ChatGPT. I used a website which allows you to program without code. What I do not understand is all of what MT5 is doing/logging, during normal (manual) trade execution vs what the EA might be doing. 

The EA is very profitable and it is doing exactly what I was doing manually. The only thing that I am unsure of, hence me asking the questions, is what that one line is and if it is the EA or something that MT5 or the broker might have been doing. For the most part it is not causing a problem, it is just not something I need/want it to do.

If you used a "generator", without understanding how to properly program in MQL, then you will have great difficulty understanding or even implementing any coding advice we may give you here.

Proof of that is that you did not even understand that the EA was updating (modifying) the stops. You also lack some basic trading knowledge, given that you did not understand that one can modify the stops of an open position.

So, may I suggest that you dedicate some time to improving your trading knowledge and your skill at MQL5 programming (manually, not via generators)?

This will help you much more in the future, so that you don't have to depend on outside sources for your trading and EA development.

 
Fernando Carreiro #:

If you used a "generator", without understanding how to properly program in MQL, then you will have great difficulty understanding or even implementing any coding advice we may give you here.

Proof of that is that you did not even understand that the EA was updating (modifying) the stops. You also lack some basic trading knowledge, given that you did not understand that one can modify the stops of an open position.

So, may I suggest that you dedicate some time to improving your trading knowledge and your skill at MQL5 programming (manually, not via generators)?

This will help you much more in the future, so that you don't have to depend on outside sources for your trading and EA development.

Of course I understand you can modify stops on an open position. I have my EA currently modifying the stops on my open position with trailing stops, however I am not doing so until a profit of 3r is met, so this is not what is causing the immediate change.

I was just simply asking if this could be something the broker or MT5 was doing since some brokers modify stops due to slippage. So i was not sure if that could be what was going on. I am not very familiar with the MT5 platform.


I will see if i can figure it out.

Thanks anyway!

 
Supra2jz #: since some brokers modify stops due to slippage

I think you may be confusing something. Brokers do not modify stops (not even for slippage). Slippage occurs only during the execution of a open or a close of a position.

When the price reaches a stop (T/P or S/L), it triggers the closure of a position, during which slippage may occur, but the stop itself is not modified because of it.

As for the MetaTrader 5 terminal itself (not via MQL5 program), the only automated mechanism that can modify a stop, is the built-in trailing stop functionality that can be enabled from the terminal.

For all other automated mechanisms that modify a stop, it can only be caused by a MQL5 program, such as an EA, a Script, or a Service.