The relevant properties

MQL5 defines SYMBOL_TRADE_STOPS_LEVEL as the minimum distance in points for stop orders and SYMBOL_TRADE_FREEZE_LEVEL as the distance within which trade operations can be frozen. SYMBOL_POINT converts points to price, while SYMBOL_TRADE_TICK_SIZE describes the minimum price change. Apply the current symbol properties and relevant operation rules. MQL5 · Symbol properties ↗

Converting the distance

For an illustrative point size of 0.00001, 100 points correspond to 0.00100. With a point of 0.01, the same count corresponds to 1.00. Showing both points and the price equivalent is more informative than an isolated 100. This unit conversion leaves actual order validity to the server's operation rules.

Explaining a rejected amendment

Connect the proposed level, current quote and triggered restriction, retaining the check time because prices can change before submission. Reload symbol settings after an update. Test several distances around a boundary on a test account, logging the request and response. This helps distinguish a unit error from changed market or server conditions.