Technical Bug Report: Mathematical Instability and Price Jitter during Rectangle

 

Object Transformation in MT5

Dear MetaQuotes Development Team,

I am writing to report a technical inconsistency observed in the MT5 terminal regarding the behavior of graphical objects, specifically the Rectangle object, during manual manipulation.

Description of the Issue:

There is a noticeable “price jump” or “jitter” that occurs when a user drags one of the vertices of a rectangle across its opposite side. Specifically, at the exact moment the upper boundary (Price 1) intersects or crosses the lower boundary (Price 2), the object undergoes a non-linear jump in price coordinates. This jitter appears to be a result of how the terminal handles the normalization of price coordinates relative to the SYMBOL_TRADE_TICK_SIZE during the transition of overlapping boundaries.

Technical Observations:

  1. Mathematical Discontinuity: The jump occurs during the transition period where Price_1 \approx Price_2 . It seems the internal engine performs a sudden re-calculation or rounding that causes a discrete jump rather than a continuous movement.
  2. Inconsistency with MT4: This behavior is not observed in the MT4 terminal, which handles object transformations more linearly.
  3. Persistence: Once the coordinates are normalized after the first “jump,” subsequent movements appear stable, suggesting the issue is localized to the initial state transition of the object’s boundaries.

Impact:

This behavior affects the precision of manual technical analysis. Traders attempting to align rectangles with specific price levels experience unexpected shifts, which can lead to incorrect visual identification of support and resistance zones.

Suggested Investigation Area:

I suggest reviewing the logic within the OnChartEvent (specifically CHARTEVENT_OBJECT_DRAG ) and the internal coordinate calculation engine to ensure that the rounding to Tick Size is handled with continuous mathematical stability, even when boundaries are overlapping or inverted.

I look forward to seeing this addressed in a future build to enhance the precision of the MT5 platform.

Best regards,

Pooria Toosi

Trader & Developer

 
Pooria Toosi:


you forgot to add what might be most important bit of technical information the devs will need: your version number of mt AND your system info as shown at first 3 lines in your journal tab.
 
Michael Charles Schefe #:
you forgot to add what might be most important bit of technical information the devs will need: your version number of mt AND your system info as shown at first 3 lines in your journal tab.
Thank you for the feedback.

Additional technical information as requested:

Terminal version:
FeneFX MT5 Terminal x64 build 5833

System information (Journal – first lines):
2026.06.28 15:27:42.343 Terminal FeneFX MT5 Terminal x64 build 5833 started for FeneFX Ltd.
2026.06.28 15:27:42.343 Terminal Windows 11 build 22631, 8 x 11th Gen Intel Core i7-1165G7 @ 2.80GHz, AVX2, 9 / 15 Gb memory, 104 / 230 Gb disk, UAC, GMT+3
2026.06.28 15:27:42.343 Terminal C:\Users\Lenovo\AppData\Roaming\MetaQuotes\Terminal\...

If needed, I can also provide a minimal reproducible example or a short video demonstrating the rectangle price jitter during object dragging.

 
Pooria Toosi #:
Thank you for the feedback.

Additional technical information as requested:

Terminal version:
FeneFX MT5 Terminal x64 build 5833

System information (Journal – first lines):
2026.06.28 15:27:42.343 Terminal FeneFX MT5 Terminal x64 build 5833 started for FeneFX Ltd.
2026.06.28 15:27:42.343 Terminal Windows 11 build 22631, 8 x 11th Gen Intel Core i7-1165G7 @ 2.80GHz, AVX2, 9 / 15 Gb memory, 104 / 230 Gb disk, UAC, GMT+3
2026.06.28 15:27:42.343 Terminal C:\Users\Lenovo\AppData\Roaming\MetaQuotes\Terminal\...

If needed, I can also provide a minimal reproducible example or a short video demonstrating the rectangle price jitter during object dragging.

Needed.