Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.05.06 07:03

Interpolation - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 18

The real author:

Gryb Alexander

The Lagrange interpolating polynomial is used to determine the functions by the specified points. In fact, the indicator takes the coordinates of price points between input int ibegin and input int iend (They are drawn by red and blue lines in the chart) and with the help of the Lagrange interpolating polynomial it calculates the coordinates of the next points.


  • iend-ibegin = the degree of the polinomial. That is, if the distance between ibegin and iend is equal to two, then the chart will be a parabola, if the three, it will be hyperbola, etc.

Indicator input parameters:

//|  INDICATOR INPUT PARAMETERS                  |
input uint inumPrognoz=2;  // Number of predicted bars
input uint ibegin=0;       // Starting bar for the analysis
input uint iend=5;         // Last bar for the analysis

This indicator was first implemented in MQL4 and published in Code Base at on 15.11.2008.

Fig.1 The Interpolation indicator

Fig.1 The Interpolation indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:


The redrawing oscillator drawn on the basis of the SSA.mqh singular transformation library of functions

Waddah_Attar_Def_RSI Waddah_Attar_Def_RSI

The MACD smoothed histogram drawn on the basis of the RSI technical indicator.

vaMA vaMA

The simple, smoothed, less lag indicator drawn on the principle of the smoothed shift using the EMA price by increments of the first 3 orders


The fast trends indicator.