Forex PR SQ script for MetaTrader 4

If anyone wants to see quickly the Polynomial regression on the history and in the current time, then he/she can use this script. The script is to be put at the “scripts” folder. It can be attached to the chart by dragging it with the mouse. The midline of the channel of the linear regression can be selected and then stretched, squeezed or dragged anywhere you want.
The length of the channel will be 50 bars at the first time it’s turned on, further, it can be changed by modifying the length of the selected midline of the channel of the linear regression.

In the startup information:
m – the degree of the regression;
m = 1 – linear;
m = 2 – parabolic;
m = 3 – cubic;
ksq – the multiplier of the channel of the mean square deviation.

One of the practical aspects of the usage of this script is the following: suppose, if the trend is growing and if the end of the parabola surpasses the regression line, then it is the sign of the possible further growing; if the end crossed the regression line downwards, then it is the sign of the slowdown of the trend and the possible reverse. The same thing, but inversely is valid for moving of the trend downwards.

I think that application of this tool is much more wide, and those, who study it, can discover the additional interesting aspects.

Forex PR SQ script for MetaTrader 4

The script hangs the processor a little because of its cycled operating mode. So, the ones, for whom it is of a high priority, don’t use it for a long time. Unfortunately, the drawing of the mobile curves in the indicator mode in MT4 is not very goog, because of the binding of indicators to the start() function and its dependance of the quote coming; and the capabilities of the script are limited.

Free Download

Forex PR SQ script for MetaTrader 4

MT4 Forex Robot Characteristics

Platform: Metatrader 4

Type: Script

Time frames: any.

How to install Screenshot Script in MetaTrader 4 / MT4:

Copy and paste the Forex PR SQ script for MetaTrader 4.mql4 into the MQL4 Scripts folder of the Metatrader 4 trading platform.

Restart your MetaTrader 4 application (assuming it’s currently open) … or Launch your MetaTrader 4 application

You can access this folder from the top menu as follows:

File > Open Data Folder > MQL4 > Script (paste here)

On the left hand side, look for the “Navigator” window and under the “Common” tab, look into the “Scripts” section

Locate the indicator which you have just downloaded into the folder stated in Step 1

Drag (Click and drag) the Script onto the chart (when you want the task to be performed)

your task should now be executed…

Leave a Comment