It sounds like you may have been looking at the currents and picking the one that seemed best one to swim in. I found there's often -- but not always -- another option: build a dam. In other words, change it up. Alter the landscape. Seek to change the business in a way that nobody's been willing/able to do before. Looking back at my career I found I was happiest and most successful when I was able to tell my boss what I was doing vs. waiting for my boss to tell me to do something interesting/impactful/etc.
When that option doesn't seem to be presenting itself, it's probably time to move on. But I've found it's often worth giving it a try first.
A couple of times I needed to earn the right to create my own destiny by pushing through some grunge work, but once I established a degree of trust with my management chain, that was capital I could "cash in on" by proposing something big, new, and interesting. It never ceases to amaze me to see how boldness often gets rewarded. I just saw a co-worker of mine draw blood from a stone (funding-wise) by proposing something ambitious and controversial last week. Suddenly they're a TL of a new team this week. They've built a reputation for "just getting it done," so management has confidence in their ability to execute and drive results.
Whenever I'm starting to feel stuck in a rut, that's when I open a blank document and start hammering out a design for something new. I'm not even thinking about promotion when I do that. But somehow, somewhere down the road, either a promotion or a bigger opportunity with another company has always come of it.