Linear Regression Channel [GOODY]
The Linear Regression Channel [GOODY] indicator is a versatile tool for traders, providing valuable insights into price trends and potential reversal points. It plots two linear regression channels on the chart, helping you visualize price dynamics and make informed trading decisions.
Indicator Features and Settings
General Settings:
• Source: The price source used for channel calculations. Typically, the close price is used.
1st Channel Settings:
• Length: The number of bars used to calculate the linear regression channel. Increasing this value widens the channel and makes it less responsive to recent price changes.
• Upper Deviation Multiplier: Multiplier for the upper deviation from the regression line. Higher values widen the upper boundary.
• Lower Deviation Multiplier: Multiplier for the lower deviation from the regression line. Higher values widen the lower boundary.
• Show Channel Lines: Toggle to show or hide the channel lines, useful for visualizing channel boundaries.
• Show Channel Background: Toggle to show or hide the background color between the channel lines, highlighting the area covered by the channel.
• Show Labels: Toggle to show or hide price level labels for the channel lines, helping to identify exact price levels at the boundaries.
• Upper Label Color: Color for the upper price level label.
• Lower Label Color: Color for the lower price level label.
• Label Offset: Offset for the price level labels, adjusting them horizontally.
1st Channel Display Settings:
• Extend Lines Left: Extend the regression channel lines to the left of the chart, visualizing historical performance.
• Extend Lines Right: Extend the regression channel lines to the right of the chart, anticipating future price movements.
1st Channel Style Settings:
• Upper 1st Channel Line Color: Color for the upper line of the first channel.
• Lower 1st Channel Line Color: Color for the lower line of the first channel.
• Upper Channel Color: Color for the upper channel area, filling the area between the upper channel line and the midline.
• Lower Channel Color: Color for the lower channel area, filling the area between the lower channel line and the midline.
• Baseline Color (DownTrend): Color of the baseline during a downtrend.
• Baseline Color (Up Trend): Color of the baseline during an uptrend.
2nd Channel Settings:
• Length for 2nd Channel: The number of bars used to calculate the second linear regression channel.
• Upper Deviation Multiplier for 2nd Channel: Multiplier for the upper deviation from the regression line in the second channel.
• Lower Deviation Multiplier for 2nd Channel: Multiplier for the lower deviation from the regression line in the second channel.
2nd Channel Display Settings:
• Show 2nd Channel Lines: Toggle to show or hide the second channel lines, useful for visualizing channel boundaries.
• Show 2nd Channel Background: Toggle to show or hide the background color between the second channel lines, highlighting the area covered by the second channel.
2nd Channel Style Settings:
• Upper 2nd Channel Color: Color for the upper line of the second channel.
• Lower 2nd Channel Color: Color for the lower line of the second channel.
• Baseline Color for 2nd Channel (Up Trend): Color of the baseline during an uptrend in the second channel.
• Baseline Color for 2nd Channel (Down Trend): Color of the baseline during a downtrend in the second channel.
• Upper 2nd Channel Background Color: Background color for the upper part of the second channel, filling the area between the upper channel line and the midline.
• Lower 2nd Channel Background Color: Background color for the lower part of the second channel, filling the area between the lower channel line and the midline.
• Line Style for 2nd Channel: Choose the style of the second channel lines (Solid, Dotted, Dashed, Arrow, Round).
2nd Channel Line Settings:
• Extend 2nd Channel Lines Left: Extend the second channel lines to the left of the chart, visualizing historical performance.
• Extend 2nd Channel Lines Right: Extend the second channel lines to the right of the chart, anticipating future price movements.
Other Settings:
• Show VWAP Detection: Toggle to enable or disable VWAP detection. VWAP (Volume Weighted Average Price) indicates the average price of the asset, weighted by volume.
• Show Doji Detection: Toggle to enable or disable Doji candle detection. Doji candles have small bodies, indicating market indecision.
• Doji Size Threshold: Threshold to determine a Doji candle. A smaller value indicates a stricter Doji definition.
How to Read the Indicator for Trading
Channel Lines and Colors:
• The upper line of the 1st channel (green) and the 2nd channel (blue) represents the upper boundary based on linear regression and deviation multipliers.
• The lower line of the 1st channel (red) and the 2nd channel (orange) represents the lower boundary.
• The midline changes color dynamically based on the trend direction:
• Pink during a downtrend for the 1st channel.
• Blue during an uptrend for the 1st channel.
• Gray during a consolidation for both channels.
• The 2nd channel uses similar color logic.
Channel Background:
• The background color between the channel lines highlights the area covered by the channel:
• Green for the upper area and red for the lower area in the 1st channel.
• Blue and orange for the upper and lower areas in the 2nd channel, respectively.
Labels:
• Price level labels at the channel boundaries provide exact price levels, displayed at the upper and lower lines if enabled.
VWAP and Doji Detection:
• VWAP is plotted as circles on the chart, showing the volume-weighted average price.
• Doji candles are highlighted with a background color if detected, indicating potential market indecision.
Alerts:
• Alerts are triggered when the trend direction of the channels changes. For example:
• An alert notifies you if the 1st channel is in an uptrend while the 2nd channel is in a downtrend.
• An alert notifies you if the 1st channel is in a downtrend while the 2nd channel is in an uptrend.
Trading with the Indicator
• Trend Identification: Use the color and direction of the midline and baseline to identify the current trend. An uptrend is indicated by a blue midline, while a downtrend is indicated by a pink midline.
• Reversal Points: Monitor when the price approaches the upper or lower boundaries of the channels, as these can act as support or resistance levels.
• Volume Insights: Use the VWAP and liquidity levels to understand the true average price based on volume and identify significant areas of trading activity.
• Market Indecision: Watch for Doji candles, which can signal potential reversals or periods of consolidation.