- Questions from Beginners MQL4 MT4 MetaTrader 4
- Measuring the price difference between a line and a bar
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Is your question about on the Chart or in code?
If it is in code then ...
Use the iCCI() indicator handle as the applied price parameter for iEnvelopes() function.int iEnvelopes( string symbol, // symbol name ENUM_TIMEFRAMES period, // period int ma_period, // period for the average line calculation int ma_shift, // horizontal shift of the indicator ENUM_MA_METHOD ma_method, // type of smoothing ENUM_APPLIED_PRICE applied_price, // type of price or handle double deviation // deviation of boundaries from the midline (in percents) );Parametersapplied_price
[in] The price used. Can be any of the price constants ENUM_APPLIED_PRICE or a handle of another indicator.
Is your question about on the Chart or in code?
If it is in code then ...
Use the iCCI() indicator handle as the applied price parameter for iEnvelopes() function.Parametersapplied_price
[in] The price used. Can be any of the price constants ENUM_APPLIED_PRICE or a handle of another indicator.
If you are using Envelopes (moving average and deviation), on CCI, then I assume you mean CCI price level and not Envelope price levels.
However, for CCI there is is no such thing as a corresponding price level. CCI measures the difference in price between the current and the average.
- www.investopedia.com
If you are using Envelopes (moving average and deviation), on CCI, then I assume you mean CCI price level and not Envelope price levels.
However, for CCI there is is no such thing as a corresponding price level. CCI measures the difference in price between the current and the average.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use