MQL4 - automated forex trading   /  

Code Base

Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

Code Base  Indicators  Linear Regression Indicator To post a new code, please log in or register

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

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

and Trade on the Go!

and Trade on the Go!

Name:
Linear Regression Indicator [ ru | cn ]
Author: Vinin (2008.06.22 15:05)
Downloaded: 10153
Download:
 VininI LRMA color.mq4 (2.2 Kb) View

The indicator is completely analogous to indicator LSMA Color published in CodeBase, except only one thing. It works much faster.

Parameters:

extern int period=34; // Regression calculating period
extern int price=0; // Price used for calculations 0-Close, 1-Open, 2- High, 3-Low, etc.
extern int Shift=0; // Chart shift when drawing
extern bool bPlaySound=true; // Playing a sound when changing color
extern string SoundName="alert.wav"; // Wave file
extern int CheckBar=0; // Bar, on which the color changing is controlled

1 comment  To post a new comment, please log in or register
Thanks a lot!
06.03.2011 16:33 luckyluke72