PChannel3Cloud Indicator For MT5

PChannel3Cloud Indicator For MT5

The PChannel3Cloud Indicator For MT5 displays a Price Channel indicator with background filling of the area inside the channel. It calculates the highest price high and lowest price low for the specified number of bars. The indicator lines show the highs and lows on which they get drawn.

As and when an underlying asset moves above the upper indicator line, it signifies strengthening of bullish sentiment. Conversely, when price falls below the lower indicator line, it denotes market weakness. In addition to the upper and lower boundaries, the indicator plots a middle line, the upper and lower halves of which are filled with green and red colors, respectively. Users may employ this indicator version on any currency pair chart.

FREE PChannel3Cloud Indicator

Download the FREE PChannel3Cloud 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 PChannel3Cloud 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 pchannel3cloud.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 PChannel3Cloud Indicator For MT5

The PChannel3Cloud Indicator For MT5 has 2 parameters to configure.

input uint   PCPeriod=55;
input int    Shift=0;     // Ñäâèã èíäèêàòîðà ïî ãîðèçîíòàëè â áàðàõ

Buffers of the PChannel3Cloud Indicator For MT5

The PChannel3Cloud Indicator For MT5 provides 7 buffers.

SetIndexBuffer(0,ExtUp1Buffer,INDICATOR_DATA);
SetIndexBuffer(1,ExtUp2Buffer,INDICATOR_DATA);
SetIndexBuffer(2,ExtABuffer,INDICATOR_DATA);
SetIndexBuffer(3,ExtBBuffer,INDICATOR_DATA);
SetIndexBuffer(4,ExtCBuffer,INDICATOR_DATA);
SetIndexBuffer(5,ExtDn1Buffer,INDICATOR_DATA);
SetIndexBuffer(6,ExtDn2Buffer,INDICATOR_DATA);

Main Parts Of The Code

int OnCalculate(
                const int rates_total,    // êîëè÷åñòâî èñòîðèè â áàðàõ íà òåêóùåì òèêå
                const int prev_calculated,// êîëè÷åñòâî èñòîðèè â áàðàõ íà ïðåäûäóùåì òèêå
                const datetime &Time[],
                const double &Open[],
                const double &High[],
                const double &Low[],
                const double &Close[],
                const long &Tick_Volume[],
                const long &Volume[],
                const int &Spread[]
                )
  {
//---- ïðîâåðêà êîëè÷åñòâà áàðîâ íà äîñòàòî÷íîñòü äëÿ ðàñ÷åòà
   if(rates_total lt min_rates_total) return(0);
//---- îáúÿâëåíèå öåëî÷èñëåííûõ ïåðåìåííûõ
   int limit;
//---- ðàñ÷åò ñòàðòîâîãî íîìåðà limit äëÿ öèêëà ïåðåñ÷åòà áàðîâ
   if(prev_calculated gt rates_total || prev_calculated lt =0)// ïðîâåðêà íà ïåðâûé ñòàðò ðàñ÷åòà èíäèêàòîðà
      limit=rates_total-min_rates_total-1; // ñòàðòîâûé íîìåð äëÿ ðàñ÷åòà âñåõ áàðîâ
   else limit=rates_total-prev_calculated;  // ñòàðòîâûé íîìåð äëÿ ðàñ÷åòà òîëüêî íîâûõ áàðîâ
//---- èíäåêñàöèÿ ýëåìåíòîâ â ìàññèâàõ êàê â òàéìñåðèÿõ  
   ArraySetAsSeries(High,true);
   ArraySetAsSeries(Low,true);
//---- îñíîâíîé öèêë ðàñ÷åòà èíäèêàòîðà
   for(int bar=limit; bar gt =0 && !IsStopped(); bar--)
     {
      ExtABuffer[bar]=High[ArrayMaximum(High,bar,PCPeriod)];
      ExtCBuffer[bar]=Low[ArrayMinimum(Low,bar,PCPeriod)];
      ExtBBuffer[bar]=(ExtABuffer[bar]+ExtCBuffer[bar])/2.0;
      ExtUp1Buffer[bar]=ExtABuffer[bar];
      ExtUp2Buffer[bar]=ExtBBuffer[bar];
      ExtDn1Buffer[bar]=ExtBBuffer[bar];
      ExtDn2Buffer[bar]=ExtCBuffer[bar];
     }
//----    
   return(rates_total);
  }
//+------------------------------------------------------------------+

 

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:  

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

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.