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
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.
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".
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?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.