PeriodCandle Indicator For MT5

PeriodCandle Indicator For MT5

The PeriodCandle Indicator For MT5 draws synthetic candlesticks for the time scale specified in the indicator settings. By default, the time period is set to 7 bars.

The Japanese candles are calculated on each bar. Bullish candlesticks get filled in Lime Green and bearish candles get shown in Magenta. The indicator is applicable on any currency pair and may be plotted for both intraday and daily price charts.

FREE PeriodCandle Indicator

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

The PeriodCandle Indicator For MT5 has 1 parameters to configure.

input uint period=7;

Buffers of the PeriodCandle Indicator For MT5

The PeriodCandle Indicator For MT5 provides 5 buffers.

SetIndexBuffer(0,ExtOpenBuffer,INDICATOR_DATA);
SetIndexBuffer(1,ExtHighBuffer,INDICATOR_DATA);
SetIndexBuffer(2,ExtLowBuffer,INDICATOR_DATA);
SetIndexBuffer(3,ExtCloseBuffer,INDICATOR_DATA);
SetIndexBuffer(4,ExtColorsBuffer,INDICATOR_COLOR_INDEX);

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[])
  {
//---- ?@ gt 25@:0 : gt ;8G5AB20 10@ gt 2 =0 4 gt AB0B gt G= gt ABL 4;O @0AGQB0
   if(rates_total lt min_rates_total) return(0);

//----  gt 1JO2;5=8O ; gt :0;L=KE ?5@5 lt 5==KE    
   int bar,limit;
   double HH,LL;

//---- @0AGQB AB0@B gt 2 gt 3 gt  = gt  lt 5@0 limit 4;O F8:;0 ?5@5AGQB0 10@ gt 2 8 AB0@B gt 20O 8=8F80;870F8O ?5@5 lt 5==KE
   if(prev_calculated gt rates_total || prev_calculated lt =0)// ?@ gt 25@:0 =0 ?5@2K9 AB0@B @0AGQB0 8=48:0B gt @0
     {
      limit=rates_total-min_rates_total; // AB0@B gt 2K9 = gt  lt 5@ 4;O @0AGQB0 2A5E 10@ gt 2
     }
   else
     {
      limit=rates_total-prev_calculated; // AB0@B gt 2K9 = gt  lt 5@ 4;O @0AGQB0 = gt 2KE 10@ gt 2
     }

//---- 8=45:A0F8O M;5 lt 5=B gt 2 2  lt 0AA820E :0: 2 B09 lt A5@8OE  
   ArraySetAsSeries(open,true);
   ArraySetAsSeries(high,true);
   ArraySetAsSeries(low,true);
   ArraySetAsSeries(close,true);

//----  gt A= gt 2= gt 9 F8:; @0AGQB0 8=48:0B gt @0
   for(bar=limit; bar gt =0 && !IsStopped(); bar--)
     {
      ExtColorsBuffer[bar]=2;
      //----
      HH=high[ArrayMaximum(high,bar,period)];
      LL=low[ArrayMinimum(low,bar,period)];
      //----
      ExtOpenBuffer[bar]=open[bar+period-1];
      ExtHighBuffer[bar]=HH;
      ExtLowBuffer[bar]=LL;
      ExtCloseBuffer[bar]=close[bar];
      //----
      if(ExtOpenBuffer[bar] lt =ExtCloseBuffer[bar]) ExtColorsBuffer[bar]=0;
      else ExtColorsBuffer[bar]=2;
     }
//---       
   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.