How to copy upper and lower deviation of iEnvelopes?

 
handle1=iEnvelopes(name,period,ma_period,ma_shift,ma_method,applied_price,deviation);

I am createing an Envelope using iEnvelopes function

but when i want to copy values of upper and lower channel,

 double BufferEnvelope[];
CopyBuffer(handle1,0,0,1,BufferEnvelope);
Print(BufferEnverlope[1]);

it returns only upper channel value

but in Data window both values are shown seperately.

How can i retrieve both upper and lower channel value seperately?

Full code :

https://www.mql5.com/en/docs/indicators/ienvelopes

Envelopes - Trend Indicators - MetaTrader 5 Help
Envelopes - Trend Indicators - MetaTrader 5 Help
  • www.metatrader5.com
Envelopes Technical Indicator is formed with two Moving Averages , one of which is shifted upward and another one is shifted downward. The...
 

Help: iEnvelopes

The buffer numbers: 0 - UPPER_LINE, 1 - LOWER_LINE.
Documentation on MQL5: Technical Indicators / iEnvelopes
Documentation on MQL5: Technical Indicators / iEnvelopes
  • www.mql5.com
iEnvelopes - Technical Indicators - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Dark Ryd3r: it returns only upper channel value
Because, that is what you asked for.
 
Vladimir Karputov #:

Help: iEnvelopes

The buffer numbers: 0 - UPPER_LINE, 1 - LOWER_LINE.
Thank you, Solved it.