Web-like UI inside of MT5. Is it possible?

 

I was seeing some open source projects made on top of the TradingView Lightweight Charts library and this sparked some ideas in my head. What if we can make MT5 charts as modern looking as other Web trading platforms (TV being one among many). 

I know that I am not the only one to think about this. Maybe developer's have tried to make it look better, or integrate more features. But honestly speaking, developer's main limitation is the CCanvas library itself. 

I know someone determined enough can extend it and make it better, but we still won't achieve that crisp UI that exists for other platforms. I wanted to do something about this and feels like pure MQL5 approach will take possibly months if not several months of development. 

I tried thinking of unconventional ideas like a Python process running alongside MT5. That Python process has a headless Chromium browser (via Playwright) that loads your app. But nobody sees that browser. It's invisible. Python then takes a screenshot of that invisible browser a pixel-perfect bitmap of whatever is rendered. That bitmap gets written somewhere MT5 can read it. MT5 loads it as an image and displays it on the chart via OBJ_BITMAP or CCanvas .

There are obvious limitations with this, the number 1 being there's no interactivity. We can get around that via building a click-mapping system that MT5 sends to python, but it would be laggy and unnecessarily complex. 

The only option left to me is DLL integration. That is pretty straightforward. But I wanted to avoid it and look for pure MQL5 approaches or MQL5 + Python. What do you guys think? DLL it is? 

 
Muhammad Minhas Qamar:

I was seeing some open source projects made on top of the TradingView Lightweight Charts library and this sparked some ideas in my head. What if we can make MT5 charts as modern looking as other Web trading platforms (TV being one among many). 

I know that I am not the only one to think about this. Maybe developer's have tried to make it look better, or integrate more features. But honestly speaking, developer's main limitation is the CCanvas library itself. 

I know someone determined enough can extend it and make it better, but we still won't achieve that crisp UI that exists for other platforms. I wanted to do something about this and feels like pure MQL5 approach will take possibly months if not several months of development. 

I tried thinking of unconventional ideas like a Python process running alongside MT5. That Python process has a headless Chromium browser (via Playwright) that loads your app. But nobody sees that browser. It's invisible. Python then takes a screenshot of that invisible browser a pixel-perfect bitmap of whatever is rendered. That bitmap gets written somewhere MT5 can read it. MT5 loads it as an image and displays it on the chart via OBJ_BITMAP or CCanvas .

There are obvious limitations with this, the number 1 being there's no interactivity. We can get around that via building a click-mapping system that MT5 sends to python, but it would be laggy and unnecessarily complex. 

The only option left to me is DLL integration. That is pretty straightforward. But I wanted to avoid it and look for pure MQL5 approaches or MQL5 + Python. What do you guys think? DLL it is? 

Hey, thanks. You just, basically, answered a question that I posted in another thread:

Forum on trading, automated trading systems and testing trading strategies

How was your first EA developed?

Ryan L Johnson, 2026.03.24 23:25

One of the funniest things I've seen is a trader seeking to connect TV to MT5. Why? Why? Whyyyyyy? 😅
IMHO, that sounds like an awful lot of work just for looks. I guess that I'm a function-over-form kind of guy.
 
Ryan L Johnson #:

Hey, thanks. You just, basically, answered a question that I posted in another thread:

IMHO, that sounds like an awful lot of work just for looks. I guess that I'm a function-over-form kind of guy.
It's not if I use dll, but that's the point. I don't want to use dll. And tbh, it looks too good :DDDD
 
Muhammad Minhas Qamar #:
It's not if I use dll, but that's the point. I don't want to use dll. And tbh, it looks too good :DDDD

But not too good to be true.😅

I just did a quick search and there are several 3rd party TV-to-MT5 bridges out there. I can't discuss any specific paid product here in the Forum, but they each appear to cost less than the average EA.

I had no idea that those things are that common.