Linear Regression Candles and SMA
- Indicators
- Gordon Alan Bruce
- Version: 1.4
- Updated: 7 January 2023
- Activations: 5
This indicator for MT4 is based on the currently popular indicator on Trading View of the similar name.
The beauty of the indicator like Heiken Ashi is it removes a lot of market noise.
4 (OHLC) arrays are filled with Linear Regression(LR) values of each price for the LR period. The period of the Linear Regression is an input which must be higher than 2 (it's defaulted to 2 if you try an enter 1).
The period of the Linear Regression is adjustable dependant on the market conditions. The SMA also has period adjustment.
Candles are generated with Green for 'Up' candles (with wicks) and Red for 'Down' candles. An SMA of the LR Close is included because the way this indicator is supposed to be used is as follows;
If the green candles are above the SMA, go long. If the red candles are below the blue SMA, go short. In my opinion, I would use some other exit signal but entries look good for a lagging trend indicator.
Definitely has a Heiken Ashi feel about it.
It must be used in the Main Chart Window in MT4 and will not display properly if used in the separate window (limitations of MT4)
On the Demo version, just press "start" on the Strategy Tester. Try and set the MA to a lower value to closely match the candles. You may need to hide the background bars/candles(use properties) to see it perform better