Flickering head lights, what am I missing

An 18ga wire? What is on the output stud of the alternator? Not an 18 ga wire.

It might be the headlight harness. Add a relay to power the headlights from the battery. You'll need one for the high beams also. The original wires energize the relay coils.