Discussion of article "Applying One Indicator to Another" - page 4

 
How can I add a function to an already ready indicator so that it would be based on the values of another indicator? For example ADX or MACD or ZigZag.... I can't understand how to do it
 
potom:
How can I add a function to an already ready indicator so that it would be based on the values of another indicator? For example ADX or MACD or ZigZag.... I can't figure out how to do it

Look at the help - https://www.mql5.com/ru/docs/basis/function/events#oncalculate


 

I will repeat the question, but I will modify it a little, because in the documentation the answer is based on calling standard indicators through the menu.

And I am interested in access to the data of another indicator opened on the chart or in the subwindow from the programme code.

i.e. how to determine the indicator handle and how to copy some of its indicator buffers partially or completely.

 

Hi,


Using a simple chart, I can drag Indicator A on a sub window.  Indicator B can be dragged into Indicator A and "Apply To" can be "Previous Indicator Data".   

Both Indicator A and B are Custom Indicators.

When trying to Code EA, if using a standard MA for indicator B, you can pass the indicator handle in Applied Price.  However, for Custom Indicators, the method is to pass it as the last parameter for the creation of Indicator B.



1. What are the things to look out for in Indicator B to know if it will accept the assignment of an indicator handle as the data series to process on?

2. In the EA, if Indicator B continues to open in main window and attaches to Price Close, what can i check?

 

Thanks for the article.

It looks like the programme is outdated, as the indicator works very interestingly on another indicator.

I have attached a screenshot.