It would be stunning add this function to MT4, meanwhile how Can I achieve this sort of thing in MT4. What I really need is overlay to different indicators (BB and RSI) in the same sub window from code. Thanks.
Probably the only way is to make use of ChartApplyTemplate()...

- docs.mql4.com
Thanks Seng but that is not what I require. The image below represents better my desire.
This is perfectly possible in MT5 but not in MT4 I think because MT5 manages these indicators through handlers and MT4 gives us directly the value of the indicator. So I think the only way is to redimension the BB in terms of RSI. Thank you anyway.
Hopefully someone from the official development team of Metaquotes see this post. That is truly my target with this post.
Thanks Seng but that is not what I require. The image below represents better my desire.
This is perfectly possible in MT5 but not in MT4 I think because MT5 manages these indicators through handlers and MT4 gives us directly the value of the indicator. So I think the only way is to redimension the BB in terms of RSI. Thank you anyway.
Hopefully someone from the official development team of Metaquotes see this post. That is truly my target with this post.
Right, because there are various iXXXOnArray() functions (where Bands is one of those XXX) in MT4 that can achieve the overlap you want easily, so I didn't think that was your key point.
So my earlier answer was in direct response your mentioning of the need to "overlay... ... from code", which MT4 does not support (i.e. while we can easily code indicators with such overlapping in place, we cannot display it on a chart from code), other than the use of ChartApplyTemplate().
Right, because there are various iXXXOnArray() functions (where Bands is one of those XXX) in MT4 that can achieve the overlap you want easily, so I didn't think that was your key point.
Thank you Seng, As I mentioned in my first post "overlap 2 indicators in the same "sub window " what is different of "main window" or "main chart"". Thank you anyway.
They're the same - if you can display the lines in main window/chart, you can display them in sub window, no issue at all. There will be some issue the other way round, but can also be managed though.
They're the same - if you can display the lines in main window/chart, you can display them in sub window, no issue at all. There will be some issue the other way round, but can also be managed though.
Yes, I know that, I needed both in the sub window (separate window) as displayed in the image. Regarding the iBandsArray(), how would you use iBandsOnArray() to plot it together with RSI both in the same separated window?
Yes, I know that, I needed both in the sub window (separate window) as displayed in the image. Regarding the iBandsArray(), how would you use iBandsOnArray() to plot it together with RSI both in the same separated window?
I've quickly put together the key parts (not elegant, but serves to demonstrate the possibility) and attached.
I've quickly put together the key parts (not elegant, but serves to demonstrate the possibility) and attached.
But this way you are using the RSI for calculating the BB what is incorrect what I need is overlapping the real BB calculated with real prices ( the normal BB). Any idea?
But this way you are using the RSI for calculating the BB what is incorrect what I need is overlapping the real BB calculated with real prices ( the normal BB). Any idea?
It's just an array - replace rsi values with prices.
Thank you Seng, but if I do that the BB values dosen´t match the RSI values Do you know what I mean? So the indicator is not shown properly.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
It would be stunning add this function to MT4, meanwhile how Can I achieve this sort of thing in MT4. What I really need is overlay to different indicators (BB and RSI) in the same sub window from code. Thanks.