MQL4 Alternatives?

So I’ve been coding quite a bit of mql4 lately and I really hate it. I’m a professional programmer with lots of experience but I need to use a more mature language. At least something object oriented and with better debugging tools. Ideally I would like to code everything in nodejs but I’m not opposed to c++, java, scala, ruby, php, c#, or anything else.

I would really like to write a standalone application that’s language independent and connects directly to the broker through a json api, without the need for mt4 or any other trading platform. Preferably it would also not be broker dependent so if I change brokers later, I don’t have to rewrite thousands of lines of code.

Is there anything like this around or am I just dreaming?

It is indeed possible to do what you want, but it comes at a cost. Broker APIs are intended for high volume, high value clients, not wannabes like us.

MQL4 is not all that bad for what it was intended to do which is low performance, simple customizations. When you try to get fancy is when its shortcomings become apparent. Probably the best thing for you is build your own set of APIs that do simple operations luke open or close a trade.