Regression Analysis - MetaTrader 5 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 parameters // dp_limiter should be greater than 2. If not, it will automatically be set to default input ultrashort dp_limiter = 100 ; // number of data points Input unit end = 0 ; // position of last value Enter double multi-standard deviation = 1.96 ; // band separation Input input_switch comment=On; // Comment switch input input_switch logging = off; // 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.mq5 (19.43 KB)
Source: MQL5 #352
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •