﻿ iEnvelopes - Technical Indicators - MQL4 Reference
English

MQL4 Reference Technical Indicators iEnvelopes

# iEnvelopes

Calculates the Envelopes indicator and returns its value.

 double  iEnvelopes(    string       symbol,           // symbol    int          timeframe,        // timeframe    int          ma_period,        // MA averaging period    int          ma_method,        // MA averaging method    int          ma_shift,         // moving average shift    int          applied_price,    // applied price    double       deviation,        // deviation (in percents)    int          mode,             // line index    int          shift             // shift    );

Parameters

symbol

[in]  Symbol name on the data of which the indicator will be calculated. NULL means the current symbol.

timeframe

[in]  Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe.

ma_period

[in]  Averaging period for calculation of the main line.

ma_method

[in]  Moving Average method. It can be any of ENUM_MA_METHOD enumeration values.

ma_shift

[in]  MA shift. Indicator line offset relate to the chart by timeframe.

applied_price

[in]  Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values.

deviation

[in]  Percent deviation from the main line.

mode

[in]  Indicator line index. It can be any of Indicators line identifiers enumeration value (0 - MODE_MAIN, 1 - MODE_UPPER, 2 - MODE_LOWER).

shift

[in]  Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).

Returned value

Numerical value of the Envelopes indicator.

Example:

 double val=iEnvelopes(NULL,0,13,MODE_SMA,10,PRICE_CLOSE,0.2,MODE_UPPER,0); iDeMarkeriEnvelopesOnArray
{"ft_lang_label":"__label__en","ft_lang_prob":0.5945538,"math_prob":0.9034772,"size":1076,"snap":"2020-45-2020-50","text_gpt3_token_len":249,"char_repetition_ratio":0.14365672,"word_repetition_ratio":0.025,"special_character_ratio":0.21096654,"punctuation_ratio":0.1160221,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9665435,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-05T14:09:36Z\",\"WARC-Record-ID\":\"<urn:uuid:058c3326-de9a-4bd5-8e07-ca2d002226c3>\",\"Content-Length\":\"21787\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e788a6a2-1223-41b9-9755-947a62b95dc7>\",\"WARC-Concurrent-To\":\"<urn:uuid:0a789246-0b8f-48e6-b008-d4f38454c8ac>\",\"WARC-IP-Address\":\"78.140.180.31\",\"WARC-Target-URI\":\"https://docs.mql4.com/indicators/ienvelopes\",\"WARC-Payload-Digest\":\"sha1:44AFSE5HFMORX7DJ3FFACLF55NM6O7IC\",\"WARC-Block-Digest\":\"sha1:W6CIOLHOHHKEFJ22LP5WKCWAIVLO3I3W\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141747887.95_warc_CC-MAIN-20201205135106-20201205165106-00120.warc.gz\"}"}