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

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

author EAcpu | 4 reads | 0 comments |

Regression Analysis - indicator for MetaTrader 5

Regression Analysis - indicator for MetaTrader 5

Regression Analysis - indicator for MetaTrader 5

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.

Regression Analysis - indicator for MetaTrader 5

Regression Analysis - indicator for MetaTrader 5

Furthermore, the indicator allows logging these values ​​to a text file for further analysis.

Regression Analysis - indicator for MetaTrader 5


Attachment download

📎 b_regression_analysis.mq5 (19.43 KB)

Source: MQL5 #352

Verification code Refresh