A cable electrode comprising at least three sections a connection section, an active section and an end section is disclosed. The cable electrode comprises a central conductor which in the connection section is surrounded by a electrically insulating polymer layer, in the active section the central conductor is surrounded by a polymer layer comprising a conductive filler and in the end section the conductor is surrounded by a electrically insulating polymer layer. The use of the cable electrode in an electrical fence for a fish corral is also disclosed.