Shadows disappear when I move the camera far from the object

I’m a little new in UE4 and I have a problem that im trying to solve…
Every time I go a little far from the object the shadows disappear, and its only happened with directional light,
spot light, for example, is working fine.
I tried to change things in the settings of the directional light but it’s only changing a little.
here are some pics: