The red wire goes to the battery, the white wire goes to the lighting circuit in that pair that comes out from the heat shrink.
The single red wire that comes out the end before the diodes goes to the engine, which should be a black wire if it has the Tri-circuit stator/alternator.
If it is a Tri-circuit there should be just 1 wire coming out of it.
If it is a Dual circuit there would be 2 wires coming out of the stator going into a rectangle terminal coupler with 1 red wire with built in diode that goes to the battery, the black wire without the diode goes to the lighting circuit.
Looking at your picture, it appears there is a white connector terminal coming out of the engine, That is usually from a Dual circuit stator/alternator that should have a black wire and a red wire coming from the engine.
If that's what it has coming out of the engine then there is a different harness that connects to it than the one I listed with the part number earlier. I listed the Tri-circuit harness number, but that engine is supposed to have the Dual circuit stator.
If it has the dual circuit and the diode is good in the wiring coming out of the engine, then you just run the red wire that is rectified with the diode into D.C. to your battery or ignition switch that would send it to your battery depending on how the key switch is wired, the black wire would then wire in to your lighting circuit wiring. It would be A.C. current for the lights. The Dual circuit has the white plastic rectangle shaped connector coming out of the engine with the red and black wires.
An LED light needs D.C. current to light properly. If you feed it with A.C. it will flicker like a strobe light.
It's hard to tell if you have it wired correctly because the wires are of a different color that the factory wires. You can tell someone replaced a lot of wiring on it and your diagram doesn't show all the wire colors.
The orange might be right if it is on the engine side of the harness being used as a jumper to the other diode connection but the single wire coming from the engine if that's where it is coming from should be black in color for a Tri-circuit system with a round green connector.
If the jumper is on the tractor harness side of the diodes and not the engine side it is hooked up wrong.
You can tell someone did some re0wiring on it and hope they did it right or they could burn out the stator and a voltage regulator if one is used on that tractor.
If you use the harness you have in the picture, the red with round connector goes to the engine, the other red goes to the battery and the white goes to your lights, but disconnect the diodes that are in your tractor and don't replace/use them because the harness you have pictured already has the diodes in it.
It's kind of hard to tell in your picture of where the wires originate or go to but the diode picture is good to see how it was re wired and connector changed, wire colors may have been changed also, but it might be routed correctly..