Issues with Trailing Stop Errors in MT5
-
Hi everyone,
I've been encountering some error messages when using trailing stops in MT5. Here are the specific error messages I am receiving:
failed modify #650 sell 0.31 XAUUSD sl: 2324.72, tp: 2312.32 -> sl: 2319.96, tp: 2312.32 [Invalid stops]
2024.04.24 12:26:06
failed modify #0 buy 0 sl: 0.00, tp: 0.00 -> sl: 2313.53, tp: 2305.32 [Invalid parameters]
2024.04.24 18:00:38
failed modify #0 buy 0 sl: 0.00, tp: 0.00 -> sl: 2333.47, tp: 2341.53 [Invalid parameters]If anyone knows how to resolve these issues, please share your insights. Any help would be greatly appreciated!
Thanks in advance!
-
@Adam692 seems that the level of trailing is too closer to the current price. Can you share your project?
-
@ambrogio I am trying to create a scalper expert that places pending orders at the peaks and troughs of the zig zag indicator, followed by a tight trailing stop to follow the price. I intend to use this for indices and gold. Here is the outline: https://fxdreema.com/shared/4Ntt1K6Cc
It mostly works, but I wonder if there is a simpler way to achieve this, and I would appreciate any suggestions.
I have a stop modification feature because pending orders do not allow stops to be placed closer than a certain point, so I modify them afterward.
The issue seems to be that the trailing stop is too close, but this is strange to me because even when I adjusted it to a greater distance, I still received errors. Additionally, many scalper experts work with tight stops and a few pips of take profit without reporting errors. Those experts were obviously not made with FXDreema, but how do they manage to work error-free?
-
@Adam692 the problem is the breakeven value = 1, very very small, it conflicts with the spread.
Increase that value and you'll see that it works -
@ambrogio Alright, I will increase the breakeven value, but I have already tried turning off the breakeven and increasing the trailing stop distance. Errors still occurred, although perhaps less frequently. Thank you for the advice.
-
@Adam692 sure, i guess, if you want to maintain such small values it will certainly be better for you to add/subtract the spread on break even and trailing