Regression Analysis - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources



This indicator compares four types of regression (linear, quadratic, logarithmic, and exponential) and chooses the one that is most suitable for analyzing the data.
This analysis is performed every time a new quote appears.
// ---- input // dp_limiter should be greater than 2. If not, it will automatically be set to default // endpos is the position of the last value on the right. It should be >0. if not // Will automatically be set to default // Record [true] - Record on; [false] - Record off external integer dp_limiter = 100 ; // number of data points outer integer end = 0 ; // position of last value External double multi-standard deviation = 1.96 ; // band separation external boolean record = false ; // Log information to file text
The upper left corner of the chart shows four values. These values represent the dispersion of the data on which it is regressed, so the smallest value represents the best choice. Furthermore, the indicator allows logging these values to a text file for further analysis.

Attachment download
📎 b_Regression_Analysis.mq4 (12.11 KB)
Source: MQL5 #10194
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •