Euler – Euler number calculation – script MetaTrader 4

The script uses two functions: getE(), that calculates the Euler number, and Factorial(), that calculates the factorial of the number and is used in the calculations. The Euler number is calculated in the script according to the formula:   In order to determine e with a precision of 8 decimal places 12 iterations are sufficient. … Read more

EURX – Finally, having found the calculation for the Euro Index – here it is – indicator MetaTrader 4

EURX - Finally, having found the calculation for the Euro Index - here it is - indicator for MetaTrader 4
Real author: Andy Thompson Description: In 2009 I published the indicator for DXY – Dollar Index – it was well received and downloaded many times in English and Russian. Now having found the definition of the Euro Index I submit this for the community’s use and comment.   The definition can be found at Forex … Read more

Linear Regression calculation based on pine script v4 – indicator MetaTrader 5

ScreenshotLinreg
Linear regression curve A line that best fits the prices specified over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length – 1 – offset), where length is the y argument, offset is the z … Read more

pivots calculation based on pine script v4 – indicator MetaTrader 5

MT5 Pivots
For MQL4 version please click here. pine script v4 function I/O : pivothigh(source, leftbars, rightbars) → series[float] pivotlow(source, leftbars, rightbars) → series[float] This indicator includes two simple functions to calculate the pivotshigh and pivotslow functions based on pine script. The functions can be used as copy and paste snippet in conversion projects from tradingview platform. Note: The … Read more

pivots calculation based on pine script v4 – indicator MetaTrader 4

pivots calculation based on pine script v4 - indicator for MetaTrader 4
For MQL5 version please click here. pine script v4 function I/O : pivothigh(source, leftbars, rightbars) → series[float] pivotlow(source, leftbars, rightbars) → series[float] This indicator includes two simple functions to calculate the pivotshigh and pivotslow functions based on pine script. The functions can be used as copy and paste snippet in conversion projects from tradingview platform. Note: The … Read more