It's about the extended trading hours that you have enabled on your chart.
When calling directly ta.dmi()
it factors in the displayed extended trading hours bars.
When requesting the ta.dmi()
from the security, it does not include the extended trading hours. You could request them with with ticker.modify()
.