My cruise control would stop working and noticed my gear indicator was not working either. Stop for gas restart the gear indicator and cruise would work for a while then cruise would kick out and no more indicator. This is on a 2015 SG. I just had mini apes installed. Could this be the same issue?
Hard to say for sure. The gear indicator is controlled by the ECM and the rpm and road speed data collected from those two sensors. If that data gets interrupted or corrupted, both the gear indicator and the cruise control can be affected. Next time this happens make note of any changes in the speedometer and tachometer operation. If those are also affected, I'd suspect an issue with the sensors and/or wiring. If those functions don't change, then yes there is a possibility that a defective clutch switch could also cause the problems. If the switch shows the clutch as being disengaged, it will shut down the cruise control and I'm thinking it also turns off the gear indicator. One way to test that theory is to see if your gear indicator turns off whenever you pull the clutch lever in all the way. I seem to remember that being the case back when Harley first installed those clutch switches, but don't know if that changed with the CAN bus bikes.
Jerry
Almost forgot the other point I was going to make. I'm assuming this problem began after you changed the bars, so make sure all the electrical connections are good. Did you extend any of the wiring or just run the stock wires through the new bars? I'm a firm believer in first looking at the last thing I changed or worked on right before a problem crops up. More times than not the cause of the problem can be traced to that last change.