PerceptronOscill Indicator For MT5

PerceptronOscill Indicator For MT5

The PerceptronOscill Indicator For MT5 is a price oscillator whose calculation is based on the simplified algorithm of the Perceptron. It gets plotted as a Blue Violet colored curve that swings above and under a central zero level.

Beginner traders may view the PerceptronOscill as a Momentum indicator with a relatively more exotic averaging algorithm. They can use zero line crossovers to form a market bias. Bullish above zero; bearish below zero.

FREE PerceptronOscill Indicator

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

The PerceptronOscill Indicator For MT5 has 2 parameters to configure.

input uint Numb=10;// Numb
input int Shift=0; // horizontal shift of the indicator in bars

Buffers of the PerceptronOscill Indicator For MT5

The PerceptronOscill Indicator For MT5 provides 1 buffers.

SetIndexBuffer(0,IndBuffer,INDICATOR_DATA);

Main Parts Of The Code

int OnCalculate(
                const int rates_total,    // amount of history in bars at the current tick
                const int prev_calculated,// amount of history in bars at the previous tick
                const int begin,          // number of beginning of reliable counting of bars
                const double &price[]     // price array for calculation of the indicator
                )
  {
//---- checking the number of bars to be enough for calculation
   if(rates_total lt min_rates_total+begin) return(0);

//---- declaration of variables with a floating point  
   double;
//---- Declaration of integer variables and getting the bars already calculated
   int first,bar;

//---- calculation of the starting number first for the bar recalculation loop
   if(prev_calculated gt rates_total || prev_calculated lt =0) // checking for the first start of calculation of an indicator
     {
      first=min_rates_total+begin; // starting number for calculation of all bars
      //---- performing the shift of beginning of indicator drawing
      PlotIndexSetInteger(0,PLOT_DRAW_BEGIN,min_rates_total+begin);
     }
   else first=prev_calculated-1; // starting number for calculation of new bars

//---- Main calculation loop of the indicator
   for(bar=first; bar lt rates_total; bar++) IndBuffer[bar]=perceptronNN(N,price,bar);
//----     
   return(rates_total);
  }
//+------------------------------------------------------------------+
double perceptronNN(int Nn,const double &Price[],int index)
  {
//----
   double rez=0.0;
//----
   for(int ccc=Nn; ccc gt 0; ccc--) rez+=(Kf[ccc-1] *(Price[index]-Price[index-ccc]));
//----
   return(rez);
  }
//+------------------------------------------------------------------+

 

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.