Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Indicators | Linear Regression Indicator | MQL5 Code

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

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

Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.

Image for Linear Regression Indicator

Complement community code with advanced automation from RobotFX.

8200

Best MetaTrader Indicators + Profitable Expert Advisors