You don't even need a custom indicator. You can remove the plot of the middle band (don't make it visible), and then add an EMA line with whatever length you want. No code necessary
I feel this thread is very similar to this one https://www.mql5.com/en/forum/451398
However you're looking for a way to change the MA type on input. I think of the "iMaonArray" function, although this does not seem to be native to MQL5 (someone did make some unofficial "MT5 compatible" rendition, although it causes extreme lag when implemented)

- 2023.07.26
- www.mql5.com
As far as I know, BB are nothing else than MA +- std deviation, so you can easily recreate it.
I've got an idea. Thanks.
You don't even need a custom indicator. You can remove the plot of the middle band (don't make it visible), and then add an EMA line with whatever length you want. No code necessary
Thank you for your comment.
I feel this thread is very similar to this one https://www.mql5.com/en/forum/451398
However you're looking for a way to change the MA type on input. I think of the "iMaonArray" function, although this does not seem to be native to MQL5 (someone did make some unofficial "MT5 compatible" rendition, although it causes extreme lag when implemented)
Thanks.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
By default, MA method in Bollinger Bands (BB) is set to use with Simple Moving Average. Is there any custom BB that its MA method can be changed to other method like Exponential MA, Smoothed MA, Linear Weighted?
One BB MT5 used in general attached below. I do appreciate if you can help or share with another one that the MA method is changeable.