ICCI mt5

 

Hi,

   how can I get the equivalent of

double CCI_Typical_Curr5=iCCI(_Symbol,PERIOD_M5,9,PRICE_TYPICAL,0);
double CCI_Typical_Prev5=iCCI(_Symbol,PERIOD_M5,9,PRICE_TYPICAL,1);

for mt5?

In mt5 I get handle instead ...I'm not able to extract the same integer numbers (obtained from mt4) from cci buffer....

Thanks in advance

 

If you have a mt5-terminal mark iCCI and press F1 and study the example code for iCCI(..) in mt5.

The 'mt4' editor as well has a MQL5 Reference open it and search for iCCI...

I think you'll find what you need!

 
Carl Schreiber:

If you have a mt5-terminal mark iCCI and press F1 and study the example code for iCCI(..) in mt5.

The 'mt4' editor as well has a MQL5 Reference open it and search for iCCI...

I think you'll find what you need!

That is the point....

I already saw the example...

with CopyBuffer I fill CCI buffer

How can I get the values I need?

 

input ENUM_TIMEFRAMES period=PERIOD_M5; // timeframe

...

double cci1 = iCCIBuffer[1],
       cci0 = iCCIBuffer[0];

Check it out as I haven't checked whether ..[0] is the oldest or the most recent, in the example amount-values are copied, so maybe amount-1 it the most recent value!
 
Carl Schreiber:

input ENUM_TIMEFRAMES period=PERIOD_M5; // timeframe

...

double cci1 = iCCIBuffer[1],
       cci0 = iCCIBuffer[0];

Check it out as I haven't checked whether ..[0] is the oldest or the most recent, in the example amount-values are copied, so maybe amount-1 it the most recent value!

Thanks

Reason: