Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

XLineRegression - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

XLineRegression - indicator for MetaTrader 5

XLineRegression creates levels based on a linear regression algorithm.

Input parameters:

 //+------------------------------------------------+
//|Input parameters of the indicator|
//+------------------------------------------------+
Enter integer days = 90 ; // average number of days
Input integer period 1 = 40 ; // Period of linear regression
Enter double step = 0.3 ; // span between rows
Input integer digit = 1 ; // Regression degree
Input application price_price = PRICE_CLOSE ; //Price constant
/*, used to calculate indicators (1-CLOSE, 2-OPEN, 3-HIGH, 4-LOW, 
  5-Median, 6-Typical, 7-Weighted, 8-Simple, 9-Quarter, 10-Trend, 11-0.5 * Trend. )*/
Enter integer shift = 0 ; // horizontal movement of the indicator in bars 

XLineRegression - indicator for MetaTrader 5

X-ray regression

The indicator was first implemented in MQL4 and published in the code base: mql4.com March 14, 2012 (in Russian).


Attachment download

📎 xlineregression.mq5 (16.64 KB)

Source: MQL5 #999

Verification code Refresh