Are follow the Formatted Text Object expressions correct definition?
  • Position/X coordinate function is X("Formatted Text Object").
  • Page/Horizontal position function is also X("Formatted Text Object").
These functions look like returning horizontal position of the first character in the Formatted Text window.

Same as that, for Y coordinate and Vertical position.