MQL5 - HELP How to handle Custom indicator to different buffers of iEnvelopes (and others)? - page 2

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You provided the code - I checked: no errors.
Want to ask a question: please provide the code.
I believe that the problem was clearly posed from the beginning, but I understand that making an extra effort on your part could be a nuisance, so here is an emblematic case I refer to...
i try to calculate AMA smooth on Envelopes buffers
at CASE 1 occur 4806 i think don't find the buffer but i need to calculate second AMA on Lower Buffer of Envelopes handle
(see attached image file)
if on CASE 1 i put this -> Copybuffer handle,0,0,5
it no longer gives error 4806 but returns values that are always calculated on the Upper buffer of Envelopes
and I don't understand why in the handle ENVhandle (of iEnvelopes) there are the two buffers while if I attach another indicator handle superior to the one it seems to return only one buffer and it is not clear on all documentation mql5 / codebase how to refer to the second buffer the Lower one
explained once again, if I want to get an array on indicator attached to another indicator (in the MT4 chart it is the fx "Datas of Previous indicator / First indicator") calculated on each different buffer of the first indicator, how is it possible to do?
NOW CAN YOU FINALLY HELP ME IN A SOLUTION OR ALSO THIS TIME I'M WASTING TIME?
Before mindlessly requesting data, you need to study the indicator.
Here is the header of the 'AMA.mq5' indicator
as you can see in the indicator ONLY ONE buffer! Question: if the indicator has ONE buffer, WHY are you trying to get data from a non-existent buffer?
Be more attentive next time.
Before mindlessly requesting data, you need to study the indicator.
Here is the header of the 'AMA.mq5' indicator
as you can see in the indicator ONLY ONE buffer! Question: if the indicator has ONE buffer, WHY are you trying to get data from a non-existent buffer?
Be more attentive next time.
but I know this, I'm not a beginner, be more attentive you to my question please,
I asked how I can calculate an AMA on the lower buffer of iEnvelopes, for this I set two AMA handles on ENVhandles (which has two buffers 0 = Upper 1 = Lower) because the first array on AMA1handle is calculated correct on the Upper buffer of Envelopes (already verified) but if I also want a second array I set another handle that is AMA2handle always on ENVhandle but I don't understand how to get the array calculated this time on the Lower buffer
now do you understand or are you turning around because even you who are more experienced don't know how to solve it?
Use [data folder]\MQL5\Include\MovingAverages.mqh
i don't understand what you mean with that... i know this library
but what you mean?
The easiest option is to split iEnvelopes into two indicators - one draws only the upper line, and the second only draws the lower line. After that, the handles of these indicators can be used when creating iAMA
The easiest option is to split iEnvelopes into two indicators - one draws only the upper line, and the second only draws the lower line. After that, the handles of these indicators can be used when creating iAMA
please provide the code at yout time now, please.
how can i catch second buffer of ENVhandle2 (Lower Buffer???)
please provide the code at yout time now, please.
Study: AMA Envelopes Custom
Thanks Vladimir
I would have preferred to use only the original iEnvelopes but the same also 2 Envelopes with separate buffers called by iCustom give the same results (I had not thought about modifying the original indicator in this way .. but okay the data comes back) with this solution
Vladimir Karputov:
The easiest option is to split iEnvelopes into two indicators - one draws only the upper line, and the second only draws the lower line. After that, the handles of these indicators can be used when creating iAMA
thanks for the indication, good job