- Coding the Moving Average (Stock Metatrade Indicator) "Using First Indicator's Data" ??????????????????????????
- Coding help
- SHI Indicators
You can use iCustom() and CopyBuffer() to use the data from an indicator in another MQL5 program, be it another Indicator, EA, Script or Service.
For two indicators, you can also consider merging them into one to improve efficiency.

- www.mql5.com
That is not what the OP is asking! It is not about applying the indicators on the chart, and in this case both indicators are "chart" indicators anyway.
It's about using the data programmatically in another indicator and the user wishes to apply a Hull average to the Fourier approximation of the price.
Yes, it is possible for many of the internal indicators as well as custom indicators that make use of the "price" version of the OnCalculate() event handler.
Also, even if this was about presentation, you can still apply a "chart" indicator to a "subwindow" indicator if using the "price" version of the OnCalculate() event handler.
Whoa.😳
I honestly can't recall ever having a use for the price version of OnCalculate. Now I do. Thanks.
If you ask "how to" questions, you'll be directed off to the freelance section sooner or later. You should look in the indicator codebase for examples
https://www.mql5.com/en/code/12648
iCustom is very easy to use
If you're learning programming, you might want to first learn:
- Different types of variables (for decimal numbers, fixed integers, strings and so on)
- How to compare values with conditions
- How to create boolean flags and make use of them
- Class variables vs. global variables
The list goes on...it takes doing some work and learning, and if you're going to ask here what to do, it's not going to work out at all as people don't like to spoon feed

- www.mql5.com
I don't know exactly what your indicators are, but just know that a chart window indicator can't be applied to the output values of a separate window indicator. For example, applying a chart window moving average to an oscillator is not possible. My simple solution is to simply edit the moving average indicator property into separate window in that moving average indicator source code.
That is not what the OP is asking! It is not about applying the indicators on the chart, and in this case both indicators are "chart" indicators anyway.
It's about using the data programmatically in another indicator and the user wishes to apply a Hull average to the Fourier approximation of the price.
Yes, it is possible for many of the internal indicators as well as custom indicators that make use of the "price" version of the OnCalculate() event handler.
You don't have to use the "price"/"short" version. That was an answer for the points raised by @Ryan L Johnson
That is why I specifically stated ... "Please note that this post is off-topic and not relevant to the OP's question"
For your case, you can use either method, but since both indicators are already "detailed"/"long" version you can keep that way too.
There are multiples ways to solve it, and it really depends on your needs and coding ability. Personally I would merge the two and make it a single indicator, but do it in which ever way is easiest for you to understand.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use