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

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

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
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •