UltraCCI Indicator For MT5

UltraCCI Indicator For MT5

The UltraCCI Indicator For MT5 works based on the commodity channel index and a few other different types of moving average. Based on the complex calculations it creates different colored clouds in the indicator window that tells the traders about the direction of the major trend. When the price is trend up, you will notice a blue color cloud. However, look at the color of the dots along with the reference line since it tells the strength of the buyers and the sellers. When the buyers lose the momentum, red dots will start to appear in the middle of the blue color cloud. On the contrary, when the price is trending down, the color of the cloud will be red. As soon as the sellers slow down, you will notice small green color dots along with the reference line. Make sure you use this tool as a trade filter tool only. And try to take the reading in the higher time frame so that you don’t have to lose a big portion of the trading capital in the learning stage. The safety of your investment should always come first.

FREE UltraCCI Indicator

Download the FREE UltraCCI Indicator for MT5.

To receive my email 100% sure: 
Put my email on your whitelist!


Partially Automated Trading Besides Your Day Job

Alerts In Real-Time When Divergences Occur

My Recommended MT4/MT5 Broker


Installing the UltraCCI Indicator For MT5

After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file ultracci.mq5 into the folder MQL5\Indicators of your MT5 installation. After that please restart MT5 and then you will be able to see the indicator in the list of indicators.

Parameters of the UltraCCI Indicator For MT5

The UltraCCI Indicator For MT5 has 16 parameters to configure.

input int CCI_Period=13;                            // CCI indicator period
input ENUM_APPLIED_PRICE Applied_price=PRICE_CLOSE; // Applied price
input Smooth_Method W_Method=MODE_JJMA;             // Smoothing method
input int StartLength=3;                            // Initial smoothing period
input int WPhase=100;                               // Smoothing parameter
input uint Step=5;                                  // Period change step
input uint StepsTotal=10;                           // Number of period changes
input Smooth_Method SmoothMethod=MODE_JJMA;         // Smoothing method
input int SmoothLength=3;                           // Smoothing depth
input int SmoothPhase=100;                          // Smoothing parameter
input uint UpLevel=80;                              // Overbought level, %%
input uint DnLevel=20;                              // Oversold level, %%
input color UpLevelsColor=DarkViolet;               // Overbought level color
input color DnLevelsColor=DarkViolet;               // Oversold level color
input STYLE Levelstyle=DASHDOTDOT_;                 // Levels style
input WIDTH LevelsWidth=Width_1;                    // Levels width

Buffers of the UltraCCI Indicator For MT5

The UltraCCI Indicator For MT5 provides 4 buffers.


Main Parts Of The Code

int OnCalculate(const int rates_total,    // number of bars in history at the current tick
                const int prev_calculated,// number of bars calculated at previous call
                const datetime &time[],
                const double &open[],
                const double& high[],     // price array of maximums of price for the indicator calculation
                const double& low[],      // price array of minimums of price for the indicator calculation
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
//---- checking the number of bars to be enough for the calculation
   if(BarsCalculated(CCI_Handle) lt rates_total
      || rates_total lt min_rates_total)

//---- declarations of local variables 
   int to_copy,limit,bar,maxbar1,maxbar2;
   double CCI[],upsch,dnsch;

//---- calculation of maxbar initial index for the XMASeries() function

//---- calculation of the  limit  starting index for the bars recalculation loop
   if(prev_calculated gt rates_total || prev_calculated lt =0)// checking for the first start of the indicator calculation
      limit=maxbar1;                       // starting index for calculation of all bars
   else limit=rates_total-prev_calculated; // starting index for calculation of new bars
//--- copy newly appeared data in the arrays
   if(CopyBuffer(CCI_Handle,0,0,to_copy,CCI) lt =0) return(RESET);

//---- indexing elements in arrays as timeseries  

//---- main indicator calculation loop
   for(bar=limit; bar gt =0 && !IsStopped(); bar--)
      for(int sm=int(StepsTotal); sm gt =0 && !IsStopped(); sm--)

      if(bar gt maxbar2)
         if(bar) ArrayCopy(xcci1,xcci0,0,0,WHOLE_ARRAY);

      for(int sm=int(StepsTotal); sm gt =0 && !IsStopped(); sm--)
         if(xcci0[sm] gt xcci1[sm]) upsch++;
      else                    dnsch++;



      if(BullsBuffer[bar] lt BearsBuffer[bar])
         if(BearsBuffer[bar+1] lt =BearsBuffer[bar]) DnBuffer[bar]=middle;
         else UpBuffer[bar]=middle;
         if(BullsBuffer[bar+1] lt =BullsBuffer[bar]) UpBuffer[bar]=middle;
         else DnBuffer[bar]=middle;

      if(bar) ArrayCopy(xcci1,xcci0,0,0,WHOLE_ARRAY);


About Me

I'm Mike Semlitsch the owner of PerfectTrendSystem.com. My trading career started in 2007. Since 2013 I have helped thousands of traders to take their trading to the next level. Many of them are now constantly profitable traders. 

The following performance was achieved by me while trading live in front of hundreds of my clients:

Connect With Me:  

This FREE Indicator Can Transform
Your Trading!

FREE Indicator + Telegram Group

Request the Ultimate Double Top/Bottom Indicator which is used by 10,000+ traders.

Results From 5 Months!
This service starts soon! Be the first who get's notified when it begins!