totally stumped wiring LEDS to a tortoise

I bought some dwarf signals and they came with 3 wires common anode with resistor, red cathode wire and green cathode wire. I tested the LEDS and they work fine. positive to the anode and negative to the green cathode and the green light illuminates +to the annode and - to the red cathode and the red light illuminates. so far that is all great. I then connected the annode to pin 5 of the tortoise along with a positive from acc bus. I connected red cathode to pin 6 and green cathode to pin 7. those both go to the negative acc bus. I power up the layout and I get no lights at all. I throw the switch which works fine but still no lights. I disconnect either the red or the green wire from the negative bus and the lights work as they should (red wire disconnected and green lights for mainline and turns off for divergent) I am using a switch8 so the tortoises are controlled by DCC and there are no togle or push button switches on the layout. why can’t I have both lights connected?

the common anode resistor should be connect to + power.

pin 5 of the tortoise to - power

pins 6,7 to the cathode LEDs

this diagram shows connections for an LED with common cathode

that is ALMOST identical to how I have it wired with the exception of there are 2 seperate LEDS but only 3 leads

ok I looked at that wrong last night. you are correct that IS the correct way that they needed to be wired. They are now working!