I spent about 30 years writing heavy duty software: operating system architect, code for the inside of storage systems, medical ultrasound, ... I got tired of companies merging, sending my work off to India, Russia, ...
I've just completed two years of technical School in a year and passed my journeyman's test. In the past three months I've done commercial and condo contruction wiring and am enjoying it.
I would avoid any "intellectual-only" jobs. These are simply too easy to send to the lowest wage country anywhere in the world. Engineering is not immune. Software engineering (and not just simple stuff) is already being done this way. Other sorts of engineering will increasingly go the same route.
Electrical installation, troubleshooting, and repair will most likely always require someone to be onsite. [As equipment goes more and more to PLC (Computer controlled) some remote diagnosis will creep in but is unlikely to completely eliminate onsite work.]