Alt. guage discharging all the time???

the wire that was frayed was the thick black wire coming from the top of the alternator, re-did it and woohoo it's charging again!!!!