You probably want to use Custom Depth.
Someone posted a tutorial:
https://forums.unrealengine.com/showthread.php?8601-TUTORIAL-Creating-outline-stroke-effect-around-objects
I can’t understand how is this executing , any help with this is appreciated.