MTF_CCI Indicator For MT4
The MTF_CCI Indicator For MT4 is an incredibly useful indicator which equips traders with a unique resource that allows them to view the Commodity Channel Index data on multiple time frames. It saves a lot of time in the analysis process and it also gives traders more leverage to gaining deeper insights into what is happening in the markets. One way a trader may go about using this indicator is to have the H1 chart open but have the indicator set to display the Commodity Channel Index data from the H4 time frame - the H4 chart hints at directional changes of the bigger trend which the H1 trend is nested in thus allowing traders to look for trend reversal price action patterns on the H1 time frame so that they may pounce on those trend reversal opportunities.
Installing the MTF_CCI Indicator For MT4
After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file jMTF_CCI.mq4 into the folder MQL4\Indicators of your MT4 installation. After that please restart MT4 and then you will be able to see the indicator in the list of indicators.
Parameters of the MTF_CCI Indicator For MT4
The MTF_CCI Indicator For MT4 has 2 parameters to configure.
extern int TimeFrame=0;
extern int Periods=12;
Buffers of the MTF_CCI Indicator For MT4
The MTF_CCI Indicator For MT4 provides 1 buffers.
SetIndexBuffer(0,ExtMapBuffer1);
Main Parts Of The Code
int start()
{
datetime TimeArray[];
int i,limit,y=0,counted_bars=IndicatorCounted();
// Plot defined time frame on to current time frame
ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame);
limit= Bars-1;
for(i=0,y=0;i lt limit;i++)
{
if(Time[i] lt TimeArray[y]) y++;
/***********************************************************
Add your main indicator loop below. You can reference an existing
indicator with its iName or iCustom.
Rule 1: Add extern inputs above for all neccesary values
Rule 2: Use TimeFrame for the indicator time frame
Rule 3: Use y for your indicator s shift value
**********************************************************/
ExtMapBuffer1[i]=iCCI(Symbol(),TimeFrame,Periods,PRICE_CLOSE,y);
}
return(0);
}
//+------------------------------------------------------------------+