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

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

author EAcpu | 2 reads | 0 comments |

Linear Regression Channel - indicator for MetaTrader 5

The indicator plots the channel using a linear regression model: y=b+a*x.

It only uses complete bars when calculating the regression coefficients (a and b). The number of bars should be greater than 2 (and less than the total number of bars in history 1), specified in the InChPeriod input parameter. The indicator value for the last (unfinished) bar is calculated using the calculated value of the regression coefficient.

Assumptions:

When the total bars in the history change (for example, in the case of new bars), the regression coefficients are recalculated.

Linear Regression Channel - indicator for MetaTrader 5


Attachment download

📎 lrchannel.mq5 (4.91 KB)

📎 lrchannel.mq5

Source: MQL5 #249

Linear Regression Channel - MetaTrader 5 Script | Foreign Exchange Indicator Download - MT4/MT5 Resource Usage and Screening Suggestions

Linear Regression Channel - MetaTrader 5 Script | Foreign Exchange Indicator Download - MT4/MT5 resources are foreign exchange indicator related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based only on titles or short-term profit descriptions.

Verification code Refresh