So here are my thoughts about this topic. There are devs and there are devs. I am in the 2nd category

.
The 1st category is a dev that just works for a salary. Whatever your skill level, at that level you have an earnings ceiling. The ceiling is determined by your speciality, industry sector and employer location (Europe, USA, SA whatever). Even if you break into management there will be somewhat of a ceiling.
The 2nd category is a dev with an entrepreneurial spirit. Even though i am an engineer, dev is where i started, albeit technical dev. I love developing software, the bulk of my day is spent developing. However, i run my own software company, have my own commercial software products from which i earn monthly income from sales and support. Although i wear loads of other hats, i still see myself as a dev. It speaks to my engineering spirit of creating things. For the 2nd category of dev there IS NO CEILING in earning potential.
The moral of my story is that there need not be an earnings ceiling for a developer. It is up to the individual to a large extent.
This post is not intended to be arrogant, but rather as an encouragement to devs to unleash your potential.