RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
Regression Channel
Linear Regression Channel consists of two parallel lines, equidistant up and down from the line of linear regression trend. The distance between frame of the channel and regression line equals to the value of maximum close price deviation from the regression line.
Linear Regression Channel
Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.

Second-power (Parabolic) Regression Channel

Third-power Regression Channel

MetaTrader Indicator i-Regr Setting

Degree - power of Polynomial : 1- linear; 2- parabolic; 3- Third-power
MetaTrader Expert Advisor e-Regr based on Regression Channel MetaTrader Indicator
If price lower than under line - Buy
If price bigger than upper line

TakeProfit by average line.
Stop Loss = 0 but you can set Stop Loss
Trend Protection: If
MetaTrader Expert Advisor e-Reg Setting

Warning: The Expert advisor e-Regr was not adjusted and was not optimized.
Build better strategies with RobotFX professional tools – check them out.
8417