Forum

How to code Moving Average applied on Bollinger Bands

How do you apply an indicator on a multi-buffered indicator in MQL5 in general? For example, Moving Average applied on Bollinger Bands. First, I create the variables: int Bands_handle; int MA_handle; double MA[]; Then I create the indicator handles in the OnInit() function (note that Bands_handle is

Issue: Moving Average applied on a Custom Indicator

There may be a common bug in MQL5 indicator functions or I'm missing something. The problem arises when I try to apply any indicator on any custom indicator. For example, in MQL4, you calculate the moving average of any indicator by first filling an array with the indicator and then calling the