请观看如何免费下载自动交易
请在Telegram上找到我们!
加入我们粉丝页
有趣的脚本?
因此发布一个链接 -
让其他人评价
喜欢这个脚本? 在MetaTrader 5客户端尝试它
显示:
4968
等级:
(18)
已发布:
2005.11.29 11:53
已更新:
2016.11.22 07:33
CCI.mq4 (4.07 KB) 预览
\MQL4\Include\
需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务


Commodity Channel Index Technical Indicator (CCI) measures the deviation of the commodity price from its average statistical price. High values of the index point out that the price is unusually high being compared with the average one, and low values show that the price is too low. In spite of its name, the Commodity Channel Index can be applied for any financial instrument, and not only for the wares.



There are two basic techniques of using Commodity Channel Index:

  1. Finding the divergences
    The divergence appears when the price reaches a new maximum, and Commodity Channel Index can not grow above the previous maximums. This classical divergence is normally followed by the price correction.
  2. As an indicator of overbuying/overselling
    Commodity Channel Index usually varies in the range of ±100. Values above +100 inform about overbuying state (and about a probability of correcting decay), and the values below 100 inform about the overselling state (and about a probability of correcting increase).
Calculation
  1. To find a Typical Price. You need to add the HIGH, the LOW, and the CLOSE prices of each bar and then divide the result by 3.

    TP = (HIGH + LOW +CLOSE)/3

  2. To calculate the n-period Simple Moving Average of typical prices.

    SMA(TP, N) = SUM[TP, N]/N

  3. To subtract the received SMA(TP, N) from Typical Prices.

    D = TP — SMA(TP, N)

  4. To calculate the n-period Simple Moving Average of absolute D values.

    SMA(D, N) = SUM[D, N]/N

  5. To multiply the received SMA(D, N) by 0,015.

    M = SMA(D, N) * 0,015

  6. To divide M by D

    CCI = M/D

Where:
SMA — Simple Moving Average;
N — number of periods, used for calculation.

Technical Indicator Description

Full description of CCI is available in the Technical analysis: Commodity Channel Index

由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/7769

Bulls Power Bulls Power

Bulls power oscillator (Bulls Power, Bulls) - trend following indicator.

Bears Power Bears Power

Bears power oscillator (Bears Power, Bears) - trend following indicator.

Heiken Ashi Heiken Ashi

Heiken Ashi - Custom Indicator as Candlesticks Example.

Ichimoku Kinko Hyo, Ishimoku Ichimoku Kinko Hyo, Ishimoku

Ichimoku Kinko Hyo indicator is predefined to characterize the market trend, Support and Resistance Levels, and to generate signals of buying and selling.