MQL4 CCI

 
Hello. 
I am using the custom indicator CCI in my programming. 

However, the program does not behave accordingly to the CCI on the chart. 
I am wondering - anyone know the ENUM_APPLIED_PRICE in the custom indicator CCI ? 

Regards, 
Håkon
 
Your topic has been moved to the section: MQL4 e MetaTrader 4 — In the future, please consider which section is most appropriate for your query.
 

If you need help with your code, you will need to show your code.

Also show output from the Journal and Experts log relevant to the issue. Add extra prints to your code so that it can be debugged more easily.

Show screenshots if relevant.

 

iCCI

Commodity Channel Index

Technical Indicators


ENUM_APPLIED_PRICE

ID

Value

Description

PRICE_CLOSE

0

Close price

PRICE_OPEN

1

Open price

PRICE_HIGH

2

The maximum price for the period

PRICE_LOW

3

The minimum price for the period

PRICE_MEDIAN

4

Median price, (high + low)/2

PRICE_TYPICAL

5

Typical price, (high + low + close)/3

PRICE_WEIGHTED

6

Weighted close price, (high + low + close + close)/4

iCCI - Technical Indicators - MQL4 Reference
iCCI - Technical Indicators - MQL4 Reference
  • docs.mql4.com
iCCI - Technical Indicators - MQL4 Reference
 
Håkon Bruusgaard: I am using the custom indicator CCI in my programming.

You will also have to show the custom indicator code, or provide a CodeBase link for it.

 
Thank you Fernando. 
As this is my first post, I am sorry I posted it at the wrong place. 
I will take note and try to find better place in the future. 

I could post my code, but it is not the code I am asking about. It is the CCI from Metaquotes. 
Do you know what  ENUM_APPLIED_PRICE  it uses  ? 

Regards, 
Håkon
 
Håkon Bruusgaard #: Do you know what  ENUM_APPLIED_PRICE  it uses  ?

If you had bothered to read the documentation, you would know!

 
Håkon Bruusgaard #: It is the CCI from Metaquotes. Do you know what  ENUM_APPLIED_PRICE  it uses  ? 

I have already answered in my post #3. Did you follow up on the links (underlined text in blue)?