Regression value

It does not determine market direction or buy/sell signals or guarantee specific results, and is a visual tool for reference in price flow interpretation.
■ Unique Logic Description
The indicator operates based on the following two elements:
1) Linear Regression Value Calculation: The
linear regression base value is calculated using the closing prices for the user-specified period (regression value (Bars)).
Based on the change in the slope of the regression line, a line is generated that continuously connects the currently calculated regression flow forward.
This function is for visually confirming the calculated regression slope and
does not indicate or evaluate the price.
2) Moving Average: Auxiliary Visualization: You can refer to the positional relationship between the regression flow and the moving average
by displaying the Fast / Slow moving average together . The moving average is made transparent to minimize overlap with the main visual element.
■ Purpose of the indicator
Easily check the current regression reference value and slope flow
Visually understand the morphological flow in which direction the regression slope is continuing
Refer to the relationship with the moving average to supplement the market environment
Use as a visualization tool to assist chart analysis without providing a specific signal
■ Visual components
✔ Regression line extension line This displays
the value calculated based on the regression reference value and slope
forward by the user-specified length.
The extended line section is composed of an independent line.new() structure
to linearly show the regression-based flow.
Solid / Dashed / Dotted style and color/thickness can be adjusted.
✔ Moving average display
Fast Fast MA
Gentle Slow MA
This is for reference when analyzing regression flow, and does not affect the core functions of the indicator.
■ Description of user input options (focused on accurate functions)
▸ Regression value (Bars)
Set the period to be used for calculating the regression value .
Calculate the regression reference value for the period, and connect the calculated slopes at equal intervals
to display the line forward by the user-specified length.
▸ Fast MA Length / Slow MA Length
Set the moving average calculation period.
This is an auxiliary element for checking the trend, and does not directly affect the regression extension calculation.
▸ Line Width / Color / Style
Adjust the visual form of the extended line.
Users can freely change it for chart readability.
■ Repaint Information:
The regression reference value is recalculated each time the closing price of the current bar changes, so
the value may change in the current bar that is in progress.
This is a characteristic of the regression calculation, not a repaint that modifies past values.
The extended line is also generated solely based on the regression slope at the time of calculation, and
the extended line of the bar that has already passed does not change.
■ Notes on Use:
This indicator is a tool that simply visually displays the regression-based flow and
does not suggest price levels, directions, or performance.
It does not replace trading decisions and
is best interpreted comprehensively alongside other indicators or market structure.
Regression-based calculations only reflect data characteristics and
do not include external factors such as market volatility and news.
■ Summary:
It calculates the regression reference value and slope for a specific period and simply extends the slope at equal intervals.
It does not imply directionality, but is a visual tool for analysis reference and provides a moving average. It is
user-configurable (length, color, style). Past values are calculated in a structure that is not modified.
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. יהיה עליך לשלוח בקשת גישה ולקבל אישור לשימוש. בדרך כלל, הגישה ניתנת לאחר תשלום. למידע נוסף, עקוב אחר ההוראות של היוצר בהמשך או צור קשר עם c9indicator ישירות.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין כיצד הוא פועל. ייתכן שתוכל גם למצוא חלופות חינמיות וקוד פתוח ב-סקריפטים הקהילתיים שלנו.
הוראות המחבר
כתב ויתור
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. יהיה עליך לשלוח בקשת גישה ולקבל אישור לשימוש. בדרך כלל, הגישה ניתנת לאחר תשלום. למידע נוסף, עקוב אחר ההוראות של היוצר בהמשך או צור קשר עם c9indicator ישירות.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין כיצד הוא פועל. ייתכן שתוכל גם למצוא חלופות חינמיות וקוד פתוח ב-סקריפטים הקהילתיים שלנו.