Hi
Yesterday, I had two separate strategies fall over with the description “Rejected: Order level too close to market”. The formulas used for these two strategies was
BuyPrice = High[0]+1.1*pointsize -5min
and the second
BuyPrice – High[0]+2*pointsize – 4Hr
They were both on the Dax in normal trading hours.
Can you help, is this a coding or system problem?
regards
Dymjohn
The minimal stop distance with DAX is 5 points, if I remember correctly.
EricParticipant
Master
This was a “stop entry” not a “stop loss” order so would have thought would have gone through possibly at an inferior price?
Even with a “stop entry”, you must place your order at a minimal distance away from current Close, otherwise your orders will be rejected.
Just use MAX to ensure you are never too close:
MinStopDistance = 5
StopLoss = MAX(MinStopDistance, Your calculated stoploss distance)