MQL4 - automated forex trading   /  

Code Base

Code Base  Scripts  at PR+SQ-e To post a new code, please log in or register

Download MetaTrader 5 and visit MQL5.community Code Base
and Trade on the Go!
Prepare for the Championship
Couldn't find the right code? Order it in the Jobs section

This script is for
MetaTrader 4
Download MT 4 - 455 Kb

and Trade on the Go!

Name:
at PR+SQ-e [ ru ]
Author: ANG3110 (2008.07.02 10:39)
Rating: 9
Downloaded: 2263
Download:
 at_PR+SQ-e.mq4 (7.7 Kb) View
 Полиномиальную регрессию6.gif (14.8 Kb)


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;
etc.
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.

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.

2 comments  To post a new comment, please log in or register

Thank you, ANG31110, very nice,

just downloaded, looks very promising.

Lietuve

25.06.2009 19:06 lietuve

Hello,


Could you please try to help me write the EA like this:  'Can somebody try to write EA based on Taichi & deMarker indicators only on 1 hour charts?'

The above link is to my subject I have added last time on this MQL Forum...


Best regards,

Puncher

POLAND

03.07.2008 08:57 puncher