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?
Carl Schreiber:
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!
input ENUM_TIMEFRAMES period=PERIOD_M5; // timeframe
...
double cci1 = iCCIBuffer[1],
cci0 = iCCIBuffer[0];
Thanks
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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