Coral Indicator For MT5

Coral Indicator For MT5

The Coral Indicator For MT5 displays a colored Moving Average curve that incorporates a smoothing ratio in its calculations. The smoothing ratio is a calculation period whose value cannot be less than 0.0086 and greater than 1.00. The smaller its value, the longer will be the calculation period.

The Coral Indicator For MT5 gets overlaid as a Green line or a Red line on the main price window. A rising Green indicator curve signifies that an up trend is in place, while a falling Red indicator line points to the presence of a down trend.

Traders can enter long when the Coral Indicator For MT5 turns Green, and price breaks out above the nearest major resistance level. Conversely, shorts can be entered when the indicator turns Red, and price tumbles below the closest major support zone.

FREE Coral Indicator

Download the FREE Coral 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

 

Installing the Coral 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 Coral.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 Coral Indicator For MT5

The Coral Indicator For MT5 has 2 parameters to configure.

input double               InpCoeff          =  0.063492063492;   // Coefficient
input ENUM_APPLIED_PRICE   InpAppliedPrice   =  PRICE_CLOSE;      // Applied price

Buffers of the Coral Indicator For MT5

The Coral Indicator For MT5 provides 9 buffers.

SetIndexBuffer(0,BufferC,INDICATOR_DATA);
SetIndexBuffer(1,BufferColors,INDICATOR_COLOR_INDEX);
SetIndexBuffer(2,BufferB1,INDICATOR_CALCULATIONS);
SetIndexBuffer(3,BufferB2,INDICATOR_CALCULATIONS);
SetIndexBuffer(4,BufferB3,INDICATOR_CALCULATIONS);
SetIndexBuffer(5,BufferB4,INDICATOR_CALCULATIONS);
SetIndexBuffer(6,BufferB5,INDICATOR_CALCULATIONS);
SetIndexBuffer(7,BufferB6,INDICATOR_CALCULATIONS);
SetIndexBuffer(8,BufferMA,INDICATOR_CALCULATIONS);

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 8 @0AGQB : gt ;8G5AB20 ?@ gt AG8BK205 lt KE 10@ gt 2
   if(rates_total lt 4) return 0;
//--- @ gt 25@:0 8 @0AGQB : gt ;8G5AB20 ?@ gt AG8BK205 lt KE 10@ gt 2
   int limit=rates_total-prev_calculated;
   if(limit gt 1)
     {
      limit=rates_total-2;
      ArrayInitialize(BufferC,EMPTY_VALUE);
      ArrayInitialize(BufferColors,2);
      ArrayInitialize(BufferB1,0);
      ArrayInitialize(BufferB2,0);
      ArrayInitialize(BufferB3,0);
      ArrayInitialize(BufferB4,0);
      ArrayInitialize(BufferB5,0);
      ArrayInitialize(BufferB6,0);
      ArrayInitialize(BufferMA,0);
     }
//---  gt 43 gt B gt 2:0 40==KE
   int count=(limit gt 1 ? rates_total : 1);
   int copied=CopyBuffer(handle_ma,0,0,count,BufferMA);
   if(copied!=count) return 0;

//---  0AGQB 8=48:0B gt @0
   for(int i=limit; i gt =0 && !IsStopped(); i--)
     {
      if(i==rates_total-2)
         BufferB1[i]=BufferB2[i]=BufferB3[i]=BufferB4[i]=BufferB5[i]=BufferB6[i]=BufferMA[i];
      else
        {
         BufferB1[i]=coeff1*BufferMA[i]+coeff2*BufferB1[i+1];
         BufferB2[i]=coeff1*BufferB1[i]+coeff2*BufferB2[i+1];
         BufferB3[i]=coeff1*BufferB2[i]+coeff2*BufferB3[i+1];
         BufferB4[i]=coeff1*BufferB3[i]+coeff2*BufferB4[i+1];
         BufferB5[i]=coeff1*BufferB4[i]+coeff2*BufferB5[i+1];
         BufferB6[i]=coeff1*BufferB5[i]+coeff2*BufferB6[i+1];
         BufferC[i]=(-0.064)*BufferB6[i]+0.672*BufferB5[i]-2.352*BufferB4[i]+2.744*BufferB3[i];
         BufferColors[i]=(BufferC[i] gt BufferC[i+1] ? 0 : BufferC[i] lt BufferC[i+1] ? 1 : 2);
        }
     }

//--- return value of prev_calculated for next call
   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.