Invalid Stop and Bad stops EA algo

 
2025.03.10 21:45:48.843 Trades '405049069': failed modify #1405759408 sell 0.01 XAUUSD sl: 0.000, tp: 0.000 -> sl: 2897.720, tp: 0.000 [Invalid stops] (bad stops)


Gays can u help me in this situation, Previously my EA was running smoothly at the beginning but recently it has experienced problems like this, is this a game from the broker or what, while the stop level on the commodity is 0 from the broker but it still experiences things like that and I use ATR 0.5 which is equivalent to 50 pips SL, how do I overcome this?

 
Alberd joon:
2025.03.10 21:45:48.843 Trades '405049069': failed modify #1405759408 sell 0.01 XAUUSD sl: 0.000, tp: 0.000 -> sl: 2897.720, tp: 0.000 [Invalid stops] (bad stops)


Gays can u help me in this situation, Previously my EA was running smoothly at the beginning but recently it has experienced problems like this, is this a game from the broker or what, while the stop level on the commodity is 0 from the broker but it still experiences things like that and I use ATR 0.5 which is equivalent to 50 pips SL, how do I overcome this?

i had a broker that minimum distance was 70 points before I stopped getting those errors.

However, that error can be several possible reasons. Check your minimum distance or stop level in your symbol specifications. If it is 0, then, that just means it is floating or changing constantly.

If the broker does not trade in the period of time that you tried to modify the trade, then, you can get this eror also.

If your mt4/5 is from installer you downloaded from this website, then, this could be why also.

Did you ask your broker? They are always your first point of contact. They are paid to give you support.

 
Michael Charles Schefe #:

i had a broker that minimum distance was 70 points before I stopped getting those errors.

However, that error can be several possible reasons. Check your minimum distance or stop level in your symbol specifications. If it is 0, then, that just means it is floating or changing constantly.

If the broker does not trade in the period of time that you tried to modify the trade, then, you can get this eror also.

If your mt4/5 is from installer you downloaded from this website, then, this could be why also.

Did you ask your broker? They are always your first point of contact. They are paid to give you support.

My broker allows trailing stop above 15 points while my trailing stop is around 200 points then the xauusd symbol has a stop level of 0 and also my stop loss is around 50 pips using atr is there no other solution such as adding syntax or whatever, or is this problem purely a problem with the broker??
 
Alberd joon #:
My broker allows trailing stop above 15 points while my trailing stop is around 200 points then the xauusd symbol has a stop level of 0 and also my stop loss is around 50 pips using atr is there no other solution such as adding syntax or whatever, or is this problem purely a problem with the broker??

as i said, 0 means that it is "floating"; or constantly changing. I changed brokers because I would get those errors, not all the time, but often enuf to be very annoying. I would increase my distance a little until the modification was successful. I found that when I increased it to 70 points, I stopped having the issue completely. This could be your problem, however, if this happens to you often, then, it is most probably a code syntax problem.

 
Michael Charles Schefe #:
as i said, 0 means that it is "floating"; or constantly changing. I changed brokers because I would get those errors, not all the time, but often enuf to be very annoying. I would increase my distance a little until the modification was successful. I found that when I increased it to 70 points, I stopped having the issue completely. This could be your problem, however, if this happens to you often, then, it is most probably a code syntax problem.
Yes, I understand now, previously I increased it to 500 points, previously it was only possible with 200 points, and strangely enough, on other accounts with parameters of 200 points, I think each account can still get it, it's different, right?