Forum

Applying one indicator to another

I am trying to use a custom indicator HMA to smooth the line of another indicator. I have found a couple of different implementations of HMA in Codebase: one is based on SmoothAlgorithms.mqh (the code is at https://www.mql5.com/en/code/549), and the other uses a function iLWMA (on buffer), which is

Invalid EX5 File (12)

I am getting a custom indicator error 'invalid EX5 File (12)' in MT5 terminal. What is confusing is that this same indicator shows up just fine in two out of five open chart windows. I do use a lot of indicators on the chart. Most of them use 8 buffers. Perhaps the terminal runs out of memory that

How to apply custom moving average to an indicator?

I am switching from MT4 to MT5 and have very little experience with the new way of coding. In MT4 I used Hull Moving average to smooth other indicators (for example Stochastic). What I did in MT4 I modified the code from moving averages.mq4 to calculate HMA on an array instead of Price. I was

Matching bars of smaller timeframe to the bar of larger timeframe

I would like to write an indicator that matches bars in the 1 minute time frame to bar number 1 of the 15 minute time frame and then to draw a rectangle around those bars in the 1 min time frame. I'd appreciate if someone could give me an idea how to code that. Here's the illustration of what I