failed buy stop 0.01 XAUUSD at 4100 [invalid price]
-
Hello,
Can someone please help what this error is all about ? Stop orders works fine but few of the times it skip the stop order and shows this error in journal tab "failed buy stop 0.01 XAUUSD at 4000 [invalid price]"
please help what is the reason behind this and how to eliminate this error 100%
-
Can you please share the link to the project?
-
@l-andorrà Thank you for prompt reply. I Hope you and your family is all well.
Sharing you the project link where I face the problem.
https://fxdreema.com/shared/O31GmcQqd -
Probably the issue is with the value of the variable used to determine the price offset. Depending on the result of the calculations prior to the order programming, the variable result is too close to the programmed open price. That makes the broker to block it. You should ask your broker which minimum distance is accepted between current price and an accepted pending order. Then you should check your variable should always be bigger than that distance.
-
@l-andorrà if this is the issue as you describe then it should stop all the stop orders but this error happens once in 2-3 days . So distance gap should not be the issue I think. What you say ?
-
Not necessarily. I have no idea what values that variable can store. I see they depend on previous calculations. That means some time the value can be higher than other. Those days were the distance is very short should be the reason for that behaviour.
-
Thank you for your help
